public interface DeleteResultStep<R extends Record> extends Delete<R>
Delete
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.delete(table)
.where(field1.greaterThan(100))
.execute();
This implemented differently for every dialect:
UPDATE .. RETURNING
clausesSELECT .. FROM FINAL TABLE (DELETE ...)
Modifier and Type | Method and Description |
---|---|
Result<R> |
fetch()
The result holding returned values as specified by the
DeleteReturningStep . |
R |
fetchOne()
The record holding returned values as specified by the
DeleteReturningStep . |
java.util.Optional<R> |
fetchOptional()
The record holding returned values as specified by the
DeleteReturningStep . |
bind, bind, cancel, close, execute, executeAsync, executeAsync, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, configuration, detach
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) Result<R> fetch() throws DataAccessException
DeleteReturningStep
.DeleteReturningStep
. Note:
Result
in case jOOQ
could not retrieve any generated keys from the JDBC driver.DataAccessException
- if something went wrong executing the queryDeleteQuery.getReturnedRecords()
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) R fetchOne() throws DataAccessException, TooManyRowsException
DeleteReturningStep
.DeleteReturningStep
. This may return null
in
case jOOQ could not retrieve any generated keys from the JDBC
driver.DataAccessException
- if something went wrong executing the queryTooManyRowsException
- if the query returned more than one recordDeleteQuery.getReturnedRecord()
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) java.util.Optional<R> fetchOptional() throws DataAccessException, TooManyRowsException
DeleteReturningStep
.DeleteReturningStep
DataAccessException
- if something went wrong executing the queryTooManyRowsException
- if the query returned more than one recordDeleteQuery.getReturnedRecord()
Copyright © 2018. All Rights Reserved.