public class SqlFileBatchInsertQuery<ELEMENT> extends SqlFileBatchModifyQuery<ELEMENT> implements BatchInsertQuery
| Modifier and Type | Class and Description |
|---|---|
protected class |
SqlFileBatchInsertQuery.EntityHandler |
protected static class |
SqlFileBatchInsertQuery.SqlFileBatchPostInsertContext<E> |
protected static class |
SqlFileBatchInsertQuery.SqlFileBatchPreInsertContext<E> |
| Modifier and Type | Field and Description |
|---|---|
protected SqlFileBatchInsertQuery.EntityHandler |
entityHandler |
batchSize, currentEntity, elementClass, elements, EMPTY_STRINGS, excludedPropertyNames, executable, includedPropertyNames, kind, optimisticLockCheckRequired, parameterName, sqlExecutionSkipCause, sqlFile, sqlFilePath, sqlLogType, sqlscallerClassName, callerMethodName, config, message, method, queryTimeout| Constructor and Description |
|---|
SqlFileBatchInsertQuery(java.lang.Class<ELEMENT> elementClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
generateId(java.sql.Statement statement,
int index) |
boolean |
isBatchSupported() |
protected void |
preInsert() |
void |
prepare() |
void |
setEntityType(EntityType<ELEMENT> entityType) |
expandColumns, getBatchSize, getConfig, getEntities, getSql, getSqlExecutionSkipCause, getSqlLogType, getSqls, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequired, populateValues, prepareOptions, prepareSql, prepareSqlFile, setBatchSize, setElements, setExcludedPropertyNames, setIncludedPropertyNames, setParameterName, setSqlFilePath, setSqlLogType, toStringcomment, getClassName, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBatchSize, getSql, getSqlExecutionSkipCause, getSqlLogType, getSqls, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequiredcomment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeoutprotected SqlFileBatchInsertQuery.EntityHandler entityHandler
public SqlFileBatchInsertQuery(java.lang.Class<ELEMENT> elementClass)
public void prepare()
prepare in interface Queryprepare in class SqlFileBatchModifyQuery<ELEMENT>protected void preInsert()
public void generateId(java.sql.Statement statement,
int index)
generateId in interface BatchInsertQuerypublic void setEntityType(EntityType<ELEMENT> entityType)
setEntityType in class SqlFileBatchModifyQuery<ELEMENT>public boolean isBatchSupported()
isBatchSupported in interface BatchInsertQuery