public interface EntityViewMapping
| Modifier and Type | Method and Description |
|---|---|
Map<String,EntityViewAttributeMapping> |
getAttributes()
Returns the attribute mappings defined for this entity view mapping.
|
Map<String,EntityViewConstructorMapping> |
getConstructors()
Returns the constructor mappings defined for this entity view mapping.
|
Class<?> |
getEntityClass()
The JPA managed type class for which this entity view mapping is defined.
|
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. |
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. |
String |
getName()
Returns the name of the entity view, typically the simple type name.
|
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(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(String lockOwner)
Set the lock owner mapping relative to the JPA managed type of this entity view.
|
void |
setName(String name)
Set the entity view name.
|
void |
setPostCreateMethod(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.
|
Class<?> getEntityViewClass()
Class<?> getEntityClass()
void setEntityClass(Class<?> entityClass)
entityClass - The JPA managed type classString getName()
void setName(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 modeString getLockOwner()
null if the entity view should not be updatable.void setLockOwner(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 strategyMethod getPostCreateMethod()
null if there is none.void setPostCreateMethod(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 mappingMap<String,EntityViewAttributeMapping> getAttributes()
Map<String,EntityViewConstructorMapping> getConstructors()
Copyright © 2014–2018 Blazebit. All rights reserved.