Class DeployBeanPropertyAssoc<T>

java.lang.Object
io.ebeaninternal.server.deploy.meta.DeployBeanProperty
io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc<T>
Direct Known Subclasses:
DeployBeanPropertyAssocMany, DeployBeanPropertyAssocOne

public abstract class DeployBeanPropertyAssoc<T> extends DeployBeanProperty
Abstract base for properties mapped to an associated bean, list, set or map.
  • Method Details

    • getTargetDeploy

      public DeployBeanDescriptor<?> getTargetDeploy()
      Return the target DeployBeanDescriptor for this associated bean property.
    • getTargetType

      public Class<T> getTargetType()
      Return the type of the target.

      This is the class of the associated bean, or beans contained in a list, set or map.

    • getExtraWhere

      public String getExtraWhere()
      Return a literal expression that is added to the query that lazy loads the collection.
    • setExtraWhere

      public void setExtraWhere(String extraWhere)
      Set a literal expression to add to the query that lazy loads the collection.
    • getTableJoin

      public DeployTableJoin getTableJoin()
      return the join to use for the bean.
    • getBeanTable

      public BeanTable getBeanTable()
      Return the BeanTable for this association.

      This has the table name which is used to determine the relationship for this association.

    • setBeanTable

      public void setBeanTable(BeanTable beanTable)
      Set the bean table.
    • getCascadeInfo

      public BeanCascadeInfo getCascadeInfo()
      Get the persist info.
    • setForeignKey

      public void setForeignKey(PropertyForeignKey foreignKey)
    • getForeignKey

      public PropertyForeignKey getForeignKey()
    • getMappedBy

      public String getMappedBy()
      Return the mappedBy deployment attribute.

      This is the name of the property in the 'detail' bean that maps back to this 'master' bean.

    • setMappedBy

      public void setMappedBy(String mappedBy)
      Set mappedBy deployment attribute.
    • setOrphanRemoval

      public void setOrphanRemoval()
    • isOrphanRemoval

      public boolean isOrphanRemoval()
    • getFetchPreference

      public int getFetchPreference()
    • setFetchPreference

      public void setFetchPreference(int fetchPreference)
    • setTargetType

      public void setTargetType(Class<?> targetType)