public class AutoBatchInsertQuery<ENTITY> extends AutoBatchModifyQuery<ENTITY> implements BatchInsertQuery
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AutoBatchInsertQuery.AutoBatchPostInsertContext<E> |
protected static class |
AutoBatchInsertQuery.AutoBatchPreInsertContext<E> |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
batchSupported |
protected DuplicateKeyType |
duplicateKeyType |
protected GeneratedIdPropertyType<ENTITY,?,?> |
generatedIdPropertyType |
protected boolean |
generatedKeysIgnored |
protected IdGenerationConfig |
idGenerationConfig |
autoGeneratedKeysSupported, batchSize, currentEntity, EMPTY_STRINGS, entities, entityType, excludedPropertyNames, executable, idPropertyTypes, includedPropertyNames, optimisticLockCheckRequired, sqlExecutionSkipCause, sqlLogType, sqls, targetPropertyTypes, tenantIdPropertyType, versionPropertyTypecallerClassName, callerMethodName, config, message, method, queryTimeout| Constructor and Description |
|---|
AutoBatchInsertQuery(EntityType<ENTITY> entityType) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
generateId(java.sql.Statement statement,
int index) |
boolean |
isBatchSupported() |
protected void |
postInsert() |
protected void |
preInsert() |
void |
prepare() |
protected void |
prepareIdAndVersionPropertyTypes() |
protected void |
prepareIdValue() |
protected void |
prepareSql() |
protected void |
prepareTargetPropertyTypes() |
protected void |
prepareVersionValue() |
void |
setDuplicateKeyType(DuplicateKeyType duplicateKeyType) |
void |
setGeneratedKeysIgnored(boolean generatedKeysIgnored) |
getBatchSize, getEntities, getSql, getSqlExecutionSkipCause, getSqlLogType, getSqls, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequired, isTargetPropertyName, prepareOptions, setBatchSize, setEntities, setExcludedPropertyNames, setIncludedPropertyNames, setSqlLogType, toString, validateIdExistentcomment, getClassName, getConfig, 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 GeneratedIdPropertyType<ENTITY,?,?> generatedIdPropertyType
protected IdGenerationConfig idGenerationConfig
protected boolean batchSupported
protected boolean generatedKeysIgnored
protected DuplicateKeyType duplicateKeyType
public AutoBatchInsertQuery(EntityType<ENTITY> entityType)
public void setGeneratedKeysIgnored(boolean generatedKeysIgnored)
public void setDuplicateKeyType(DuplicateKeyType duplicateKeyType)
public void prepare()
prepare in interface Queryprepare in class AbstractQueryprotected void preInsert()
protected void prepareIdAndVersionPropertyTypes()
prepareIdAndVersionPropertyTypes in class AutoBatchModifyQuery<ENTITY>protected void prepareTargetPropertyTypes()
protected void prepareIdValue()
protected void prepareVersionValue()
protected void prepareSql()
public boolean isBatchSupported()
isBatchSupported in interface BatchInsertQuerypublic void generateId(java.sql.Statement statement,
int index)
generateId in interface BatchInsertQueryprotected void postInsert()