com.googlecode.jpattern.orm.query.join
Class AJoinElement

java.lang.Object
  extended by com.googlecode.jpattern.orm.query.join.AJoinElement
All Implemented Interfaces:
INameSolverConsumer, IRenderableSqlObject, IJoinElement
Direct Known Subclasses:
CrossJoinElement, FullOuterJoinElement, InnerJoinElement, LeftOuterJoinElement, NaturalJoinElement, RightOuterJoinElement

public abstract class AJoinElement
extends Object
implements IJoinElement

Author:
Francesco Cina 27/giu/2011

Field Summary
protected  Class<?> joinClass
           
protected  IOrmClassToolMap ormClassToolMap
           
 
Constructor Summary
AJoinElement(IOrmClassToolMap ormClassToolMap, Class<?> joinClass)
           
 
Method Summary
protected abstract  String getJoinName()
           
protected abstract  boolean hasOnClause()
           
protected abstract  String onLeftProperty()
           
protected abstract  String onRightProperty()
           
 String renderSql()
          Return the sql query generated by this IQuery Object
 void renderSql(StringBuilder StringBuilder)
          Append to the string buffer the sql query generated by this IQuery Object
 void setNameSolver(INameSolver nameSolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joinClass

protected final Class<?> joinClass

ormClassToolMap

protected final IOrmClassToolMap ormClassToolMap
Constructor Detail

AJoinElement

public AJoinElement(IOrmClassToolMap ormClassToolMap,
                    Class<?> joinClass)
Method Detail

setNameSolver

public void setNameSolver(INameSolver nameSolver)
Specified by:
setNameSolver in interface INameSolverConsumer

renderSql

public String renderSql()
Description copied from interface: IRenderableSqlObject
Return the sql query generated by this IQuery Object

Specified by:
renderSql in interface IRenderableSqlObject
Returns:

renderSql

public void renderSql(StringBuilder StringBuilder)
Description copied from interface: IRenderableSqlObject
Append to the string buffer the sql query generated by this IQuery Object

Specified by:
renderSql in interface IRenderableSqlObject

getJoinName

protected abstract String getJoinName()

hasOnClause

protected abstract boolean hasOnClause()

onLeftProperty

protected abstract String onLeftProperty()

onRightProperty

protected abstract String onRightProperty()


Copyright © 2011. All Rights Reserved.