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,
ViewToEntityMapper viewToEntityMapper) |
Modifier and Type | Method | Description |
---|---|---|
void |
appendUpdateQueryFragment(UpdateContext context,
java.lang.StringBuilder sb,
java.lang.String mappingPrefix,
java.lang.String parameterPrefix) |
|
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) |
|
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() |
|
<X> DirtyChecker<X>[] |
getNestedCheckers(V current) |
|
java.lang.Object |
getNewInitialValue(UpdateContext context,
V clonedValue,
V currentValue) |
|
AttributeAccessor |
getViewAttributeAccessor() |
|
boolean |
isOptimisticLockProtected() |
|
boolean |
isPassThrough() |
|
boolean |
isViewOnlyDeleteCascaded() |
|
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, ViewToEntityMapper viewToEntityMapper)
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 void appendUpdateQueryFragment(UpdateContext context, java.lang.StringBuilder sb, java.lang.String mappingPrefix, java.lang.String parameterPrefix)
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)
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.