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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanTable
getBeanTable()
Return the BeanTable for this association.BeanCascadeInfo
getCascadeInfo()
Get the persist info.String
getDocStoreDoc()
String
getExtraWhere()
Return a literal expression that is added to the query that lazy loads the collection.int
getFetchPreference()
PropertyForeignKey
getForeignKey()
String
getMappedBy()
Return the mappedBy deployment attribute.DeployTableJoin
getTableJoin()
return the join to use for the bean.DeployBeanDescriptor<?>
getTargetDeploy()
Return the target DeployBeanDescriptor for this associated bean property.Class<T>
getTargetType()
Return the type of the target.boolean
isOrphanRemoval()
void
setBeanTable(BeanTable beanTable)
Set the bean table.void
setDocStoreEmbedded(String embeddedDoc)
Set DocStoreEmbedded deployment information.void
setExtraWhere(String extraWhere)
Set a literal expression to add to the query that lazy loads the collection.void
setFetchPreference(int fetchPreference)
void
setForeignKey(PropertyForeignKey foreignKey)
void
setMappedBy(String mappedBy)
Set mappedBy deployment attribute.void
setOrphanRemoval()
-
Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanProperty
addDbMigrationInfo, checkPrimitiveBoolean, getDbBind, getDbColumn, getDbColumnDefaultSqlLiteral, getDbColumnDefn, getDbComment, getDbEncryptedType, getDbEncryptFunction, getDbLength, getDbMigrationInfos, getDbScale, getDbType, getDesc, getDocPropertyOptions, getElPlaceHolder, getElPrefix, getField, getFullBeanName, getGeneratedProperty, getGenericType, getGetter, getJacksonField, getMetaAnnotation, getMetaAnnotationFormula, getMetaAnnotations, getMetaAnnotationSize, getMetaAnnotationWhere, getName, getOwningType, getPropertyIndex, getPropertyType, getRawAggregation, getScalarType, getSecondaryTable, getSecondaryTableJoin, getSecondaryTableJoinPrefix, getSetter, getSortOverride, getSqlFormulaJoin, getSqlFormulaSelect, initMetaAnnotations, isAggregation, isDbEncrypted, isDbInsertable, isDbRead, isDbUpdateable, isDiscriminator, isDraft, isDraftDirty, isDraftOnly, isDraftReset, isEmbedded, isExcludedFromHistory, isFetchEager, isId, isIdClass, isImportedPrimaryKey, isJsonDeserialize, isJsonSerialize, isLob, isLocal, isLocalEncrypted, isNaturalKey, isNullable, isSecondaryTable, isSoftDelete, isTenantId, isTransient, isUndirectionalShadow, isUnique, isUnmappedJson, isVersionColumn, parseAggregation, setAggregation, setAggregationPrefix, setDbColumn, setDbColumnDefault, setDbColumnDefn, setDbComment, setDbEncryptFunction, setDbInsertable, setDbLength, setDbRead, setDbScale, setDbType, setDbUpdateable, setDocCode, setDocProperty, setDocSortable, setDraft, setDraftDirty, setDraftOnly, setDraftReset, setElementProperty, setEmbedded, setExcludedFromHistory, setFetchType, setField, setGeneratedProperty, setGetter, setId, setImportedPrimaryKey, setImportedPrimaryKeyColumn, setJsonDeserialize, setJsonSerialize, setLocalEncrypted, setName, setNullable, setOwningType, setPropertyIndex, setScalarType, setSecondaryTable, setSecondaryTableJoin, setSetter, setSoftDelete, setSortOrder, setSqlFormula, setTenantId, setTransient, setUndirectionalShadow, setUnique, setUnmappedJson, setVersionColumn, toString
-
-
-
-
Method Detail
-
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()
-
setDocStoreEmbedded
public void setDocStoreEmbedded(String embeddedDoc)
Set DocStoreEmbedded deployment information.
-
getDocStoreDoc
public String getDocStoreDoc()
-
getFetchPreference
public int getFetchPreference()
-
setFetchPreference
public void setFetchPreference(int fetchPreference)
-
-