Package io.kestra.jdbc.repository
Class AbstractJdbcTemplateRepository
java.lang.Object
io.kestra.jdbc.repository.AbstractJdbcRepository
io.kestra.jdbc.repository.AbstractJdbcTemplateRepository
- All Implemented Interfaces:
io.kestra.core.repositories.TemplateRepositoryInterface
@Singleton
public abstract class AbstractJdbcTemplateRepository
extends AbstractJdbcRepository
implements io.kestra.core.repositories.TemplateRepositoryInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractJdbcRepository<io.kestra.core.models.templates.Template> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJdbcTemplateRepository(AbstractJdbcRepository<io.kestra.core.models.templates.Template> jdbcRepository, io.micronaut.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionio.kestra.core.models.templates.Templatecreate(io.kestra.core.models.templates.Template template) voiddelete(io.kestra.core.models.templates.Template template) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.templates.Template>List<io.kestra.core.models.templates.Template>List<io.kestra.core.models.templates.Template>List<io.kestra.core.models.templates.Template>Optional<io.kestra.core.models.templates.Template>List<io.kestra.core.models.templates.Template>findByNamespace(String tenantId, String namespace) protected abstract org.jooq.ConditionfindCondition(String query) findDistinctNamespace(String tenantId) io.kestra.core.models.templates.Templateupdate(io.kestra.core.models.templates.Template template, io.kestra.core.models.templates.Template previous) Methods inherited from class io.kestra.jdbc.repository.AbstractJdbcRepository
buildTenantCondition, defaultFilter, defaultFilter, field, field, groupByFields, groupByFields
-
Field Details
-
jdbcRepository
-
-
Constructor Details
-
AbstractJdbcTemplateRepository
public AbstractJdbcTemplateRepository(AbstractJdbcRepository<io.kestra.core.models.templates.Template> jdbcRepository, io.micronaut.context.ApplicationContext applicationContext)
-
-
Method Details
-
findById
public Optional<io.kestra.core.models.templates.Template> findById(String tenantId, String namespace, String id) - Specified by:
findByIdin interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
findAll
- Specified by:
findAllin interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
findAllForAllTenants
- Specified by:
findAllForAllTenantsin interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
findCondition
-
find
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.templates.Template> find(io.micronaut.data.model.Pageable pageable, @Nullable String query, @Nullable String tenantId, @Nullable String namespace) - Specified by:
findin interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
find
public List<io.kestra.core.models.templates.Template> find(@Nullable String query, @Nullable String tenantId, @Nullable String namespace) - Specified by:
findin interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
findByNamespace
public List<io.kestra.core.models.templates.Template> findByNamespace(String tenantId, String namespace) - Specified by:
findByNamespacein interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
create
public io.kestra.core.models.templates.Template create(io.kestra.core.models.templates.Template template) throws javax.validation.ConstraintViolationException - Specified by:
createin interfaceio.kestra.core.repositories.TemplateRepositoryInterface- Throws:
javax.validation.ConstraintViolationException
-
update
public io.kestra.core.models.templates.Template update(io.kestra.core.models.templates.Template template, io.kestra.core.models.templates.Template previous) throws javax.validation.ConstraintViolationException - Specified by:
updatein interfaceio.kestra.core.repositories.TemplateRepositoryInterface- Throws:
javax.validation.ConstraintViolationException
-
delete
public void delete(io.kestra.core.models.templates.Template template) - Specified by:
deletein interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-
findDistinctNamespace
- Specified by:
findDistinctNamespacein interfaceio.kestra.core.repositories.TemplateRepositoryInterface
-