Class ParentReferenceAttributeFlusher<E,V>
java.lang.Object
com.blazebit.persistence.view.impl.update.flush.BasicDirtyChecker<V>
com.blazebit.persistence.view.impl.update.flush.BasicAttributeFlusher<E,V>
com.blazebit.persistence.view.impl.update.flush.ParentReferenceAttributeFlusher<E,V>
- All Implemented Interfaces:
DirtyChecker<V>
,DirtyAttributeFlusher<BasicAttributeFlusher<E,V>,E,V>
,FetchGraphNode<BasicAttributeFlusher<E,V>>
public class ParentReferenceAttributeFlusher<E,V> extends BasicAttributeFlusher<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.BasicAttributeFlusher
entityAttributeAccessor, parameterName
Fields inherited from class com.blazebit.persistence.view.impl.update.flush.BasicDirtyChecker
elementDescriptor
-
Constructor Summary
Constructors Constructor Description ParentReferenceAttributeFlusher(EntityViewManagerImpl evm, Class<?> parentEntityClass, String attributeName, String mapping, Map<String,String> writableMappings, TypeDescriptor typeDescriptor, AttributeAccessor attributeAccessor, Mapper<V,E> mapper)
-
Method Summary
Modifier and Type Method Description boolean
appendUpdateQueryFragment(UpdateContext context, StringBuilder sb, String mappingPrefix, String parameterPrefix, String separator)
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.BasicAttributeFlusher
appendFetchJoinQueryFragment, cloneDeep, flushEntityComponents, getAttributeName, getConvertedValue, getDirtyFlusher, getElementIdAttributeName, getEntityAttributeAccessor, getLockOwner, getMapping, getNewInitialValue, getViewAttributeAccessor, isOptimisticLockProtected, isPassThrough, isViewOnlyDeleteCascaded, loadForEntityFlush, mergeWith, mutableFlusher, remove, remove, removeByOwnerId, removeFromEntity, requiresDeferredFlush, requiresDeleteCascadeAfterRemove, requiresFlushAfterPersist, supportsQueryFlush
Methods inherited from class com.blazebit.persistence.view.impl.update.flush.BasicDirtyChecker
getDirtyKind, getNestedCheckers
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.change.DirtyChecker
getDirtyKind, getNestedCheckers
-
Constructor Details
-
ParentReferenceAttributeFlusher
public ParentReferenceAttributeFlusher(EntityViewManagerImpl evm, Class<?> parentEntityClass, String attributeName, String mapping, Map<String,String> writableMappings, TypeDescriptor typeDescriptor, AttributeAccessor attributeAccessor, Mapper<V,E> mapper)
-
-
Method Details
-
appendUpdateQueryFragment
public boolean appendUpdateQueryFragment(UpdateContext context, StringBuilder sb, String mappingPrefix, String parameterPrefix, String separator)- Specified by:
appendUpdateQueryFragment
in interfaceDirtyAttributeFlusher<BasicAttributeFlusher<E,V>,E,V>
- Overrides:
appendUpdateQueryFragment
in classBasicAttributeFlusher<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:
flushQuery
in interfaceDirtyAttributeFlusher<BasicAttributeFlusher<E,V>,E,V>
- Overrides:
flushQuery
in classBasicAttributeFlusher<E,V>
-
flushEntity
public boolean flushEntity(UpdateContext context, E entity, Object ownerView, Object view, V value, Runnable postReplaceListener)- Specified by:
flushEntity
in interfaceDirtyAttributeFlusher<BasicAttributeFlusher<E,V>,E,V>
- Overrides:
flushEntity
in classBasicAttributeFlusher<E,V>
-