|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.jdbc.depot.clause.QueryClause
com.samskivert.jdbc.depot.clause.Join
public class Join
Represents a JOIN.
| Nested Class Summary | |
|---|---|
static class |
Join.Type
Indicates the join type to be used. |
| Field Summary | |
|---|---|
protected Class<? extends PersistentRecord> |
_joinClass
The class of the table we're to join against. |
protected SQLExpression |
_joinCondition
The condition used to join in the new table. |
protected Join.Type |
_type
Indicates the type of join to be performed. |
| Constructor Summary | |
|---|---|
Join(Class<? extends PersistentRecord> joinClass,
SQLExpression joinCondition)
|
|
Join(Class<? extends PersistentRecord> pClass,
String pCol,
Class<? extends PersistentRecord> joinClass,
String jCol)
|
|
Join(ColumnExp primary,
ColumnExp join)
|
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor builder)
Most uses of this class have been implemented with a visitor pattern. |
void |
addClasses(Collection<Class<? extends PersistentRecord>> classSet)
Adds all persistent classes that are brought into the SQL context by this clause: FROM clauses, JOINs, UPDATEs, anything that could create a new table abbreviation. |
Class<? extends PersistentRecord> |
getJoinClass()
|
SQLExpression |
getJoinCondition()
|
Join.Type |
getType()
|
Join |
setType(Join.Type type)
Configures the type of join to be performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Join.Type _type
protected Class<? extends PersistentRecord> _joinClass
protected SQLExpression _joinCondition
| Constructor Detail |
|---|
public Join(Class<? extends PersistentRecord> pClass,
String pCol,
Class<? extends PersistentRecord> joinClass,
String jCol)
public Join(ColumnExp primary,
ColumnExp join)
public Join(Class<? extends PersistentRecord> joinClass,
SQLExpression joinCondition)
| Method Detail |
|---|
public Join setType(Join.Type type)
public Join.Type getType()
public Class<? extends PersistentRecord> getJoinClass()
public SQLExpression getJoinCondition()
public void accept(ExpressionVisitor builder)
throws Exception
SQLExpressionExpressionVisitor and call this method with it.
ExceptionSQLBuilderpublic void addClasses(Collection<Class<? extends PersistentRecord>> classSet)
SQLExpression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||