Interface DirtyAttributeFlusher<T extends DirtyAttributeFlusher<T,E,V>,E,V>
- All Superinterfaces:
DirtyChecker<V>,FetchGraphNode<T>
- All Known Implementing Classes:
AbstractPluralAttributeFlusher,BasicAttributeFlusher,CascadingCollectionElementAttributeFlusher,CollectionAttributeFlusher,CollectionElementAttributeFlusher,CompositeAttributeFlusher,EmbeddableAttributeFlusher,IndexedListAttributeFlusher,InverseCollectionElementAttributeFlusher,MapAttributeFlusher,MergeCollectionElementAttributeFlusher,MergeMapKeyAttributeFlusher,MergeMapValueAttributeFlusher,ParentCollectionReferenceAttributeFlusher,ParentReferenceAttributeFlusher,PersistCollectionElementAttributeFlusher,SubviewAttributeFlusher,UpdateCollectionElementAttributeFlusher,VersionAttributeFlusher
public interface DirtyAttributeFlusher<T extends DirtyAttributeFlusher<T,E,V>,E,V>
extends FetchGraphNode<T>, DirtyChecker<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 -
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) getNewInitialValue(UpdateContext context, V clonedValue, V currentValue) booleanbooleanbooleanbooleanremove(UpdateContext context, E entity, Object view, V value) voidremove(UpdateContext context, Object id) removeByOwnerId(UpdateContext context, Object id) voidremoveFromEntity(UpdateContext context, E entity) booleanrequiresDeferredFlush(V value) booleanbooleanrequiresFlushAfterPersist(V value) booleanMethods inherited from interface com.blazebit.persistence.view.impl.change.DirtyChecker
getDirtyKind, getNestedCheckersMethods inherited from interface com.blazebit.persistence.view.impl.update.flush.FetchGraphNode
getAttributeName, getMapping, mergeWith
-
Method Details
-
getDirtyFlusher
DirtyAttributeFlusher<T,E, getDirtyFlusherV> (UpdateContext context, Object view, Object initial, Object current) -
appendUpdateQueryFragment
boolean appendUpdateQueryFragment(UpdateContext context, StringBuilder sb, String mappingPrefix, String parameterPrefix, String separator) -
appendFetchJoinQueryFragment
- Specified by:
appendFetchJoinQueryFragmentin interfaceFetchGraphNode<T extends DirtyAttributeFlusher<T,E, V>>
-
supportsQueryFlush
boolean supportsQueryFlush() -
loadForEntityFlush
boolean loadForEntityFlush() -
getNewInitialValue
-
flushQuery
javax.persistence.Query flushQuery(UpdateContext context, String parameterPrefix, UpdateQueryFactory queryFactory, javax.persistence.Query query, Object ownerView, Object view, V value, UnmappedOwnerAwareDeleter ownerAwareDeleter, DirtyAttributeFlusher<?, ?, ?> ownerFlusher) -
flushEntity
-
removeFromEntity
-
remove
-
remove
-
removeByOwnerId
-
cloneDeep
-
isPassThrough
boolean isPassThrough() -
getElementIdAttributeName
String getElementIdAttributeName() -
getViewAttributeAccessor
AttributeAccessor getViewAttributeAccessor() -
getEntityAttributeAccessor
AttributeAccessor getEntityAttributeAccessor() -
getLockOwner
String getLockOwner() -
isOptimisticLockProtected
boolean isOptimisticLockProtected() -
requiresFlushAfterPersist
-
requiresDeferredFlush
-
requiresDeleteCascadeAfterRemove
boolean requiresDeleteCascadeAfterRemove() -
isViewOnlyDeleteCascaded
boolean isViewOnlyDeleteCascaded()
-