public final class TableJoin extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JOIN |
static String |
LEFT_OUTER |
Constructor and Description |
---|
TableJoin(DeployTableJoin deploy,
LinkedHashMap<String,BeanProperty> propMap)
Create a TableJoin.
|
Modifier and Type | Method and Description |
---|---|
void |
addInnerJoin(String a1,
String a2,
DbSqlContext ctx)
Explicitly add a (non-outer) join.
|
boolean |
addJoin(boolean forceOuterJoin,
String prefix,
DbSqlContext ctx) |
boolean |
addJoin(boolean forceOuterJoin,
String a1,
String a2,
DbSqlContext ctx) |
void |
appendSelect(DbSqlContext ctx,
boolean subQuery) |
TableJoinColumn[] |
columns()
Return the join columns.
|
BeanCascadeInfo |
getCascadeInfo()
Return the persist info.
|
String |
getTable()
Return the joined table name.
|
String |
getType()
Return the type of join.
|
boolean |
isImportedPrimaryKey()
Return true if the imported foreign key maps to the primary key.
|
boolean |
isOuterJoin()
Return true if this join is a left outer join.
|
void |
load(SqlBeanLoad sqlBeanLoad) |
BeanProperty[] |
properties()
For secondary table joins returns the properties mapped to that table.
|
Object |
readSet(DbReadContext ctx,
Object bean,
Class<?> type) |
String |
toString() |
public static final String LEFT_OUTER
public static final String JOIN
public TableJoin(DeployTableJoin deploy, LinkedHashMap<String,BeanProperty> propMap)
public void appendSelect(DbSqlContext ctx, boolean subQuery)
public void load(SqlBeanLoad sqlBeanLoad) throws SQLException
SQLException
public Object readSet(DbReadContext ctx, Object bean, Class<?> type) throws SQLException
SQLException
public boolean isImportedPrimaryKey()
public BeanCascadeInfo getCascadeInfo()
public TableJoinColumn[] columns()
public BeanProperty[] properties()
public String getTable()
public String getType()
public boolean isOuterJoin()
public boolean addJoin(boolean forceOuterJoin, String prefix, DbSqlContext ctx)
public boolean addJoin(boolean forceOuterJoin, String a1, String a2, DbSqlContext ctx)
public void addInnerJoin(String a1, String a2, DbSqlContext ctx)
Copyright © 2015. All Rights Reserved.