Class InverseCollectionElementAttributeFlusher<E,V>
java.lang.Object
com.blazebit.persistence.view.impl.update.flush.CollectionElementFetchGraphNode<CollectionElementAttributeFlusher<E,V>,DirtyAttributeFlusher<?,E,V>>
com.blazebit.persistence.view.impl.update.flush.CollectionElementAttributeFlusher<E,V>
com.blazebit.persistence.view.impl.update.flush.InverseCollectionElementAttributeFlusher<E,V>
- All Implemented Interfaces:
DirtyChecker<V>
,DirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>,E,V>
,FetchGraphNode<CollectionElementAttributeFlusher<E,V>>
public class InverseCollectionElementAttributeFlusher<E,V> extends CollectionElementAttributeFlusher<E,V>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InverseCollectionElementAttributeFlusher.Strategy
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.impl.change.DirtyChecker
DirtyChecker.DirtyKind
-
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementAttributeFlusher
element
Fields inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementFetchGraphNode
nestedGraphNode
-
Constructor Summary
Constructors Constructor Description InverseCollectionElementAttributeFlusher(DirtyAttributeFlusher<?,E,V> nestedGraphNode, Object element, boolean optimisticLockProtected, InverseFlusher<E> inverseFlusher, InverseCollectionElementAttributeFlusher.Strategy strategy)
-
Method Summary
Modifier and Type Method Description boolean
flushEntity(UpdateContext context, E entity, Object ownerView, Object view, V value, Runnable postReplaceListener)
javax.persistence.Query
flushQuery(UpdateContext context, String parameterPrefix, UpdateQueryFactory queryFactory, javax.persistence.Query query, Object ownerView, Object view, V value, UnmappedOwnerAwareDeleter ownerAwareDeleter, DirtyAttributeFlusher<?,?,?> ownerFlusher)
Methods inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementAttributeFlusher
appendUpdateQueryFragment, cloneDeep, getDirtyFlusher, getDirtyKind, getElement, getElementIdAttributeName, getEntityAttributeAccessor, getLockOwner, getNestedCheckers, getNewInitialValue, getViewAttributeAccessor, isOptimisticLockProtected, isPassThrough, isViewOnlyDeleteCascaded, loadForEntityFlush, remove, remove, removeByOwnerId, removeFromEntity, requiresDeferredFlush, requiresDeleteCascadeAfterRemove, requiresFlushAfterPersist, supportsQueryFlush
Methods inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementFetchGraphNode
appendFetchJoinQueryFragment, getAttributeName, getMapping, mergeWith
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blazebit.persistence.view.impl.update.flush.DirtyAttributeFlusher
appendFetchJoinQueryFragment
Methods inherited from interface com.blazebit.persistence.view.impl.update.flush.FetchGraphNode
getAttributeName, getMapping, mergeWith
-
Constructor Details
-
InverseCollectionElementAttributeFlusher
public InverseCollectionElementAttributeFlusher(DirtyAttributeFlusher<?,E,V> nestedGraphNode, Object element, boolean optimisticLockProtected, InverseFlusher<E> inverseFlusher, InverseCollectionElementAttributeFlusher.Strategy strategy)
-
-
Method Details
-
flushQuery
public javax.persistence.Query flushQuery(UpdateContext context, String parameterPrefix, UpdateQueryFactory queryFactory, javax.persistence.Query query, Object ownerView, Object view, V value, UnmappedOwnerAwareDeleter ownerAwareDeleter, DirtyAttributeFlusher<?,?,?> ownerFlusher)- Specified by:
flushQuery
in interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>,E,V>
- Overrides:
flushQuery
in classCollectionElementAttributeFlusher<E,V>
-
flushEntity
public boolean flushEntity(UpdateContext context, E entity, Object ownerView, Object view, V value, Runnable postReplaceListener)- Specified by:
flushEntity
in interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>,E,V>
- Overrides:
flushEntity
in classCollectionElementAttributeFlusher<E,V>
-