|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.amber.expr.AbstractAmberExpr
com.caucho.amber.expr.AbstractPathExpr
com.caucho.amber.expr.OneToManyExpr
public class OneToManyExpr
Expression to a collection of rows The relation is maintained by a link from the child objects to the parent object.
| Field Summary |
|---|
| Fields inherited from interface com.caucho.amber.expr.AmberExpr |
|---|
IS_INNER_JOIN, USES_DATA |
| Constructor Summary | |
|---|---|
OneToManyExpr(QueryParser parser,
PathExpr parent,
LinkColumns linkColumns)
Creates a new expression to the child objects. |
|
| Method Summary | |
|---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item. |
PathExpr |
bindSelect(QueryParser parser,
java.lang.String id)
Binds the expression as a select item. |
FromItem |
bindSubPath(QueryParser parser)
Binds the expression as a subpath. |
boolean |
equals(java.lang.Object o)
|
void |
generateHaving(CharBuffer cb)
Generates the having expression. |
void |
generateSelect(CharBuffer cb)
Generates the where expression. |
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression. |
void |
generateWhere(CharBuffer cb)
Generates the where expression. |
FromItem |
getChildFromItem()
Returns the child from item. |
LinkColumns |
getLinkColumns()
Returns the link columns. |
PathExpr |
getParent()
Returns the parent. |
AmberTable |
getTable()
Returns the table. |
EntityType |
getTargetType()
Returns the expr type. |
AmberType |
getType()
Returns the expr type. |
java.lang.String |
toString()
|
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item. |
| Methods inherited from class com.caucho.amber.expr.AbstractPathExpr |
|---|
createArray, createField, createId, createLoad |
| Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr |
|---|
createBoolean, exists, exists, findItem, generateJoin, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.amber.expr.AmberExpr |
|---|
createBoolean, exists, exists, findItem, generateJoin, getCacheObject, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom |
| Constructor Detail |
|---|
public OneToManyExpr(QueryParser parser,
PathExpr parent,
LinkColumns linkColumns)
| Method Detail |
|---|
public LinkColumns getLinkColumns()
public AmberType getType()
getType in interface AmberExprgetType in class AbstractAmberExprpublic EntityType getTargetType()
public boolean usesFrom(FromItem from,
int type,
boolean isNot)
usesFrom in interface AmberExprusesFrom in class AbstractAmberExprpublic PathExpr getParent()
public AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExpr
public PathExpr bindSelect(QueryParser parser,
java.lang.String id)
bindSelect in interface PathExprbindSelect in class AbstractPathExprpublic FromItem getChildFromItem()
getChildFromItem in interface PathExprgetChildFromItem in class AbstractPathExprpublic FromItem bindSubPath(QueryParser parser)
bindSubPath in interface PathExprbindSubPath in class AbstractPathExprpublic AmberTable getTable()
public void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprgenerateWhere in class AbstractAmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprgenerateUpdateWhere in class AbstractAmberExprpublic void generateHaving(CharBuffer cb)
generateHaving in interface AmberExprgenerateHaving in class AbstractAmberExprpublic void generateSelect(CharBuffer cb)
generateSelect in interface AmberExprgenerateSelect in class AbstractAmberExprpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic 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 | |||||||||