public class DeleteSettings extends Settings
| Constructor and Description |
|---|
DeleteSettings() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowEmptyWhere()
Returns whether the empty WHERE clause is allowed or not.
|
int |
getBatchSize()
Returns the batch size.
|
boolean |
getIgnoreVersion()
Returns whether to ignore the version property or not.
|
boolean |
getSuppressOptimisticLockException()
Returns whether to suppress
OptimisticLockException or not. |
void |
setAllowEmptyWhere(boolean allowEmptyWhere)
Sets whether the empty WHERE clause is allowed or not.
|
void |
setBatchSize(int batchSize)
Sets the batch size.
|
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 DELETE 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 not