public class AutoInsertQuery<ENTITY> extends AutoModifyQuery<ENTITY> implements InsertQuery
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AutoInsertQuery.AutoPostInsertContext<E> |
protected static class |
AutoInsertQuery.AutoPreInsertContext<E> |
| Modifier and Type | Field and Description |
|---|---|
protected DuplicateKeyType |
duplicateKeyType |
protected GeneratedIdPropertyType<ENTITY,?,?> |
generatedIdPropertyType |
protected IdGenerationConfig |
idGenerationConfig |
protected boolean |
nullExcluded |
autoGeneratedKeysSupported, EMPTY_STRINGS, entity, entityType, excludedPropertyNames, executable, idPropertyTypes, includedPropertyNames, optimisticLockCheckRequired, sql, sqlExecutionSkipCause, sqlLogType, targetPropertyTypes, tenantIdPropertyType, versionPropertyTypecallerClassName, callerMethodName, config, message, method, queryTimeout| Constructor and Description |
|---|
AutoInsertQuery(EntityType<ENTITY> entityType) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
generateId(java.sql.Statement statement) |
protected void |
postInsert() |
protected void |
preInsert() |
void |
prepare() |
protected void |
prepareIdValue() |
protected void |
prepareSpecialPropertyTypes() |
protected void |
prepareSql() |
protected void |
prepareTargetPropertyType() |
protected void |
prepareVersionValue() |
void |
setDuplicateKeyType(DuplicateKeyType duplicateKeyType) |
void |
setNullExcluded(boolean nullExcluded) |
getEntity, getSql, getSqlExecutionSkipCause, getSqlLogType, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequired, isTargetPropertyName, prepareOptions, setEntity, setExcludedPropertyNames, setIncludedPropertyNames, setSqlLogType, toString, validateIdExistentcomment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSql, getSqlExecutionSkipCause, getSqlLogType, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequiredcomment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeoutprotected boolean nullExcluded
protected GeneratedIdPropertyType<ENTITY,?,?> generatedIdPropertyType
protected IdGenerationConfig idGenerationConfig
protected DuplicateKeyType duplicateKeyType
public AutoInsertQuery(EntityType<ENTITY> entityType)
public void prepare()
prepare in interface Queryprepare in class AbstractQueryprotected void preInsert()
protected void prepareSpecialPropertyTypes()
prepareSpecialPropertyTypes in class AutoModifyQuery<ENTITY>protected void prepareTargetPropertyType()
protected void prepareIdValue()
protected void prepareVersionValue()
protected void prepareSql()
public void generateId(java.sql.Statement statement)
generateId in interface InsertQueryprotected void postInsert()
public void setNullExcluded(boolean nullExcluded)
public void setDuplicateKeyType(DuplicateKeyType duplicateKeyType)