Class SimpleUpdateContext
java.lang.Object
com.blazebit.persistence.view.impl.update.SimpleUpdateContext
- All Implemented Interfaces:
UpdateContext
public class SimpleUpdateContext extends Object implements UpdateContext
- Since:
- 1.3.0
- Author:
- Christian Beikov
-
Constructor Summary
Constructors Constructor Description SimpleUpdateContext(EntityViewManagerImpl evm, javax.persistence.EntityManager em)
-
Method Summary
Modifier and Type Method Description boolean
addRemovedObject(Object value)
boolean
addVersionCheck(Class<?> entityClass, Object id)
boolean
containsEntity(Class<?> entityClass, Object id)
javax.persistence.EntityManager
getEntityManager()
EntityViewProxy
getEntityView(Class<?> viewType, Class<?> entityClass, Object updatableProxy, boolean convertOnly, boolean prePhase)
EntityViewProxy
getEntityView(Class<?> viewType, Class<?> entityClass, Object updatableProxy, boolean convertOnly, boolean prePhase, javax.persistence.EntityManager entityManager)
EntityViewManagerImpl
getEntityViewManager()
InitialStateResetter
getInitialStateResetter()
List<PostFlushDeleter>
getOrphanRemovalDeleters()
TransactionAccess
getTransactionAccess()
boolean
hasPossiblyCancellingRemoveListeners(Class<?> elementEntityClass)
boolean
hasRemoveListeners(Class<?> elementEntityClass)
void
invokePostPersist(MutableStateTrackable updatableProxy, Object entity)
void
invokePostRemove(EntityViewProxy entityView)
void
invokePostRemove(Class<?> entityClass, Object entityId)
void
invokePostUpdate(MutableStateTrackable updatableProxy)
void
invokePrePersist(MutableStateTrackable updatableProxy, Object entity)
boolean
invokePreRemove(EntityViewProxy entityViewProxy)
boolean
invokePreRemove(Class<?> entityClass, Object entityId)
boolean
invokePreUpdate(MutableStateTrackable updatableProxy)
boolean
isForceEntity()
boolean
isForceFull()
boolean
isRemovedObject(Object value)
void
removeOrphans(int orphanRemovalStartIndex)
void
removeRemovedObject(Object value)
-
Constructor Details
-
Method Details
-
getEntityViewManager
- Specified by:
getEntityViewManager
in interfaceUpdateContext
-
getEntityManager
public javax.persistence.EntityManager getEntityManager()- Specified by:
getEntityManager
in interfaceUpdateContext
-
containsEntity
- Specified by:
containsEntity
in interfaceUpdateContext
-
isForceFull
public boolean isForceFull()- Specified by:
isForceFull
in interfaceUpdateContext
-
isForceEntity
public boolean isForceEntity()- Specified by:
isForceEntity
in interfaceUpdateContext
-
addVersionCheck
- Specified by:
addVersionCheck
in interfaceUpdateContext
-
addRemovedObject
- Specified by:
addRemovedObject
in interfaceUpdateContext
-
removeRemovedObject
- Specified by:
removeRemovedObject
in interfaceUpdateContext
-
isRemovedObject
- Specified by:
isRemovedObject
in interfaceUpdateContext
-
getTransactionAccess
- Specified by:
getTransactionAccess
in interfaceUpdateContext
-
getInitialStateResetter
- Specified by:
getInitialStateResetter
in interfaceUpdateContext
-
getOrphanRemovalDeleters
- Specified by:
getOrphanRemovalDeleters
in interfaceUpdateContext
-
removeOrphans
public void removeOrphans(int orphanRemovalStartIndex)- Specified by:
removeOrphans
in interfaceUpdateContext
-
invokePrePersist
- Specified by:
invokePrePersist
in interfaceUpdateContext
-
invokePostPersist
- Specified by:
invokePostPersist
in interfaceUpdateContext
-
invokePreUpdate
- Specified by:
invokePreUpdate
in interfaceUpdateContext
-
invokePostUpdate
- Specified by:
invokePostUpdate
in interfaceUpdateContext
-
invokePreRemove
- Specified by:
invokePreRemove
in interfaceUpdateContext
-
invokePreRemove
- Specified by:
invokePreRemove
in interfaceUpdateContext
-
invokePostRemove
- Specified by:
invokePostRemove
in interfaceUpdateContext
-
invokePostRemove
- Specified by:
invokePostRemove
in interfaceUpdateContext
-
getEntityView
public EntityViewProxy getEntityView(Class<?> viewType, Class<?> entityClass, Object updatableProxy, boolean convertOnly, boolean prePhase)- Specified by:
getEntityView
in interfaceUpdateContext
-
getEntityView
public EntityViewProxy getEntityView(Class<?> viewType, Class<?> entityClass, Object updatableProxy, boolean convertOnly, boolean prePhase, javax.persistence.EntityManager entityManager)- Specified by:
getEntityView
in interfaceUpdateContext
-
hasRemoveListeners
- Specified by:
hasRemoveListeners
in interfaceUpdateContext
-
hasPossiblyCancellingRemoveListeners
- Specified by:
hasPossiblyCancellingRemoveListeners
in interfaceUpdateContext
-