com.jpattern.orm.query.clause.from
Class AFromElement

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.from.AFromElement
All Implemented Interfaces:
FromElement, NameSolverConsumer, RenderableSqlSubElement
Direct Known Subclasses:
FullOuterJoinElement, InnerJoinElement, JoinElement, LeftOuterJoinElement, NaturalJoinElement, RightOuterJoinElement

public abstract class AFromElement
extends SmartRenderableSqlSubElement
implements FromElement

Author:
Francesco Cina 27/giu/2011

Field Summary
protected  Class<?> joinClass
           
protected  IOrmClassToolMap ormClassToolMap
           
 
Constructor Summary
AFromElement(IOrmClassToolMap ormClassToolMap, Class<?> joinClass, Integer nameSolverClassId)
           
 
Method Summary
 void appendElementValues(List<Object> values)
          Append to the list all the values of the expression's elements
 void doElementRender(StringBuilder stringBuilder)
           
 int getElementStatusVersion()
           
protected abstract  String getJoinName()
           
 Integer getNameSolverClassId()
           
protected abstract  boolean hasOnClause()
           
protected abstract  String onLeftProperty()
           
protected abstract  String onRightProperty()
           
 void setNameSolver(NameSolver nameSolver)
           
 
Methods inherited from class com.jpattern.orm.query.SmartRenderableSqlSubElement
isElementStatusChanged, renderSqlElement, renderSqlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jpattern.orm.query.RenderableSqlSubElement
renderSqlElement, renderSqlElement
 

Field Detail

joinClass

protected final Class<?> joinClass

ormClassToolMap

protected final IOrmClassToolMap ormClassToolMap
Constructor Detail

AFromElement

public AFromElement(IOrmClassToolMap ormClassToolMap,
                    Class<?> joinClass,
                    Integer nameSolverClassId)
Method Detail

setNameSolver

public void setNameSolver(NameSolver nameSolver)
Specified by:
setNameSolver in interface NameSolverConsumer

getElementStatusVersion

public final int getElementStatusVersion()
Specified by:
getElementStatusVersion in class SmartRenderableSqlSubElement

doElementRender

public final void doElementRender(StringBuilder stringBuilder)
Specified by:
doElementRender in class SmartRenderableSqlSubElement

getJoinName

protected abstract String getJoinName()

hasOnClause

protected abstract boolean hasOnClause()

onLeftProperty

protected abstract String onLeftProperty()

onRightProperty

protected abstract String onRightProperty()

getNameSolverClassId

public Integer getNameSolverClassId()

appendElementValues

public final void appendElementValues(List<Object> values)
Description copied from interface: RenderableSqlSubElement
Append to the list all the values of the expression's elements

Specified by:
appendElementValues in interface RenderableSqlSubElement


Copyright © 2013. All Rights Reserved.