public abstract class AutoBatchModifyQuery<ENTITY> extends AbstractQuery implements BatchModifyQuery
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoGeneratedKeysSupported |
protected int |
batchSize |
protected ENTITY |
currentEntity |
protected static java.lang.String[] |
EMPTY_STRINGS |
protected java.util.List<ENTITY> |
entities |
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 SqlExecutionSkipCause |
sqlExecutionSkipCause |
protected SqlLogType |
sqlLogType |
protected java.util.List<PreparedSql> |
sqls |
protected java.util.List<EntityPropertyType<ENTITY,?>> |
targetPropertyTypes |
protected TenantIdPropertyType<ENTITY,?,?> |
tenantIdPropertyType |
protected VersionPropertyType<ENTITY,?,?> |
versionPropertyType |
callerClassName, callerMethodName, config, message, method, queryTimeout| Constructor and Description |
|---|
AutoBatchModifyQuery(EntityType<ENTITY> entityType) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchSize() |
java.util.List<ENTITY> |
getEntities() |
PreparedSql |
getSql() |
SqlExecutionSkipCause |
getSqlExecutionSkipCause() |
SqlLogType |
getSqlLogType() |
java.util.List<PreparedSql> |
getSqls() |
boolean |
isAutoGeneratedKeysSupported() |
boolean |
isExecutable() |
boolean |
isOptimisticLockCheckRequired() |
protected boolean |
isTargetPropertyName(java.lang.String name) |
protected void |
prepareIdAndVersionPropertyTypes() |
protected void |
prepareOptions() |
void |
setBatchSize(int batchSize) |
void |
setEntities(java.lang.Iterable<ENTITY> entities) |
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.util.List<EntityPropertyType<ENTITY,?>> targetPropertyTypes
protected java.util.List<EntityPropertyType<ENTITY,?>> idPropertyTypes
protected java.lang.String[] includedPropertyNames
protected java.lang.String[] excludedPropertyNames
protected final EntityType<ENTITY> entityType
protected VersionPropertyType<ENTITY,?,?> versionPropertyType
protected TenantIdPropertyType<ENTITY,?,?> tenantIdPropertyType
protected boolean optimisticLockCheckRequired
protected boolean autoGeneratedKeysSupported
protected boolean executable
protected SqlExecutionSkipCause sqlExecutionSkipCause
protected java.util.List<PreparedSql> sqls
protected java.util.List<ENTITY> entities
protected ENTITY currentEntity
protected int batchSize
protected SqlLogType sqlLogType
public AutoBatchModifyQuery(EntityType<ENTITY> entityType)
protected void prepareIdAndVersionPropertyTypes()
protected void validateIdExistent()
protected void prepareOptions()
protected boolean isTargetPropertyName(java.lang.String name)
public void setEntities(java.lang.Iterable<ENTITY> entities)
public java.util.List<ENTITY> getEntities()
public void setBatchSize(int batchSize)
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 BatchModifyQuerygetSql in interface Querypublic java.util.List<PreparedSql> getSqls()
getSqls in interface BatchModifyQuerypublic boolean isOptimisticLockCheckRequired()
isOptimisticLockCheckRequired in interface BatchModifyQuerypublic boolean isAutoGeneratedKeysSupported()
isAutoGeneratedKeysSupported in interface BatchModifyQuerypublic boolean isExecutable()
isExecutable in interface BatchModifyQuerypublic SqlExecutionSkipCause getSqlExecutionSkipCause()
getSqlExecutionSkipCause in interface BatchModifyQuerypublic int getBatchSize()
getBatchSize in interface BatchModifyQuerypublic SqlLogType getSqlLogType()
getSqlLogType in interface BatchModifyQuerypublic java.lang.String toString()
toString in class java.lang.Object