Class Sql<T>
java.lang.Object
org.jobrunr.storage.sql.common.db.Sql<T>
- Direct Known Subclasses:
BackgroundJobServerTable
,JobStatsView
,JobTable
,MetadataTable
,RecurringJobTable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static <T> Sql<T>
void
void
void
long
selectCount
(String statement) boolean
selectExists
(String statement) long
void
void
void
using
(Connection connection, Dialect dialect, String tablePrefix, String tableName) withOrderLimitAndOffset
(String order, int limit, long offset) withVersion
(Function<T, Integer> function)
-
Constructor Details
-
Sql
protected Sql()
-
-
Method Details
-
forType
-
using
-
with
-
with
-
with
-
withVersion
-
withOrderLimitAndOffset
-
select
-
execute
-
selectCount
- Throws:
SQLException
-
selectSum
- Throws:
SQLException
-
selectExists
- Throws:
SQLException
-
insert
- Throws:
SQLException
-
insert
- Throws:
SQLException
-
update
- Throws:
SQLException
-
update
- Throws:
SQLException
-
delete
- Throws:
SQLException
-
insertAll
- Throws:
SQLException
-
updateAll
- Throws:
SQLException
-