Module io.ebean.core
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
Property mapped to a List Set or Map.
-
Constructor Summary
ConstructorsConstructorDescriptionDeployBeanPropertyAssocMany(DeployBeanDescriptor<?> desc, Class<T> targetType, ManyType manyType) Create this property. -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the table join due to an implied mappedBy.Create the immutable version of the intersection join.Create the immutable version of the inverse join.<A> BeanDescriptor<A> Return the order by clause used to order the fetching of the data for this list, set or map.ManyToMany only, join from local table to intersection table.Return the many type.Return the default mapKey when returning a Map.Class<?> Return the type of the map key (valid only when this property is a Map).Return the mode for listening to changes to the List Set or Map.booleanbooleanbooleanReturn true if this is many to many.booleanbooleanReturn true if this is a unidirectional relationship.voidvoidsetElementDescriptor(BeanDescriptor<?> elementDescriptor) voidsetFetchOrderBy(String orderBy) Set the order by clause used to order the fetching or the data for this list, set or map.voidsetIntersectionJoin(DeployTableJoin intersectionJoin) ManyToMany only, join from local table to intersection table.voidsetInverseJoin(DeployTableJoin inverseJoin) ManyToMany only, join from foreign table to intersection table.voidSet to true if this is a many to many.voidSet the default mapKey to use when returning a Map.voidsetModifyListenMode(BeanCollection.ModifyListenMode modifyListenMode) Set the mode for listening to changes to the List Set or Map.voidvoidsetOrderColumn(DeployOrderColumn orderColumn) voidSet to true if this is a unidirectional relationship.Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc
getBeanTable, getCascadeInfo, getExtraWhere, getFetchPreference, getForeignKey, getMappedBy, getTableJoin, getTargetDeploy, getTargetType, isOrphanRemoval, setBeanTable, setExtraWhere, setFetchPreference, setForeignKey, setMappedBy, setOrphanRemoval, setTargetTypeMethods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanProperty
addDbMigrationInfo, bindMaxLength, checkPrimitiveBoolean, getDbBind, getDbColumn, getDbColumnDefaultSqlLiteral, getDbColumnDefn, getDbComment, getDbEncryptedType, getDbEncryptFunction, getDbLength, getDbMigrationInfos, getDbScale, getDbType, getDesc, getElPlaceHolder, getElPrefix, getField, getGeneratedProperty, getGenericType, getGetter, getMetaAnnotation, getMetaAnnotationFormula, getMetaAnnotations, getMetaAnnotationWhere, getMutationDetection, getName, getOwningType, getPropertyIndex, getPropertyType, getRawAggregation, getScalarType, getSecondaryTable, getSecondaryTableJoin, getSecondaryTableJoinPrefix, getSetter, getSortOverride, getSqlFormulaJoin, getSqlFormulaSelect, initMetaAnnotations, isAggregation, isDbEncrypted, isDbInsertable, isDbRead, isDbUpdateable, isDiscriminator, 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, setElementProperty, setEmbedded, setExcludedFromHistory, setFetchType, setField, setGeneratedProperty, setGetter, setId, setImportedPrimaryKey, setImportedPrimaryKeyColumn, setJsonDeserialize, setJsonSerialize, setLocalEncrypted, setMutationDetection, setName, setNullable, setOwningType, setPropertyIndex, setScalarType, setSecondaryTable, setSecondaryTableJoin, setSetter, setSoftDelete, setSortOrder, setSqlFormula, setTenantId, setTransient, setUndirectionalShadow, setUnique, setUnmappedJson, setVersionColumn, toString
-
Constructor Details
-
DeployBeanPropertyAssocMany
public DeployBeanPropertyAssocMany(DeployBeanDescriptor<?> desc, Class<T> targetType, ManyType manyType) Create this property.
-
-
Method Details
-
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
Return the mode for listening to changes to the List Set or Map. -
setModifyListenMode
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
Create the immutable version of the intersection join. -
createInverseTableJoin
Create the immutable version of the inverse join. -
getIntersectionJoin
ManyToMany only, join from local table to intersection table. -
getInverseJoin
-
setIntersectionJoin
ManyToMany only, join from local table to intersection table. -
setInverseJoin
ManyToMany only, join from foreign table to intersection table. -
getFetchOrderBy
Return the order by clause used to order the fetching of the data for this list, set or map. -
getMapKeyType
Return the type of the map key (valid only when this property is a Map). -
getMapKey
Return the default mapKey when returning a Map. -
setMapKey
Set the default mapKey to use when returning a Map. -
setFetchOrderBy
Set the order by clause used to order the fetching or the data for this list, set or map. -
setOrderColumn
-
getOrderColumn
-
hasOrderColumn
public boolean hasOrderColumn() -
isO2mJoinTable
public boolean isO2mJoinTable() -
setO2mJoinTable
public void setO2mJoinTable() -
setElementCollection
public void setElementCollection() -
isElementCollection
public boolean isElementCollection() -
setElementDescriptor
-
getElementDescriptor
-
clearTableJoin
public void clearTableJoin()Clear the table join due to an implied mappedBy.
-