public abstract class SqlFileBatchModifyQuery<ELEMENT> extends AbstractQuery implements BatchModifyQuery
| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected ELEMENT |
currentEntity |
protected java.lang.Class<ELEMENT> |
elementClass |
protected java.util.List<ELEMENT> |
elements |
protected static java.lang.String[] |
EMPTY_STRINGS |
protected java.lang.String[] |
excludedPropertyNames |
protected boolean |
executable |
protected java.lang.String[] |
includedPropertyNames |
protected SqlKind |
kind |
protected boolean |
optimisticLockCheckRequired |
protected java.lang.String |
parameterName |
protected SqlExecutionSkipCause |
sqlExecutionSkipCause |
protected SqlFile |
sqlFile |
protected java.lang.String |
sqlFilePath |
protected SqlLogType |
sqlLogType |
protected java.util.List<PreparedSql> |
sqls |
callerClassName, callerMethodName, config, message, method, queryTimeout| Modifier | Constructor and Description |
|---|---|
protected |
SqlFileBatchModifyQuery(java.lang.Class<ELEMENT> elementClass,
SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
expandColumns(org.seasar.doma.internal.jdbc.sql.node.ExpandNode node) |
int |
getBatchSize() |
Config |
getConfig() |
java.util.List<ELEMENT> |
getEntities() |
PreparedSql |
getSql() |
SqlExecutionSkipCause |
getSqlExecutionSkipCause() |
SqlLogType |
getSqlLogType() |
java.util.List<PreparedSql> |
getSqls() |
boolean |
isAutoGeneratedKeysSupported() |
boolean |
isExecutable() |
boolean |
isOptimisticLockCheckRequired() |
protected void |
populateValues(org.seasar.doma.internal.jdbc.sql.node.PopulateNode node,
org.seasar.doma.internal.jdbc.sql.SqlContext context) |
void |
prepare() |
protected void |
prepareOptions() |
protected void |
prepareSql() |
protected void |
prepareSqlFile() |
void |
setBatchSize(int batchSize) |
void |
setElements(java.lang.Iterable<ELEMENT> elements) |
abstract void |
setEntityType(EntityType<ELEMENT> entityType) |
void |
setExcludedPropertyNames(java.lang.String... excludedPropertyNames) |
void |
setIncludedPropertyNames(java.lang.String... includedPropertyNames) |
void |
setParameterName(java.lang.String parameterName) |
void |
setSqlFilePath(java.lang.String sqlFilePath) |
void |
setSqlLogType(SqlLogType sqlLogType) |
java.lang.String |
toString() |
comment, getClassName, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomment, complete, getClassName, getMethod, getMethodName, getQueryTimeoutprotected static final java.lang.String[] EMPTY_STRINGS
protected final java.lang.Class<ELEMENT> elementClass
protected final SqlKind kind
protected java.lang.String sqlFilePath
protected java.lang.String parameterName
protected SqlFile sqlFile
protected boolean optimisticLockCheckRequired
protected boolean executable
protected SqlExecutionSkipCause sqlExecutionSkipCause
protected int batchSize
protected SqlLogType sqlLogType
protected java.lang.String[] includedPropertyNames
protected java.lang.String[] excludedPropertyNames
protected java.util.List<ELEMENT> elements
protected ELEMENT currentEntity
protected java.util.List<PreparedSql> sqls
public void prepare()
prepare in interface Queryprepare in class AbstractQueryprotected void prepareSqlFile()
protected void prepareOptions()
protected void prepareSql()
protected java.util.List<java.lang.String> expandColumns(org.seasar.doma.internal.jdbc.sql.node.ExpandNode node)
protected void populateValues(org.seasar.doma.internal.jdbc.sql.node.PopulateNode node,
org.seasar.doma.internal.jdbc.sql.SqlContext context)
public void setSqlFilePath(java.lang.String sqlFilePath)
public void setParameterName(java.lang.String parameterName)
public void setElements(java.lang.Iterable<ELEMENT> elements)
public java.util.List<ELEMENT> getEntities()
public void setBatchSize(int batchSize)
public void setSqlLogType(SqlLogType sqlLogType)
public void setIncludedPropertyNames(java.lang.String... includedPropertyNames)
public void setExcludedPropertyNames(java.lang.String... excludedPropertyNames)
public abstract void setEntityType(EntityType<ELEMENT> entityType)
public PreparedSql getSql()
getSql in interface BatchModifyQuerygetSql in interface Querypublic java.util.List<PreparedSql> getSqls()
getSqls in interface BatchModifyQuerypublic Config getConfig()
getConfig in interface QuerygetConfig in class AbstractQuerypublic 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