Class DeployBeanPropertyAssocOne<T>


public final class DeployBeanPropertyAssocOne<T> extends DeployBeanPropertyAssoc<T>
Property mapped to a joined bean.
  • Constructor Details

    • DeployBeanPropertyAssocOne

      public DeployBeanPropertyAssocOne(DeployBeanDescriptor<?> desc, Class<T> targetType)
      Create the property.
  • Method Details

    • getDeployEmbedded

      public DeployBeanEmbedded getDeployEmbedded()
      Return the deploy information specifically for the deployment of Embedded beans.
    • isCompound

      public boolean isCompound()
      Return true if this has multiple properties (expected for embedded id).
    • getDbColumn

      public String getDbColumn()
      Description copied from class: DeployBeanProperty
      The database column name this is mapped to.
      Overrides:
      getDbColumn in class DeployBeanProperty
    • isOneToOne

      public boolean isOneToOne()
      Return true if this a OneToOne property. Otherwise assumed ManyToOne.
    • setOneToOne

      public void setOneToOne()
      Set to true if this is a OneToOne.
    • isOneToOneExported

      public boolean isOneToOneExported()
      Return true if this is the exported side of a OneToOne.
    • setOneToOneExported

      public void setOneToOneExported()
      Set to true if this is the exported side of a OneToOne. This means it doesn't 'own' the foreign key column. A OneToMany without the many.
    • setImportedPrimaryKeyColumn

      public void setImportedPrimaryKeyColumn(DeployBeanProperty primaryKey)
      Set to true if this is part of the primary key.
      Overrides:
      setImportedPrimaryKeyColumn in class DeployBeanProperty
    • setSqlFormula

      public void setSqlFormula(String formulaSelect, String formulaJoin)
      Description copied from class: DeployBeanProperty
      The property is based on a formula.
      Overrides:
      setSqlFormula in class DeployBeanProperty
    • setColumnPrefix

      public void setColumnPrefix(String columnPrefix)
    • getColumnPrefix

      public String getColumnPrefix()
    • setPrimaryKeyJoin

      public void setPrimaryKeyJoin(boolean primaryKeyJoin)
      Mark as PrimaryKeyJoin (we don't know which side is the export side initially).
    • isPrimaryKeyJoin

      public boolean isPrimaryKeyJoin()
    • isPrimaryKeyExport

      public boolean isPrimaryKeyExport()
    • setPrimaryKeyExport

      public void setPrimaryKeyExport()
      Set as export side of OneToOne with PrimaryKeyJoin.
    • setJoinType

      public void setJoinType(boolean outerJoin)
    • setJoinColumns

      public void setJoinColumns(DeployTableJoinColumn[] columns, boolean reverse)