Class DeployTableJoinColumn

java.lang.Object
io.ebeaninternal.server.deploy.meta.DeployTableJoinColumn

public final class DeployTableJoinColumn extends Object
A join pair of local and foreign properties.
  • Constructor Details

    • 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 Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.