Class DeployBeanPropertyAssocMany<T>
- java.lang.Object
-
- io.ebeaninternal.server.deploy.meta.DeployBeanProperty
-
- io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc<T>
-
- io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssocMany<T>
-
- Direct Known Subclasses:
DeployBeanPropertySimpleCollection
public class DeployBeanPropertyAssocMany<T> extends DeployBeanPropertyAssoc<T>
Property mapped to a List Set or Map.
-
-
Constructor Summary
Constructors Constructor Description DeployBeanPropertyAssocMany(DeployBeanDescriptor<?> desc, Class<T> targetType, ManyType manyType)
Create this property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearTableJoin()
Clear the table join due to an implied mappedBy.TableJoin
createIntersectionTableJoin()
Create the immutable version of the intersection join.TableJoin
createInverseTableJoin()
Create the immutable version of the inverse join.<A> BeanDescriptor<A>
getElementDescriptor()
String
getFetchOrderBy()
Return the order by clause used to order the fetching of the data for this list, set or map.String
getIntersectionDraftTable()
Return a draft table for intersection between 2 @Draftable entities.DeployTableJoin
getIntersectionJoin()
ManyToMany only, join from local table to intersection table.DeployTableJoin
getInverseJoin()
ManyType
getManyType()
Return the many type.String
getMapKey()
Return the default mapKey when returning a Map.Class<?>
getMapKeyType()
Return the type of the map key (valid only when this property is a Map).BeanCollection.ModifyListenMode
getModifyListenMode()
Return the mode for listening to changes to the List Set or Map.DeployOrderColumn
getOrderColumn()
boolean
hasOrderColumn()
boolean
isElementCollection()
boolean
isManyToMany()
Return true if this is many to many.boolean
isO2mJoinTable()
boolean
isUnidirectional()
Return true if this is a unidirectional relationship.void
setElementCollection()
void
setElementDescriptor(BeanDescriptor<?> elementDescriptor)
void
setFetchOrderBy(String orderBy)
Set the order by clause used to order the fetching or the data for this list, set or map.void
setIntersectionDraftTable()
ManyToMany between 2 @Draftable entities to also need draft intersection table.void
setIntersectionJoin(DeployTableJoin intersectionJoin)
ManyToMany only, join from local table to intersection table.void
setInverseJoin(DeployTableJoin inverseJoin)
ManyToMany only, join from foreign table to intersection table.void
setManyToMany()
Set to true if this is a many to many.void
setMapKey(String mapKey)
Set the default mapKey to use when returning a Map.void
setModifyListenMode(BeanCollection.ModifyListenMode modifyListenMode)
Set the mode for listening to changes to the List Set or Map.void
setO2mJoinTable()
void
setOrderColumn(DeployOrderColumn orderColumn)
void
setTargetType(Class<?> cls)
When generics is not used for manyType you can specify via annotations.void
setUnidirectional()
Set to true if this is a unidirectional relationship.-
Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc
getBeanTable, getCascadeInfo, getDocStoreDoc, getExtraWhere, getFetchPreference, getForeignKey, getMappedBy, getTableJoin, getTargetDeploy, getTargetType, isOrphanRemoval, setBeanTable, setDocStoreEmbedded, setExtraWhere, setFetchPreference, setForeignKey, setMappedBy, 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
-
-
-
-
Constructor Detail
-
DeployBeanPropertyAssocMany
public DeployBeanPropertyAssocMany(DeployBeanDescriptor<?> desc, Class<T> targetType, ManyType manyType)
Create this property.
-
-
Method Detail
-
setTargetType
public void setTargetType(Class<?> cls)
When generics is not used for manyType you can specify via annotations.Really only expect this for Scala due to a Scala compiler bug at the moment. Otherwise I'd probably not bother support this.
-
getManyType
public ManyType getManyType()
Return the many type.
-
isManyToMany
public boolean isManyToMany()
Return true if this is many to many.
-
setManyToMany
public void setManyToMany()
Set to true if this is a many to many.
-
getModifyListenMode
public BeanCollection.ModifyListenMode getModifyListenMode()
Return the mode for listening to changes to the List Set or Map.
-
setModifyListenMode
public void setModifyListenMode(BeanCollection.ModifyListenMode modifyListenMode)
Set the mode for listening to changes to the List Set or Map.
-
isUnidirectional
public boolean isUnidirectional()
Return true if this is a unidirectional relationship.
-
setUnidirectional
public void setUnidirectional()
Set to true if this is a unidirectional relationship.
-
createIntersectionTableJoin
public TableJoin createIntersectionTableJoin()
Create the immutable version of the intersection join.
-
createInverseTableJoin
public TableJoin createInverseTableJoin()
Create the immutable version of the inverse join.
-
getIntersectionJoin
public DeployTableJoin getIntersectionJoin()
ManyToMany only, join from local table to intersection table.
-
getInverseJoin
public DeployTableJoin getInverseJoin()
-
setIntersectionJoin
public void setIntersectionJoin(DeployTableJoin intersectionJoin)
ManyToMany only, join from local table to intersection table.
-
setInverseJoin
public void setInverseJoin(DeployTableJoin inverseJoin)
ManyToMany only, join from foreign table to intersection table.
-
getFetchOrderBy
public String getFetchOrderBy()
Return the order by clause used to order the fetching of the data for this list, set or map.
-
getMapKeyType
public Class<?> getMapKeyType()
Return the type of the map key (valid only when this property is a Map).
-
setFetchOrderBy
public void setFetchOrderBy(String orderBy)
Set the order by clause used to order the fetching or the data for this list, set or map.
-
getIntersectionDraftTable
public String getIntersectionDraftTable()
Return a draft table for intersection between 2 @Draftable entities.
-
setIntersectionDraftTable
public void setIntersectionDraftTable()
ManyToMany between 2 @Draftable entities to also need draft intersection table.
-
setOrderColumn
public void setOrderColumn(DeployOrderColumn orderColumn)
-
getOrderColumn
public DeployOrderColumn getOrderColumn()
-
hasOrderColumn
public boolean hasOrderColumn()
-
isO2mJoinTable
public boolean isO2mJoinTable()
-
setO2mJoinTable
public void setO2mJoinTable()
-
setElementCollection
public void setElementCollection()
-
isElementCollection
public boolean isElementCollection()
-
setElementDescriptor
public void setElementDescriptor(BeanDescriptor<?> elementDescriptor)
-
getElementDescriptor
public <A> BeanDescriptor<A> getElementDescriptor()
-
clearTableJoin
public void clearTableJoin()
Clear the table join due to an implied mappedBy.
-
-