- All Superinterfaces:
Query
- All Known Subinterfaces:
DeleteQuery,InsertQuery,UpdateQuery
- All Known Implementing Classes:
AutoDeleteQuery,AutoInsertQuery,AutoModifyQuery,AutoMultiInsertQuery,AutoUpdateQuery,CriteriaQuery,SqlDeleteQuery,SqlFileDeleteQuery,SqlFileInsertQuery,SqlFileModifyQuery,SqlFileUpdateQuery,SqlInsertQuery,SqlModifyQuery,SqlUpdateQuery
A query that modifies data in a database.
This interface defines operations specific to data modification statements such as INSERT, UPDATE, and DELETE.
-
Method Summary
Modifier and TypeMethodDescriptiongetSql()Returns the prepared SQL for this modification query.Returns the cause if SQL execution should be skipped.Returns the SQL log type for this query.booleanReturns whether auto-generated keys are supported for this query.booleanReturns whether this query is executable.booleanReturns whether optimistic lock checking is required for this query.Methods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepare
-
Method Details
-
getSql
PreparedSql getSql()Returns the prepared SQL for this modification query. -
isOptimisticLockCheckRequired
boolean isOptimisticLockCheckRequired()Returns whether optimistic lock checking is required for this query.- Returns:
trueif optimistic lock checking is required
-
isAutoGeneratedKeysSupported
boolean isAutoGeneratedKeysSupported()Returns whether auto-generated keys are supported for this query.- Returns:
trueif auto-generated keys are supported
-
isExecutable
boolean isExecutable()Returns whether this query is executable.- Returns:
trueif this query is executable
-
getSqlExecutionSkipCause
SqlExecutionSkipCause getSqlExecutionSkipCause()Returns the cause if SQL execution should be skipped.- Returns:
- the cause of SQL execution skip, or
nullif execution should not be skipped
-
getSqlLogType
SqlLogType getSqlLogType()Returns the SQL log type for this query.- Returns:
- the SQL log type
-