public class DeployTableJoinColumn extends Object
| Constructor and Description |
|---|
DeployTableJoinColumn(boolean order,
javax.persistence.JoinColumn jc,
BeanTable beanTable) |
DeployTableJoinColumn(String localDbColumn,
String foreignDbColumn)
Construct when automatically determining the join.
|
DeployTableJoinColumn(String localDbColumn,
String foreignDbColumn,
boolean insertable,
boolean updateable)
Construct with explicit insertable and updateable flags.
|
| Modifier and Type | Method and Description |
|---|---|
DeployTableJoinColumn |
copy(boolean reverse) |
String |
getForeignDbColumn()
Return the foreign database column name.
|
String |
getLocalDbColumn()
Return the local database column name.
|
String |
getNonNullColumn()
When only ONE column has been set by deployment information return that one.
|
boolean |
hasNullColumn()
Return true if either the local or foreign column is null.
|
boolean |
isInsertable()
Return true if this column should be insertable.
|
boolean |
isUpdateable()
Return true if this column should be updateable.
|
DeployTableJoinColumn |
reverse()
Reverse the direction of the join.
|
void |
setForeignDbColumn(String foreignDbColumn)
Set the foreign database column name.
|
void |
setLocalDbColumn(String localDbColumn)
Set the local database column name.
|
String |
toString() |
public DeployTableJoinColumn(String localDbColumn, String foreignDbColumn)
Assume that we want the foreign key to be insertable and updateable.
public DeployTableJoinColumn(String localDbColumn, String foreignDbColumn, boolean insertable, boolean updateable)
public DeployTableJoinColumn(boolean order,
javax.persistence.JoinColumn jc,
BeanTable beanTable)
public DeployTableJoinColumn reverse()
public DeployTableJoinColumn copy(boolean reverse)
public boolean hasNullColumn()
Both columns need to be defined. If one is null then typically it is derived as the primary key column.
public String getNonNullColumn()
Used with hasNullColumn() to set the foreignDbColumn for OneToMany joins.
public boolean isInsertable()
public boolean isUpdateable()
public String getForeignDbColumn()
public void setForeignDbColumn(String foreignDbColumn)
Used when this is derived from Primary Key and not set explicitly in the deployment information.
public String getLocalDbColumn()
public void setLocalDbColumn(String localDbColumn)
Copyright © 2014. All Rights Reserved.