public class UpdateSettings extends Settings
| Constructor and Description |
|---|
UpdateSettings() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PropertyMetamodel<?>> |
exclude()
Returns the excluded properties.
|
void |
exclude(PropertyMetamodel<?>... propertyMetamodels)
Sets the excluded properties.
|
boolean |
getAllowEmptyWhere()
Returns whether the empty WHERE clause is allowed or not.
|
int |
getBatchSize()
Returns the batch size.
|
boolean |
getExcludeNull()
Returns whether to exclude null properties or not.
|
boolean |
getIgnoreVersion()
Returns whether to ignore the version property or not.
|
boolean |
getSuppressOptimisticLockException()
Returns whether to suppress
OptimisticLockException or not. |
java.util.List<PropertyMetamodel<?>> |
include()
Returns the included properties.
|
void |
include(PropertyMetamodel<?>... propertyMetamodels)
Sets the included properties.
|
void |
setAllowEmptyWhere(boolean allowEmptyWhere)
Sets whether the empty WHERE clause is allowed or not.
|
void |
setBatchSize(int batchSize)
Sets the batch size.
|
void |
setExcludeNull(boolean excludeNull)
Sets whether to exclude null properties or not.
|
void |
setIgnoreVersion(boolean ignoreVersion)
Sets whether to ignore the version property or not.
|
void |
setSuppressOptimisticLockException(boolean suppressOptimisticLockException)
Sets whether to suppress
OptimisticLockException or not. |
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 getAllowEmptyWhere()
public void setAllowEmptyWhere(boolean allowEmptyWhere)
If the value is true and the WHERE clause is empty, EmptyWhereClauseException will be suppressed.
allowEmptyWhere - whether the empty WHERE clause is allowed or notpublic boolean getIgnoreVersion()
public void setIgnoreVersion(boolean ignoreVersion)
If the value is true, the column that mapped to the version property is excluded
from the SQL UPDATE statement.
ignoreVersion - whether to ignore the version property or notpublic boolean getSuppressOptimisticLockException()
OptimisticLockException or not.OptimisticLockException or not. The
default value is false.public void setSuppressOptimisticLockException(boolean suppressOptimisticLockException)
OptimisticLockException or not.suppressOptimisticLockException - whether to suppress OptimisticLockException or notpublic boolean getExcludeNull()
public void setExcludeNull(boolean excludeNull)
If the value is true, the null properties are excluded from the SQL UPDATE
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 properties