Class DeployTableJoinColumn
- java.lang.Object
-
- io.ebeaninternal.server.deploy.meta.DeployTableJoinColumn
-
public class DeployTableJoinColumn extends Object
A join pair of local and foreign properties.
-
-
Constructor Summary
Constructors Constructor Description DeployTableJoinColumn(boolean order, String ref, String name, boolean insertable, boolean updateable, 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeployTableJoinColumn
copy(boolean reverse)
String
getForeignDbColumn()
Return the foreign database column name.String
getForeignSqlFormula()
String
getLocalDbColumn()
Return the local database column name.String
getLocalSqlFormula()
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
setForeignSqlFormula(String foreignSqlFormula)
String
toString()
-
-
-
Constructor Detail
-
DeployTableJoinColumn
public DeployTableJoinColumn(String localDbColumn, String foreignDbColumn)
Construct when automatically determining the join.Assume that we want the foreign key to be insertable and updateable.
-
DeployTableJoinColumn
public DeployTableJoinColumn(String localDbColumn, String foreignDbColumn, boolean insertable, boolean updateable)
Construct with explicit insertable and updateable flags.
-
DeployTableJoinColumn
public DeployTableJoinColumn(boolean order, String ref, String name, boolean insertable, boolean updateable, BeanTable beanTable)
-
-
Method Detail
-
getLocalSqlFormula
public String getLocalSqlFormula()
-
setForeignSqlFormula
public void setForeignSqlFormula(String foreignSqlFormula)
-
getForeignSqlFormula
public String getForeignSqlFormula()
-
reverse
public DeployTableJoinColumn reverse()
Reverse the direction of the join.
-
copy
public DeployTableJoinColumn copy(boolean reverse)
-
isInsertable
public boolean isInsertable()
Return true if this column should be insertable.
-
isUpdateable
public boolean isUpdateable()
Return true if this column should be updateable.
-
getForeignDbColumn
public String getForeignDbColumn()
Return the foreign database column name.
-
getLocalDbColumn
public String getLocalDbColumn()
Return the local database column name.
-
-