Class PersistCollectionElementAttributeFlusher<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.PersistCollectionElementAttributeFlusher<E,V>
- All Implemented Interfaces:
DirtyChecker<V>,DirtyAttributeFlusher<CollectionElementAttributeFlusher<E,,V>, E, V> FetchGraphNode<CollectionElementAttributeFlusher<E,V>>
public class PersistCollectionElementAttributeFlusher<E,V>
extends CollectionElementAttributeFlusher<E,V>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
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
elementFields inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementFetchGraphNode
nestedGraphNode -
Constructor Summary
ConstructorsConstructorDescriptionPersistCollectionElementAttributeFlusher(Object element, boolean optimisticLockProtected) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFetchJoinQueryFragment(String base, StringBuilder sb) booleanappendUpdateQueryFragment(UpdateContext context, StringBuilder sb, String mappingPrefix, String parameterPrefix, String separator) booleanflushEntity(UpdateContext context, E entity, Object ownerView, Object view, V value, Runnable postReplaceListener) javax.persistence.QueryflushQuery(UpdateContext context, String parameterPrefix, UpdateQueryFactory queryFactory, javax.persistence.Query query, Object ownerView, Object view, V value, UnmappedOwnerAwareDeleter ownerAwareDeleter, DirtyAttributeFlusher<?, ?, ?> ownerFlusher) getDirtyFlusher(UpdateContext context, Object view, Object initial, Object current) mergeWith(List<CollectionElementAttributeFlusher<E, V>> fetchGraphNodes) Methods inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementAttributeFlusher
cloneDeep, getDirtyKind, getElement, getElementIdAttributeName, getEntityAttributeAccessor, getLockOwner, getNestedCheckers, getNewInitialValue, getViewAttributeAccessor, isOptimisticLockProtected, isPassThrough, isViewOnlyDeleteCascaded, loadForEntityFlush, remove, remove, removeByOwnerId, removeFromEntity, requiresDeferredFlush, requiresDeleteCascadeAfterRemove, requiresFlushAfterPersist, supportsQueryFlushMethods inherited from class com.blazebit.persistence.view.impl.update.flush.CollectionElementFetchGraphNode
getAttributeName, getMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blazebit.persistence.view.impl.update.flush.FetchGraphNode
getAttributeName, getMapping
-
Constructor Details
-
PersistCollectionElementAttributeFlusher
-
-
Method Details
-
mergeWith
- Specified by:
mergeWithin interfaceFetchGraphNode<E>- Overrides:
mergeWithin classCollectionElementFetchGraphNode<CollectionElementAttributeFlusher<E,V>, DirtyAttributeFlusher<?, E, V>>
-
appendFetchJoinQueryFragment
- Specified by:
appendFetchJoinQueryFragmentin interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, E, V> - Specified by:
appendFetchJoinQueryFragmentin interfaceFetchGraphNode<E>- Overrides:
appendFetchJoinQueryFragmentin classCollectionElementFetchGraphNode<CollectionElementAttributeFlusher<E,V>, DirtyAttributeFlusher<?, E, V>>
-
appendUpdateQueryFragment
public boolean appendUpdateQueryFragment(UpdateContext context, StringBuilder sb, String mappingPrefix, String parameterPrefix, String separator) - Specified by:
appendUpdateQueryFragmentin interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, E, V> - Overrides:
appendUpdateQueryFragmentin classCollectionElementAttributeFlusher<E,V>
-
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:
flushQueryin interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, E, V> - Overrides:
flushQueryin classCollectionElementAttributeFlusher<E,V>
-
flushEntity
public boolean flushEntity(UpdateContext context, E entity, Object ownerView, Object view, V value, Runnable postReplaceListener) - Specified by:
flushEntityin interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, E, V> - Overrides:
flushEntityin classCollectionElementAttributeFlusher<E,V>
-
getDirtyFlusher
public DirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, getDirtyFlusherE, V> (UpdateContext context, Object view, Object initial, Object current) - Specified by:
getDirtyFlusherin interfaceDirtyAttributeFlusher<CollectionElementAttributeFlusher<E,V>, E, V> - Overrides:
getDirtyFlusherin classCollectionElementAttributeFlusher<E,V>
-