java.lang.Object
org.seasar.doma.jdbc.criteria.context.Settings
org.seasar.doma.jdbc.criteria.context.DeleteSettings
Represents the settings for a DELETE criteria query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the empty WHERE clause is allowed or not.intReturns the batch size.booleanReturns whether to ignore the version property or not.booleanReturns whether to suppressOptimisticLockExceptionor not.voidsetAllowEmptyWhere(boolean allowEmptyWhere) Sets whether the empty WHERE clause is allowed or not.voidsetBatchSize(int batchSize) Sets the batch size.voidsetIgnoreVersion(boolean ignoreVersion) Sets whether to ignore the version property or not.voidsetSuppressOptimisticLockException(boolean suppressOptimisticLockException) Sets whether to suppressOptimisticLockExceptionor not.Methods inherited from class org.seasar.doma.jdbc.criteria.context.Settings
getComment, getQueryTimeout, getSqlLogType, setComment, setQueryTimeout, setSqlLogType
-
Constructor Details
-
DeleteSettings
public DeleteSettings()
-
-
Method Details
-
getBatchSize
public int getBatchSize()Returns the batch size.- Returns:
- the batch size. The default value is 0.
-
setBatchSize
public void setBatchSize(int batchSize) Sets the batch size.If the value is less than 1, it is regarded as 1.
- Parameters:
batchSize- the batch size- See Also:
-
getAllowEmptyWhere
public boolean getAllowEmptyWhere()Returns whether the empty WHERE clause is allowed or not.- Returns:
- whether the empty WHERE clause is allowed or not. The default value is false.
-
setAllowEmptyWhere
public void setAllowEmptyWhere(boolean allowEmptyWhere) Sets whether the empty WHERE clause is allowed or not.If the value is true and the WHERE clause is empty,
EmptyWhereClauseExceptionwill be suppressed.- Parameters:
allowEmptyWhere- whether the empty WHERE clause is allowed or not
-
getIgnoreVersion
public boolean getIgnoreVersion()Returns whether to ignore the version property or not.- Returns:
- whether to ignore the version property or not. The default value is false.
-
setIgnoreVersion
public void setIgnoreVersion(boolean ignoreVersion) Sets whether to ignore the version property or not.If the value is
true, the column that mapped to the version property is excluded from the SQL DELETE statement.- Parameters:
ignoreVersion- whether to ignore the version property or not
-
getSuppressOptimisticLockException
public boolean getSuppressOptimisticLockException()Returns whether to suppressOptimisticLockExceptionor not.- Returns:
- whether to suppress
OptimisticLockExceptionor not. The default value is false.
-
setSuppressOptimisticLockException
public void setSuppressOptimisticLockException(boolean suppressOptimisticLockException) Sets whether to suppressOptimisticLockExceptionor not.- Parameters:
suppressOptimisticLockException- whether to suppressOptimisticLockExceptionor not
-