public abstract class AutoModifyQuery<ENTITY> extends AbstractQuery implements ModifyQuery
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoGeneratedKeysSupported |
protected static java.lang.String[] |
EMPTY_STRINGS |
protected ENTITY |
entity |
protected EntityType<ENTITY> |
entityType |
protected java.lang.String[] |
excludedPropertyNames |
protected boolean |
executable |
protected java.util.List<EntityPropertyType<ENTITY,?>> |
idPropertyTypes |
protected java.lang.String[] |
includedPropertyNames |
protected boolean |
optimisticLockCheckRequired |
protected PreparedSql |
sql |
protected SqlExecutionSkipCause |
sqlExecutionSkipCause |
protected SqlLogType |
sqlLogType |
protected java.util.List<EntityPropertyType<ENTITY,?>> |
targetPropertyTypes |
protected TenantIdPropertyType<ENTITY,?,?> |
tenantIdPropertyType |
protected VersionPropertyType<ENTITY,?,?> |
versionPropertyType |
callerClassName, callerMethodName, config, message, method, queryTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AutoModifyQuery(EntityType<ENTITY> entityType) |
| Modifier and Type | Method and Description |
|---|---|
ENTITY |
getEntity() |
PreparedSql |
getSql() |
SqlExecutionSkipCause |
getSqlExecutionSkipCause() |
SqlLogType |
getSqlLogType() |
boolean |
isAutoGeneratedKeysSupported() |
boolean |
isExecutable() |
boolean |
isOptimisticLockCheckRequired() |
protected boolean |
isTargetPropertyName(java.lang.String name) |
protected void |
prepareOptions() |
protected void |
prepareSpecialPropertyTypes() |
void |
setEntity(ENTITY entity) |
void |
setExcludedPropertyNames(java.lang.String... excludedPropertyNames) |
void |
setIncludedPropertyNames(java.lang.String... includedPropertyNames) |
void |
setSqlLogType(SqlLogType sqlLogType) |
java.lang.String |
toString() |
protected void |
validateIdExistent() |
comment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepare, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepareprotected static final java.lang.String[] EMPTY_STRINGS
protected java.lang.String[] includedPropertyNames
protected java.lang.String[] excludedPropertyNames
protected final EntityType<ENTITY> entityType
protected ENTITY entity
protected PreparedSql sql
protected java.util.List<EntityPropertyType<ENTITY,?>> targetPropertyTypes
protected java.util.List<EntityPropertyType<ENTITY,?>> idPropertyTypes
protected VersionPropertyType<ENTITY,?,?> versionPropertyType
protected TenantIdPropertyType<ENTITY,?,?> tenantIdPropertyType
protected boolean optimisticLockCheckRequired
protected boolean autoGeneratedKeysSupported
protected boolean executable
protected SqlExecutionSkipCause sqlExecutionSkipCause
protected SqlLogType sqlLogType
protected AutoModifyQuery(EntityType<ENTITY> entityType)
protected void prepareSpecialPropertyTypes()
protected void validateIdExistent()
protected void prepareOptions()
protected boolean isTargetPropertyName(java.lang.String name)
public void setEntity(ENTITY entity)
public ENTITY getEntity()
public void setIncludedPropertyNames(java.lang.String... includedPropertyNames)
public void setExcludedPropertyNames(java.lang.String... excludedPropertyNames)
public void setSqlLogType(SqlLogType sqlLogType)
public PreparedSql getSql()
getSql in interface ModifyQuerygetSql in interface Querypublic boolean isOptimisticLockCheckRequired()
isOptimisticLockCheckRequired in interface ModifyQuerypublic boolean isExecutable()
isExecutable in interface ModifyQuerypublic SqlExecutionSkipCause getSqlExecutionSkipCause()
getSqlExecutionSkipCause in interface ModifyQuerypublic boolean isAutoGeneratedKeysSupported()
isAutoGeneratedKeysSupported in interface ModifyQuerypublic SqlLogType getSqlLogType()
getSqlLogType in interface ModifyQuerypublic java.lang.String toString()
toString in class java.lang.Object