|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.scooterframework.orm.activerecord.IncludeNode
public class IncludeNode
IncludeData holds details about an include option element.
Constructor Summary | |
---|---|
IncludeNode(java.lang.String include,
ActiveRecord controlHome,
int order,
IncludeNode previous,
Relation relation,
boolean useTableAlias,
java.lang.String joinType)
Constructs an IncludeNode instance. |
Method Summary | |
---|---|
ActiveRecord |
getControlHome()
Returns home intance of the control entity. |
java.lang.String |
getEndAMappingName()
|
ActiveRecord |
getHomeInstance()
Returns home instance. |
java.lang.String |
getIncludeName()
|
java.lang.String |
getMappingName()
Returns mapping name of the underlying table. |
int |
getOrder()
Returns include order. |
Relation |
getRelation()
Returns relation from endA entity to (this) entity. |
static java.lang.StringBuilder |
getSqlSelectPart(java.lang.String tableMappingName,
java.lang.String[] columnNames)
|
protected static java.lang.String |
getTableLinks(java.lang.String tableA,
java.lang.String mappingAB,
java.lang.String tableB)
|
boolean |
hasNext()
Checks if there is a next IncludeNode. |
boolean |
hasPrevious()
Checks if there is a previous IncludeNode. |
IncludeNode |
next()
Returns next IncludeNode. |
IncludeNode |
previous()
Returns previous IncludeNode. |
void |
setNext(IncludeNode next)
Sets next IncludeNode. |
void |
setTableAlias(java.lang.String tableAlias)
Sets alias name of the underlying table. |
java.lang.StringBuilder |
toSqlJoinPart()
|
java.lang.StringBuilder |
toSqlSelectPart()
Returns a sql select part of an ActiveRecord class in the following format: tableName.columnName AS tableName_columnName, ... |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IncludeNode(java.lang.String include, ActiveRecord controlHome, int order, IncludeNode previous, Relation relation, boolean useTableAlias, java.lang.String joinType)
include
- name of the include nodecontrolHome
- home instance of the main entity of the sql queryorder
- index of the include node starting from 1previous
- previous include node instancerelation
- relation linking to this include nodeuseTableAlias
- true if table alias is usedjoinType
- type of joinMethod Detail |
---|
public java.lang.String getIncludeName()
public ActiveRecord getControlHome()
public int getOrder()
public Relation getRelation()
public ActiveRecord getHomeInstance()
public void setTableAlias(java.lang.String tableAlias)
public boolean hasPrevious()
public IncludeNode previous()
public boolean hasNext()
public IncludeNode next()
public void setNext(IncludeNode next)
public java.lang.String getMappingName()
public java.lang.StringBuilder toSqlSelectPart()
public static java.lang.StringBuilder getSqlSelectPart(java.lang.String tableMappingName, java.lang.String[] columnNames)
public java.lang.StringBuilder toSqlJoinPart()
public java.lang.String getEndAMappingName()
protected static java.lang.String getTableLinks(java.lang.String tableA, java.lang.String mappingAB, java.lang.String tableB)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |