@ThreadSafe public interface JooqDatabaseQueryService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOneRow(JooqDatabaseConnection dbConn,
org.jooq.Delete<? extends org.jooq.Record> deleteQuery)
This is a convenience method to call
deleteRows(JooqDatabaseConnection, Delete, CountMatcher)
where rowCountMatcher is ExactlyCountMatcher.ONE. |
void |
deleteRows(JooqDatabaseConnection dbConn,
org.jooq.Delete<? extends org.jooq.Record> deleteQuery,
CountMatcher rowCountMatcher)
Deletes rows, then checks row count.
|
void |
insertOneRow(JooqDatabaseConnection dbConn,
org.jooq.Insert<? extends org.jooq.Record> insertQuery)
This is a convenience method to call
insertRows(JooqDatabaseConnection, Insert, CountMatcher)
where rowCountMatcher is ExactlyCountMatcher.ONE. |
void |
insertRows(JooqDatabaseConnection dbConn,
org.jooq.Insert<? extends org.jooq.Record> insertQuery,
CountMatcher rowCountMatcher)
Inserts rows, then checks row count.
|
<TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> |
selectRow(JooqDatabaseConnection dbConn,
TResultQuery selectQuery)
This is a convenience method to call
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
where rowCountMatcher is ExactlyCountMatcher.ONE. |
<TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> |
selectRowList(JooqDatabaseConnection dbConn,
TResultQuery selectQuery,
CountMatcher rowCountMatcher)
Selects rows, then checks result row count.
|
<TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> |
selectValue(JooqDatabaseConnection dbConn,
TResultQuery selectQuery)
This is a convenience method to call
selectRow(JooqDatabaseConnection, ResultQuery)
with a query that selects only a single column. |
<TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> |
selectValueList(JooqDatabaseConnection dbConn,
TResultQuery selectQuery,
CountMatcher rowCountMatcher)
This is a convenience method to call
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
with a query that selects only a single column. |
<TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> |
trySelectRow(JooqDatabaseConnection dbConn,
TResultQuery selectQuery)
This is a convenience method to call
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
where rowCountMatcher is AtMostCountMatcher.ONE. |
<TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> |
trySelectValue(JooqDatabaseConnection dbConn,
TResultQuery selectQuery)
This is a convenience method to call
trySelectRow(JooqDatabaseConnection, ResultQuery)
with a query that selects only a single column. |
void |
updateOneRow(JooqDatabaseConnection dbConn,
org.jooq.Update<? extends org.jooq.Record> updateQuery)
This is a convenience method to call
updateRows(JooqDatabaseConnection, Update, CountMatcher)
where rowCountMatcher is ExactlyCountMatcher.ONE. |
void |
updateRows(JooqDatabaseConnection dbConn,
org.jooq.Update<? extends org.jooq.Record> updateQuery,
CountMatcher rowCountMatcher)
Updates rows, then checks row count.
|
@Blocking <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> org.jooq.Result<TRecord> selectRowList(JooqDatabaseConnection dbConn, TResultQuery selectQuery, CountMatcher rowCountMatcher) throws Exception
dbConn - database connectionselectQuery - query to select rowsrowCountMatcher - matcher for result row countrowCountMatcherException - if database I/O error or query syntax error
rowCountMatcherselectRow(JooqDatabaseConnection, ResultQuery),
trySelectRow(JooqDatabaseConnection, ResultQuery),
selectValueList(JooqDatabaseConnection, ResultQuery, CountMatcher)@Blocking <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> TRecord selectRow(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.@Nullable @Blocking <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> TRecord trySelectRow(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
rowCountMatcher is AtMostCountMatcher.ONE.nullExceptionselectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher),
selectRow(JooqDatabaseConnection, ResultQuery),
trySelectValue(JooqDatabaseConnection, ResultQuery)@Blocking <TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> com.google.common.collect.ImmutableList<TValue> selectValueList(JooqDatabaseConnection dbConn, TResultQuery selectQuery, CountMatcher rowCountMatcher) throws Exception
selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
ImmutableList.ExceptionselectValue(JooqDatabaseConnection, ResultQuery)@Blocking <TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> TValue selectValue(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
selectRow(JooqDatabaseConnection, ResultQuery)
ExceptiontrySelectValue(JooqDatabaseConnection, ResultQuery)@Nullable @Blocking <TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> TValue trySelectValue(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
trySelectRow(JooqDatabaseConnection, ResultQuery)
ExceptionselectValue(JooqDatabaseConnection, ResultQuery)@Blocking void insertRows(JooqDatabaseConnection dbConn, org.jooq.Insert<? extends org.jooq.Record> insertQuery, CountMatcher rowCountMatcher) throws Exception
See: JooqSqliteDatabaseQueryService.getSqliteLastInsertRowId(JooqDatabaseConnection) in module kevinarpe-papaya-jooq-sqlite
dbConn - database connectioninsertQuery - query to insert rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherinsertOneRow(JooqDatabaseConnection, Insert)@Blocking void insertOneRow(JooqDatabaseConnection dbConn, org.jooq.Insert<? extends org.jooq.Record> insertQuery) throws Exception
insertRows(JooqDatabaseConnection, Insert, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.Exception@Blocking void updateRows(JooqDatabaseConnection dbConn, org.jooq.Update<? extends org.jooq.Record> updateQuery, CountMatcher rowCountMatcher) throws Exception
dbConn - database connectionupdateQuery - query to update rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherupdateOneRow(JooqDatabaseConnection, Update)@Blocking void updateOneRow(JooqDatabaseConnection dbConn, org.jooq.Update<? extends org.jooq.Record> updateQuery) throws Exception
updateRows(JooqDatabaseConnection, Update, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.Exception@Blocking void deleteRows(JooqDatabaseConnection dbConn, org.jooq.Delete<? extends org.jooq.Record> deleteQuery, CountMatcher rowCountMatcher) throws Exception
dbConn - database connectiondeleteQuery - query to delete rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherdeleteOneRow(JooqDatabaseConnection, Delete)@Blocking void deleteOneRow(JooqDatabaseConnection dbConn, org.jooq.Delete<? extends org.jooq.Record> deleteQuery) throws Exception
deleteRows(JooqDatabaseConnection, Delete, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.ExceptionCopyright © 2013–2020. All rights reserved.