public interface EntityViewMethodAttributeMapping extends EntityViewAttributeMapping
EntityViewAttributeMapping.ContainerBehavior| Modifier and Type | Method and Description |
|---|---|
Set<CascadeType> |
getCascadeTypes()
Returns the cascade types that are configured for this attribute.
|
InverseRemoveStrategy |
getInverseRemoveStrategy()
Returns the inverse remove strategy to use if this is an inverse mapping.
|
String |
getMappedBy()
Returns the mapping to the inverse attribute relative to the element type or
null if there is none. |
Method |
getMethod()
Returns the getter method represented by this attribute mapping.
|
String |
getName()
Returns the name of this attribute.
|
Boolean |
getOrphanRemoval()
Returns whether the elements that are removed from the attribute should be deleted.
|
Boolean |
getUpdatable()
Returns whether the attribute is updatable i.e. the JPA attribute to which the attribute is mapped
via the mapping is updatable.
|
void |
setInverseRemoveStrategy(InverseRemoveStrategy inverseRemoveStrategy)
Sets the inverse remove strategy.
|
void |
setMappedBy(String mappedBy)
Set the mapping to the inverse attribute.
|
void |
setUpdatable(boolean updatable,
boolean orphanRemoval,
CascadeType[] cascadeTypes,
Class<?>[] subtypes,
Class<?>[] persistSubtypes,
Class<?>[] updateSubtypes)
Set whether the attribute is updatable along with cascading configuration and the allowed subtypes.
|
getComparatorClass, getContainerBehavior, getDeclaredElementType, getDeclaredKeyType, getDeclaredType, getDeclaringView, getDefaultBatchSize, isCollection, setContainerDefault, setContainerIndexed, setContainerOrdered, setContainerSorted, setDefaultBatchSizeString getName()
Method getMethod()
Boolean getUpdatable()
null(the default), whether the attribute is updatable is determined
during the building phase(EntityViewConfiguration.createEntityViewManager(CriteriaBuilderFactory)).null if updatability should be determined during building phaseBoolean getOrphanRemoval()
null(the default), whether the attribute is updatable is determined
during the building phase(EntityViewConfiguration.createEntityViewManager(CriteriaBuilderFactory)).null if that should be determined during building phaseSet<CascadeType> getCascadeTypes()
void setUpdatable(boolean updatable,
boolean orphanRemoval,
CascadeType[] cascadeTypes,
Class<?>[] subtypes,
Class<?>[] persistSubtypes,
Class<?>[] updateSubtypes)
updatable - Whether the attribute should be updatableorphanRemoval - Whether orphaned objects should be deletedcascadeTypes - The enabled cascade typessubtypes - The allowed subtypes for both, persist and update cascadespersistSubtypes - The allowed subtypes for persist cascadesupdateSubtypes - The allowed subtypes for update cascadesString getMappedBy()
null if there is none.void setMappedBy(String mappedBy)
mappedBy - The mappingInverseRemoveStrategy getInverseRemoveStrategy()
InverseRemoveStrategy.SET_NULL by default.void setInverseRemoveStrategy(InverseRemoveStrategy inverseRemoveStrategy)
inverseRemoveStrategy - The strategyCopyright © 2014–2018 Blazebit. All rights reserved.