public class DeployTableJoin extends Object
This gets converted into a immutable TableJoin when complete.
| Constructor and Description |
|---|
DeployTableJoin()
Create a DeployTableJoin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJoinColumn(boolean order,
javax.persistence.JoinColumn[] jcArray,
BeanTable beanTable)
Add a JoinColumn array.
|
void |
addJoinColumn(boolean order,
javax.persistence.JoinColumn jc,
BeanTable beanTable)
Add a JoinColumn
|
void |
addJoinColumn(DeployTableJoinColumn pair)
Add a join pair
|
DeployTableJoinColumn[] |
columns()
Return the join columns.
|
DeployTableJoin |
copyTo(DeployTableJoin destJoin,
boolean reverse,
String tableName) |
DeployTableJoin |
createInverse(String tableName) |
BeanCascadeInfo |
getCascadeInfo()
Return the persist info.
|
InheritInfo |
getInheritInfo() |
String |
getTable()
Return the joined table name.
|
String |
getType()
Return the type of join.
|
boolean |
hasJoinColumns()
Return true if the JoinOnPair have been set.
|
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.
|
DeployBeanProperty[] |
properties()
For secondary table joins returns the properties mapped to that table.
|
void |
setColumns(DeployTableJoinColumn[] cols,
boolean reverse)
Copy all the columns to this join potentially reversing the columns.
|
void |
setImportedPrimaryKey(boolean importedPrimaryKey)
Flag set when the imported key maps to the primary key.
|
void |
setInheritInfo(InheritInfo inheritInfo) |
void |
setTable(String table)
set the joined table name.
|
void |
setType(String joinType)
Set the type of join.
|
String |
toString() |
public boolean isImportedPrimaryKey()
public void setImportedPrimaryKey(boolean importedPrimaryKey)
public boolean hasJoinColumns()
public BeanCascadeInfo getCascadeInfo()
public void setColumns(DeployTableJoinColumn[] cols, boolean reverse)
public void addJoinColumn(DeployTableJoinColumn pair)
public void addJoinColumn(boolean order,
javax.persistence.JoinColumn jc,
BeanTable beanTable)
The order is generally true for OneToMany and false for ManyToOne relationships.
public void addJoinColumn(boolean order,
javax.persistence.JoinColumn[] jcArray,
BeanTable beanTable)
public DeployTableJoinColumn[] columns()
public DeployBeanProperty[] properties()
public String getTable()
public void setTable(String table)
public String getType()
public boolean isOuterJoin()
public void setType(String joinType)
public DeployTableJoin createInverse(String tableName)
public DeployTableJoin copyTo(DeployTableJoin destJoin, boolean reverse, String tableName)
public InheritInfo getInheritInfo()
public void setInheritInfo(InheritInfo inheritInfo)
Copyright © 2014. All Rights Reserved.