public class AutoUpdateQuery<ENTITY> extends AutoModifyQuery<ENTITY> implements UpdateQuery
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AutoUpdateQuery.AutoPostUpdateContext<E> |
protected static class |
AutoUpdateQuery.AutoPreUpdateContext<E> |
| Modifier and Type | Field and Description |
|---|---|
protected UpdateQueryHelper<ENTITY> |
helper |
protected boolean |
nullExcluded |
protected boolean |
optimisticLockExceptionSuppressed |
protected boolean |
unchangedPropertyIncluded |
protected boolean |
versionIgnored |
autoGeneratedKeysSupported, EMPTY_STRINGS, entity, entityType, excludedPropertyNames, executable, idPropertyTypes, includedPropertyNames, optimisticLockCheckRequired, sql, sqlExecutionSkipCause, sqlLogType, targetPropertyTypes, tenantIdPropertyType, versionPropertyTypecallerClassName, callerMethodName, config, message, method, queryTimeout| Constructor and Description |
|---|
AutoUpdateQuery(EntityType<ENTITY> entityType) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
incrementVersion() |
protected void |
postUpdate() |
void |
prepare() |
protected void |
prepareOptimisticLock() |
protected void |
prepareSql() |
protected void |
prepareTargetPropertyTypes() |
protected void |
preUpdate() |
void |
setNullExcluded(boolean nullExcluded) |
void |
setOptimisticLockExceptionSuppressed(boolean optimisticLockExceptionSuppressed) |
void |
setUnchangedPropertyIncluded(java.lang.Boolean unchangedPropertyIncluded) |
protected void |
setupHelper() |
void |
setVersionIgnored(boolean versionIgnored) |
getEntity, getSql, getSqlExecutionSkipCause, getSqlLogType, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequired, isTargetPropertyName, prepareOptions, prepareSpecialPropertyTypes, setEntity, setExcludedPropertyNames, setIncludedPropertyNames, setSqlLogType, toString, validateIdExistentcomment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSql, getSqlExecutionSkipCause, getSqlLogType, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequiredcomment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeoutprotected boolean nullExcluded
protected boolean versionIgnored
protected boolean optimisticLockExceptionSuppressed
protected boolean unchangedPropertyIncluded
protected UpdateQueryHelper<ENTITY> helper
public AutoUpdateQuery(EntityType<ENTITY> entityType)
public void prepare()
prepare in interface Queryprepare in class AbstractQueryprotected void setupHelper()
protected void preUpdate()
protected void prepareOptimisticLock()
protected void prepareTargetPropertyTypes()
protected void prepareSql()
public void incrementVersion()
incrementVersion in interface UpdateQueryprotected void postUpdate()
public void setNullExcluded(boolean nullExcluded)
public void setVersionIgnored(boolean versionIgnored)
public void setOptimisticLockExceptionSuppressed(boolean optimisticLockExceptionSuppressed)
public void setUnchangedPropertyIncluded(java.lang.Boolean unchangedPropertyIncluded)