public class InsertSettings extends Settings
| Constructor and Description |
|---|
InsertSettings() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PropertyMetamodel<?>> |
exclude()
Returns the excluded properties.
|
void |
exclude(PropertyMetamodel<?>... propertyMetamodels)
Sets the excluded properties.
|
int |
getBatchSize()
Returns the batch size.
|
boolean |
getExcludeNull()
Returns whether to exclude null properties or not.
|
boolean |
getIgnoreGeneratedKeys()
Returns whether auto-generated keys are ignored.
|
java.util.List<PropertyMetamodel<?>> |
include()
Returns the included properties.
|
void |
include(PropertyMetamodel<?>... propertyMetamodels)
Sets the included properties.
|
void |
setBatchSize(int batchSize)
Sets the batch size.
|
void |
setExcludeNull(boolean excludeNull)
Sets whether to exclude null properties or not.
|
void |
setIgnoreGeneratedKeys(boolean ignoreGeneratedKeys)
If this flag is enabled, performance may be improved.
|
getComment, getQueryTimeout, getSqlLogType, setComment, setQueryTimeout, setSqlLogTypepublic int getBatchSize()
public void setBatchSize(int batchSize)
If the value is less than 1, it is regarded as 1.
batchSize - the batch sizeStatement.executeBatch(),
PreparedStatement.addBatch()public boolean getExcludeNull()
public void setExcludeNull(boolean excludeNull)
If the value is true, the null properties are excluded from the SQL INSERT
statement.
excludeNull - whether to exclude null properties or notpublic java.util.List<PropertyMetamodel<?>> include()
public void include(PropertyMetamodel<?>... propertyMetamodels)
propertyMetamodels - the included propertiespublic java.util.List<PropertyMetamodel<?>> exclude()
public void exclude(PropertyMetamodel<?>... propertyMetamodels)
propertyMetamodels - the excluded propertiespublic boolean getIgnoreGeneratedKeys()
public void setIgnoreGeneratedKeys(boolean ignoreGeneratedKeys)
ignoreGeneratedKeys - whether auto-generated keys are ignored