Package io.kestra.jdbc
Class AbstractJdbcRepository<T>
java.lang.Object
io.kestra.jdbc.AbstractJdbcRepository<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JooqDSLContextWrapperprotected final io.kestra.core.queues.QueueServiceprotected org.jooq.Table<org.jooq.Record> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJdbcRepository(Class<T> cls, io.micronaut.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionintintdeserialize(String record) fetch(org.jooq.Select<R> select) List<io.kestra.core.models.executions.metrics.MetricAggregation>fetchMetricStat(org.jooq.Select<org.jooq.Record> select, String groupByType) fetchOne(org.jooq.Select<R> select) <R extends org.jooq.Record>
io.kestra.core.repositories.ArrayListTotal<T>fetchPage(org.jooq.DSLContext context, org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) abstract <R extends org.jooq.Record,E>
io.kestra.core.repositories.ArrayListTotal<E>fetchPage(org.jooq.DSLContext context, org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable, org.jooq.RecordMapper<R, E> mapper) abstract org.jooq.ConditionfullTextCondition(List<String> fields, String query) <R extends org.jooq.Record>
Instantprotected <R extends org.jooq.Record>
org.jooq.Select<R>limit(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) <R extends org.jooq.Record>
Tmap(R record) <R extends org.jooq.Record>
io.kestra.core.models.executions.metrics.MetricAggregationmapMetricAggregation(R record, String groupByType) protected <R extends org.jooq.Record>
org.jooq.Select<R>pageable(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) voidvoidvoidpersistFields(T entity) protected <R extends org.jooq.Record>
org.jooq.SelectConditionStep<R>sort(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable)
-
Field Details
-
queueService
protected final io.kestra.core.queues.QueueService queueService -
cls
-
deserializer
-
dslContextWrapper
-
table
protected org.jooq.Table<org.jooq.Record> table
-
-
Constructor Details
-
AbstractJdbcRepository
-
-
Method Details
-
fullTextCondition
-
key
-
persistFields
-
persist
-
persist
-
persist
-
delete
-
delete
-
map
-
mapMetricAggregation
public <R extends org.jooq.Record> io.kestra.core.models.executions.metrics.MetricAggregation mapMetricAggregation(R record, String groupByType) -
getDate
-
deserialize
-
fetchOne
-
fetch
-
fetchMetricStat
-
fetchPage
public abstract <R extends org.jooq.Record,E> io.kestra.core.repositories.ArrayListTotal<E> fetchPage(org.jooq.DSLContext context, org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable, org.jooq.RecordMapper<R, E> mapper) -
fetchPage
public <R extends org.jooq.Record> io.kestra.core.repositories.ArrayListTotal<T> fetchPage(org.jooq.DSLContext context, org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) -
fragments
-
sort
protected <R extends org.jooq.Record> org.jooq.SelectConditionStep<R> sort(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) -
limit
protected <R extends org.jooq.Record> org.jooq.Select<R> limit(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable) -
pageable
protected <R extends org.jooq.Record> org.jooq.Select<R> pageable(org.jooq.SelectConditionStep<R> select, io.micronaut.data.model.Pageable pageable)
-