|
||||||||||
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.JoinExpr
com.caucho.amber.expr.ManyToOneJoinExpr
public class ManyToOneJoinExpr
Links two tables. The parent table is "b" in "b.next". The child table is "b.next" The source is "b", i.e. the parent. The target is "b.next", i.e. the child.
Field Summary |
---|
Fields inherited from interface com.caucho.amber.expr.AmberExpr |
---|
IS_INNER_JOIN, USES_DATA |
Constructor Summary | |
---|---|
ManyToOneJoinExpr(LinkColumns link,
FromItem source,
FromItem target)
Creates the expr. |
Method Summary | |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item. |
boolean |
bindToFromItem()
Binds the link to the from item. |
boolean |
equals(java.lang.Object o)
Test for equality. |
boolean |
exists(FromItem from)
Returns true if the expression uses the from item. |
void |
generateHaving(CharBuffer cb)
Generates the having expression. |
void |
generateJoin(CharBuffer cb)
Generates the where expression. |
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression. |
void |
generateWhere(CharBuffer cb)
Generates the where expression. |
FromItem |
getJoinParent()
Returns the target join clause. |
FromItem |
getJoinTarget()
Returns the target join clause. |
boolean |
isBoolean()
Returns true for a boolean expression. |
boolean |
isManyToMany()
Returns true for a many-to-many expression. |
AmberExpr |
replace(IdExpr id)
Returns the id expr with the joined expression. |
AmberExpr |
replace(KeyColumnExpr id)
Returns the id expr with the joined expression. |
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.JoinExpr |
---|
getWhere, isDependent |
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr |
---|
createBoolean, exists, findItem, generateSelect, getCacheObject, getColumnCount, getObject, getType, hasRelationship, replaceJoin, setInternalArgType, usesFrom |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManyToOneJoinExpr(LinkColumns link, FromItem source, FromItem target)
Method Detail |
---|
public boolean isBoolean()
isBoolean
in interface AmberExpr
isBoolean
in class JoinExpr
public boolean isManyToMany()
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class JoinExpr
public boolean bindToFromItem()
bindToFromItem
in class JoinExpr
public FromItem getJoinTarget()
getJoinTarget
in class JoinExpr
public FromItem getJoinParent()
getJoinParent
in class JoinExpr
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public boolean exists(FromItem from)
exists
in interface AmberExpr
exists
in class AbstractAmberExpr
public AmberExpr replace(KeyColumnExpr id)
replace
in class JoinExpr
public AmberExpr replace(IdExpr id)
replace
in class JoinExpr
public void generateWhere(CharBuffer cb)
generateWhere
in interface AmberExpr
generateWhere
in class AbstractAmberExpr
public void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere
in interface AmberExpr
generateUpdateWhere
in class AbstractAmberExpr
public void generateHaving(CharBuffer cb)
generateHaving
in interface AmberExpr
generateHaving
in class AbstractAmberExpr
public void generateJoin(CharBuffer cb)
generateJoin
in interface AmberExpr
generateJoin
in class AbstractAmberExpr
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
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 |