public interface EntityViewMapping
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,EntityViewAttributeMapping> |
getAttributes() |
Returns the attribute mappings defined for this entity view mapping.
|
java.util.Map<java.lang.String,EntityViewConstructorMapping> |
getConstructors() |
Returns the constructor mappings defined for this entity view mapping.
|
java.lang.Class<?> |
getEntityClass() |
The JPA managed type class for which this entity view mapping is defined.
|
java.lang.Class<?> |
getEntityViewClass() |
The type represented by this entity view mapping.
|
FlushMode |
getFlushMode() |
Returns the flush mode to use for updates or
null if the entity view should not be updatable. |
FlushStrategy |
getFlushStrategy() |
Returns the flush strategy to use for updates or
null if the entity view should not be updatable. |
EntityViewAttributeMapping |
getIdAttribute() |
Returns the id attribute mapping of this entity view mapping or
null if there is none. |
LockMode |
getLockMode() |
Returns the lock mode to use for doing updates or
null if the entity view should not be updatable. |
java.lang.String |
getLockOwner() |
Returns the lock owner mapping relative to the JPA managed type of this entity view to use for updates or
null if the entity view should not be updatable. |
java.lang.String |
getName() |
Returns the name of the entity view, typically the simple type name.
|
java.lang.reflect.Method |
getPostCreateMethod() |
Returns the post create method or
null if there is none. |
EntityViewAttributeMapping |
getVersionAttribute() |
Returns the version attribute mapping of this entity view mapping or
null if ther is none. |
boolean |
isCreatable() |
Returns whether the entity view should be creatable i.e. support persist via
EntityViewManager.update(EntityManager, Object) . |
boolean |
isUpdatable() |
Returns whether the entity view should be updatable i.e. support updates via
EntityViewManager.update(EntityManager, Object) . |
boolean |
isValidatePersistability() |
Returns whether the persistability of an entity view should be validated i.e. check if an entity could be successfully persisted based on the settable attributes.
|
void |
setCreatable(boolean creatable) |
Set whether the entity view should be creatable.
|
void |
setEntityClass(java.lang.Class<?> entityClass) |
Set the JPA managed type class for this entity view mapping.
|
void |
setFlushMode(FlushMode flushMode) |
Set the flush mode to use for updates.
|
void |
setFlushStrategy(FlushStrategy flushStrategy) |
Set the flush strategy to use for updates.
|
void |
setIdAttribute(EntityViewAttributeMapping idAttribute) |
Set the id attribute mapping of this entity view mapping.
|
void |
setLockMode(LockMode lockMode) |
Set the lock mode to use for updates.
|
void |
setLockOwner(java.lang.String lockOwner) |
Set the lock owner mapping relative to the JPA managed type of this entity view.
|
void |
setName(java.lang.String name) |
Set the entity view name.
|
void |
setPostCreateMethod(java.lang.reflect.Method postCreateMethod) |
Sets the post create method.
|
void |
setUpdatable(boolean updatable) |
Set whether the entity view should be updatable.
|
void |
setValidatePersistability(boolean validatePersistability) |
Set whether the entity view should be validated regarding it's persistability.
|
void |
setVersionAttribute(EntityViewAttributeMapping versionAttribute) |
Set the version attribute mapping of this entity view mapping.
|
java.lang.Class<?> getEntityViewClass()
java.lang.Class<?> getEntityClass()
void setEntityClass(java.lang.Class<?> entityClass)
entityClass
- The JPA managed type classjava.lang.String getName()
void setName(java.lang.String name)
name
- The nameboolean isUpdatable()
EntityViewManager.update(EntityManager, Object)
.void setUpdatable(boolean updatable)
updatable
- Whether the entity view should be updatableLockMode getLockMode()
null
if the entity view should not be updatable.void setLockMode(LockMode lockMode)
lockMode
- The lock modejava.lang.String getLockOwner()
null
if the entity view should not be updatable.void setLockOwner(java.lang.String lockOwner)
lockOwner
- The lock owner mappingFlushMode getFlushMode()
null
if the entity view should not be updatable.void setFlushMode(FlushMode flushMode)
flushMode
- The flush modeFlushStrategy getFlushStrategy()
null
if the entity view should not be updatable.void setFlushStrategy(FlushStrategy flushStrategy)
flushStrategy
- The flush strategyjava.lang.reflect.Method getPostCreateMethod()
null
if there is none.void setPostCreateMethod(java.lang.reflect.Method postCreateMethod)
postCreateMethod
- The methodboolean isCreatable()
EntityViewManager.update(EntityManager, Object)
.void setCreatable(boolean creatable)
creatable
- Whether the entity view should be creatableboolean isValidatePersistability()
void setValidatePersistability(boolean validatePersistability)
validatePersistability
- Whether the entity view should be validated regarding it's persistabilityEntityViewAttributeMapping getIdAttribute()
null
if there is none.null
if there is nonevoid setIdAttribute(EntityViewAttributeMapping idAttribute)
getAttributes()
or null
.idAttribute
- The id attribute mappingEntityViewAttributeMapping getVersionAttribute()
null
if ther is none.null
if there is nonevoid setVersionAttribute(EntityViewAttributeMapping versionAttribute)
getAttributes()
or null
.versionAttribute
- The version attribute mappingjava.util.Map<java.lang.String,EntityViewAttributeMapping> getAttributes()
java.util.Map<java.lang.String,EntityViewConstructorMapping> getConstructors()
Copyright © 2014–2018 Blazebit. All rights reserved.