|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.sqlscribe.Match
org.openanzo.sqlscribe.Join
public class Join
Join between two tables. For example, "WHERE table1.id = table2.foreignKeyId" is a simple foreign key join between table1 and table2.
| Constructor Summary | |
|---|---|
Join(Column lhs,
java.lang.String operator,
Column rhs)
Create a Join constraint |
|
| Method Summary | |
|---|---|
java.lang.String |
getConstraint(java.util.List<java.lang.String> unboundVariables)
Get the SQL text for this constraint, using any variables from the provided list |
Column |
getRhs()
Get the column on the right side of the join operation |
java.util.Set<ITable> |
listTables()
Get the set of tables to which this constraint is based |
void |
writeConstraint(java.lang.StringBuffer buf,
java.util.List<java.lang.String> unboundVariables)
Write the SQL text for this constraint to the provided buffer, using any variables from the provided list |
| Methods inherited from class org.openanzo.sqlscribe.Match |
|---|
equals, equals, getLhs, getOperator, greater, greater, in, isNotNull, isNull, less, less, varEquals, varGreater, varGreaterEquals, varLess, varLessEquals |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Join(Column lhs,
java.lang.String operator,
Column rhs)
lhs - column on left side of join operatoroperator - operator to use to join the 2 columnsrhs - column on right side of join operator| Method Detail |
|---|
public java.lang.String getConstraint(java.util.List<java.lang.String> unboundVariables)
Constraint
getConstraint in interface ConstraintunboundVariables - set of variables that can be used within constraints
public void writeConstraint(java.lang.StringBuffer buf,
java.util.List<java.lang.String> unboundVariables)
Constraint
writeConstraint in interface Constraintbuf - StringBuffer to which the SQL text for this constraint is appendedunboundVariables - set of variables that can be used within constraintspublic Column getRhs()
public java.util.Set<ITable> listTables()
Constraint
listTables in interface ConstraintlistTables in class Match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||