EntityViewAttributeMapping
public interface EntityViewMethodAttributeMapping extends EntityViewAttributeMapping
EntityViewAttributeMapping.ContainerBehavior
Modifier and Type | Method | Description |
---|---|---|
java.util.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.
|
java.lang.String |
getMappedBy() |
Returns the mapping to the inverse attribute relative to the element type or
null if there is none. |
java.lang.reflect.Method |
getMethod() |
Returns the getter method represented by this attribute mapping.
|
java.lang.String |
getName() |
Returns the name of this attribute.
|
java.lang.Boolean |
getOrphanRemoval() |
Returns whether the elements that are removed from the attribute should be deleted.
|
java.lang.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(java.lang.String mappedBy) |
Set the mapping to the inverse attribute.
|
void |
setUpdatable(boolean updatable,
boolean orphanRemoval,
CascadeType[] cascadeTypes,
java.lang.Class<?>[] subtypes,
java.lang.Class<?>[] persistSubtypes,
java.lang.Class<?>[] updateSubtypes) |
Set whether the attribute is updatable along with cascading configuration and the allowed subtypes.
|
getComparatorClass, getContainerBehavior, getDeclaredElementType, getDeclaredKeyType, getDeclaredType, getDeclaringView, getDefaultBatchSize, isCollection, isDisallowOwnedUpdatableSubview, isForceUniqueness, setContainerDefault, setContainerIndexed, setContainerOrdered, setContainerSorted, setDefaultBatchSize, setDisallowOwnedUpdatableSubview, setForceUniqueness
java.lang.String getName()
java.lang.reflect.Method getMethod()
java.lang.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 phasejava.lang.Boolean 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 phasejava.util.Set<CascadeType> getCascadeTypes()
void setUpdatable(boolean updatable, boolean orphanRemoval, CascadeType[] cascadeTypes, java.lang.Class<?>[] subtypes, java.lang.Class<?>[] persistSubtypes, java.lang.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 cascadesjava.lang.String getMappedBy()
null
if there is none.void setMappedBy(java.lang.String mappedBy)
mappedBy
- The mappingInverseRemoveStrategy getInverseRemoveStrategy()
InverseRemoveStrategy.SET_NULL
by default.void setInverseRemoveStrategy(InverseRemoveStrategy inverseRemoveStrategy)
inverseRemoveStrategy
- The strategyCopyright © 2014–2019 Blazebit. All rights reserved.