@FullyTested @ThreadSafe public final class JooqDatabaseQueryServiceImp extends Object implements JooqDatabaseQueryService
| Constructor and Description |
|---|
JooqDatabaseQueryServiceImp(ExceptionThrower exceptionThrower) |
| 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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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
JooqDatabaseQueryService.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.
|
public JooqDatabaseQueryServiceImp(ExceptionThrower exceptionThrower)
@Blocking public <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> org.jooq.Result<TRecord> selectRowList(JooqDatabaseConnection dbConn, TResultQuery selectQuery, CountMatcher rowCountMatcher) throws Exception
selectRowList in interface JooqDatabaseQueryServicedbConn - database connectionselectQuery - query to select rowsrowCountMatcher - matcher for result row countrowCountMatcherException - if database I/O error or query syntax error
rowCountMatcherJooqDatabaseQueryService.selectRow(JooqDatabaseConnection, ResultQuery),
JooqDatabaseQueryService.trySelectRow(JooqDatabaseConnection, ResultQuery),
JooqDatabaseQueryService.selectValueList(JooqDatabaseConnection, ResultQuery, CountMatcher)@Blocking public <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> TRecord selectRow(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
JooqDatabaseQueryService.selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.@Nullable @Blocking public <TRecord extends org.jooq.Record,TResultQuery extends org.jooq.ResultQuery<TRecord>> TRecord trySelectRow(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
JooqDatabaseQueryService.selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
rowCountMatcher is AtMostCountMatcher.ONE.trySelectRow in interface JooqDatabaseQueryServicenullExceptionJooqDatabaseQueryService.selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher),
JooqDatabaseQueryService.selectRow(JooqDatabaseConnection, ResultQuery),
JooqDatabaseQueryService.trySelectValue(JooqDatabaseConnection, ResultQuery)@Blocking public <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
JooqDatabaseQueryService.selectRowList(JooqDatabaseConnection, ResultQuery, CountMatcher)
ImmutableList.selectValueList in interface JooqDatabaseQueryServiceExceptionJooqDatabaseQueryService.selectValue(JooqDatabaseConnection, ResultQuery)@Blocking public <TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> TValue selectValue(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
JooqDatabaseQueryService.selectRow(JooqDatabaseConnection, ResultQuery)
selectValue in interface JooqDatabaseQueryServiceExceptionJooqDatabaseQueryService.trySelectValue(JooqDatabaseConnection, ResultQuery)@Nullable @Blocking public <TValue,TResultQuery extends org.jooq.ResultQuery<org.jooq.Record1<TValue>>> TValue trySelectValue(JooqDatabaseConnection dbConn, TResultQuery selectQuery) throws Exception
JooqDatabaseQueryService.trySelectRow(JooqDatabaseConnection, ResultQuery)
trySelectValue in interface JooqDatabaseQueryServiceExceptionJooqDatabaseQueryService.selectValue(JooqDatabaseConnection, ResultQuery)@Blocking public 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
insertRows in interface JooqDatabaseQueryServicedbConn - database connectioninsertQuery - query to insert rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherJooqDatabaseQueryService.insertOneRow(JooqDatabaseConnection, Insert)@Blocking public void insertOneRow(JooqDatabaseConnection dbConn, org.jooq.Insert<? extends org.jooq.Record> insertQuery) throws Exception
JooqDatabaseQueryService.insertRows(JooqDatabaseConnection, Insert, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.insertOneRow in interface JooqDatabaseQueryServiceException@Blocking public void updateRows(JooqDatabaseConnection dbConn, org.jooq.Update<? extends org.jooq.Record> updateQuery, CountMatcher rowCountMatcher) throws Exception
updateRows in interface JooqDatabaseQueryServicedbConn - database connectionupdateQuery - query to update rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherJooqDatabaseQueryService.updateOneRow(JooqDatabaseConnection, Update)@Blocking public void updateOneRow(JooqDatabaseConnection dbConn, org.jooq.Update<? extends org.jooq.Record> updateQuery) throws Exception
JooqDatabaseQueryService.updateRows(JooqDatabaseConnection, Update, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.updateOneRow in interface JooqDatabaseQueryServiceException@Blocking public void deleteRows(JooqDatabaseConnection dbConn, org.jooq.Delete<? extends org.jooq.Record> deleteQuery, CountMatcher rowCountMatcher) throws Exception
deleteRows in interface JooqDatabaseQueryServicedbConn - database connectiondeleteQuery - query to delete rowsrowCountMatcher - matcher for row countException - if database I/O error or query syntax error
rowCountMatcherJooqDatabaseQueryService.deleteOneRow(JooqDatabaseConnection, Delete)@Blocking public void deleteOneRow(JooqDatabaseConnection dbConn, org.jooq.Delete<? extends org.jooq.Record> deleteQuery) throws Exception
JooqDatabaseQueryService.deleteRows(JooqDatabaseConnection, Delete, CountMatcher)
rowCountMatcher is ExactlyCountMatcher.ONE.deleteOneRow in interface JooqDatabaseQueryServiceExceptionCopyright © 2013–2020. All rights reserved.