DirtyChecker<E>
, DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
, FetchGraphNode<E>
public class EmbeddableAttributeFlusher<E,V> extends EmbeddableAttributeFetchGraphNode<EmbeddableAttributeFlusher<E,V>,DirtyAttributeFlusher<?,E,V>> implements DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
DirtyChecker.DirtyKind
attributeName, nestedGraphNode
Constructor | Description |
---|---|
EmbeddableAttributeFlusher(java.lang.String attributeName,
java.lang.String updateFragment,
java.lang.String parameterName,
boolean optimisticLockProtected,
boolean passThrough,
boolean supportsQueryFlush,
AttributeAccessor entityAttributeAccessor,
AttributeAccessor viewAttributeAccessor,
EmbeddableUpdaterBasedViewToEntityMapper viewToEntityMapper) |
Modifier and Type | Method | Description |
---|---|---|
void |
appendUpdateQueryFragment(UpdateContext context,
java.lang.StringBuilder sb,
java.lang.String mappingPrefix,
java.lang.String parameterPrefix,
java.lang.String separator) |
|
V |
cloneDeep(java.lang.Object view,
V oldValue,
V newValue) |
|
boolean |
flushEntity(UpdateContext context,
E entity,
java.lang.Object view,
V value,
java.lang.Runnable postReplaceListener) |
|
void |
flushQuery(UpdateContext context,
java.lang.String parameterPrefix,
javax.persistence.Query query,
java.lang.Object view,
V value,
UnmappedOwnerAwareDeleter ownerAwareDeleter) |
|
DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V> |
getDirtyFlusher(UpdateContext context,
java.lang.Object view,
java.lang.Object initial,
java.lang.Object current) |
|
DirtyChecker.DirtyKind |
getDirtyKind(V initial,
V current) |
Returns the dirty kind of the objects.
|
java.lang.String |
getElementIdAttributeName() |
|
java.lang.String |
getMapping() |
|
<X> DirtyChecker<X>[] |
getNestedCheckers(V current) |
|
java.lang.Object |
getNewInitialValue(UpdateContext context,
V clonedValue,
V currentValue) |
|
AttributeAccessor |
getViewAttributeAccessor() |
|
ViewToEntityMapper |
getViewToEntityMapper() |
|
boolean |
isOptimisticLockProtected() |
|
boolean |
isPassThrough() |
|
boolean |
isViewOnlyDeleteCascaded() |
|
boolean |
loadForEntityFlush() |
|
java.util.List<PostFlushDeleter> |
remove(UpdateContext context,
E entity,
java.lang.Object view,
V value) |
|
void |
remove(UpdateContext context,
java.lang.Object id) |
|
java.util.List<PostFlushDeleter> |
removeByOwnerId(UpdateContext context,
java.lang.Object id) |
|
void |
removeFromEntity(UpdateContext context,
E entity) |
|
boolean |
requiresDeleteCascadeAfterRemove() |
|
boolean |
requiresFlushAfterPersist(V value) |
|
boolean |
supportsQueryFlush() |
appendFetchJoinQueryFragment
appendFetchJoinQueryFragment, getAttributeName, mergeWith
getAttributeName, mergeWith
public EmbeddableAttributeFlusher(java.lang.String attributeName, java.lang.String updateFragment, java.lang.String parameterName, boolean optimisticLockProtected, boolean passThrough, boolean supportsQueryFlush, AttributeAccessor entityAttributeAccessor, AttributeAccessor viewAttributeAccessor, EmbeddableUpdaterBasedViewToEntityMapper viewToEntityMapper)
public ViewToEntityMapper getViewToEntityMapper()
public java.lang.String getMapping()
public V cloneDeep(java.lang.Object view, V oldValue, V newValue)
cloneDeep
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public java.lang.Object getNewInitialValue(UpdateContext context, V clonedValue, V currentValue)
getNewInitialValue
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean supportsQueryFlush()
supportsQueryFlush
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean loadForEntityFlush()
loadForEntityFlush
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public void appendUpdateQueryFragment(UpdateContext context, java.lang.StringBuilder sb, java.lang.String mappingPrefix, java.lang.String parameterPrefix, java.lang.String separator)
appendUpdateQueryFragment
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public void flushQuery(UpdateContext context, java.lang.String parameterPrefix, javax.persistence.Query query, java.lang.Object view, V value, UnmappedOwnerAwareDeleter ownerAwareDeleter)
flushQuery
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean flushEntity(UpdateContext context, E entity, java.lang.Object view, V value, java.lang.Runnable postReplaceListener)
flushEntity
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public java.util.List<PostFlushDeleter> remove(UpdateContext context, E entity, java.lang.Object view, V value)
remove
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public void remove(UpdateContext context, java.lang.Object id)
remove
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public void removeFromEntity(UpdateContext context, E entity)
removeFromEntity
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public java.util.List<PostFlushDeleter> removeByOwnerId(UpdateContext context, java.lang.Object id)
removeByOwnerId
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean requiresDeleteCascadeAfterRemove()
requiresDeleteCascadeAfterRemove
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean isViewOnlyDeleteCascaded()
isViewOnlyDeleteCascaded
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean isPassThrough()
isPassThrough
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public java.lang.String getElementIdAttributeName()
getElementIdAttributeName
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public AttributeAccessor getViewAttributeAccessor()
getViewAttributeAccessor
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean isOptimisticLockProtected()
isOptimisticLockProtected
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public boolean requiresFlushAfterPersist(V value)
requiresFlushAfterPersist
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
public <X> DirtyChecker<X>[] getNestedCheckers(V current)
getNestedCheckers
in interface DirtyChecker<E>
public DirtyChecker.DirtyKind getDirtyKind(V initial, V current)
DirtyChecker
getDirtyKind
in interface DirtyChecker<E>
public DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V> getDirtyFlusher(UpdateContext context, java.lang.Object view, java.lang.Object initial, java.lang.Object current)
getDirtyFlusher
in interface DirtyAttributeFlusher<EmbeddableAttributeFlusher<E,V>,E,V>
Copyright © 2014–2018 Blazebit. All rights reserved.