DefaultFilterRepository

class DefaultFilterRepository<T : Any, ID : Serializable>(entityInformation: JpaEntityInformation<T, ID>, entityManager: EntityManager) : SimpleJpaRepository<T, ID> , FilterRepository<T, ID> (source)

Represents the default implementation of the FilterRepository interface.

This is the class users of the DSL will normayy interact with when they want to filter entities. All the filtering logic is implemented here.

Parameters

T

the entity type

ID

the ID type of the entity

entityInformation

the JpaEntityInformation object that provides metadata about the entity

entityManager

the EntityManager used to interact with the database

Constructors

Link copied to clipboard
constructor(entityInformation: JpaEntityInformation<T, ID>, entityManager: EntityManager)

Creates a DefaultFilterRepository with the specified entity information and entity manager.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun count(): Long
open override fun <S : T> count(example: Example<S>): Long
open override fun count(@Nullable spec: Specification<T>): Long
Link copied to clipboard
@Transactional
open override fun delete(entity: T)
@Transactional
open override fun delete(@Nullable spec: Specification<T>): Long
Link copied to clipboard
@Transactional
open override fun deleteAll()
@Transactional
open override fun deleteAll(entities: MutableIterable<T>)
Link copied to clipboard
@Transactional
open override fun deleteAllById(ids: MutableIterable<ID>)
Link copied to clipboard
@Transactional
open override fun deleteAllByIdInBatch(ids: MutableIterable<ID>)
Link copied to clipboard
@Transactional
open override fun deleteAllInBatch()
@Transactional
open override fun deleteAllInBatch(entities: MutableIterable<T>)
Link copied to clipboard
@Transactional
open override fun deleteById(id: ID)
Link copied to clipboard
open fun deleteInBatch(entities: MutableIterable<T>)
Link copied to clipboard
open override fun <S : T> exists(example: Example<S>): Boolean
open override fun exists(spec: Specification<T>): Boolean
Link copied to clipboard
open override fun existsById(id: ID): Boolean
Link copied to clipboard
open override fun findAll(): MutableList<T>
open override fun <S : T> findAll(example: Example<S>): MutableList<S>
open override fun findAll(pageable: Pageable): Page<T>
open override fun findAll(sort: Sort): MutableList<T>
open override fun findAll(spec: Specification<T>): MutableList<T>
open override fun <S : T> findAll(example: Example<S>, pageable: Pageable): Page<S>
open override fun <S : T> findAll(example: Example<S>, sort: Sort): MutableList<S>
open override fun findAll(@Nullable spec: Specification<T>, pageable: Pageable): Page<T>
open override fun findAll(@Nullable spec: Specification<T>, sort: Sort): MutableList<T>
Link copied to clipboard
open override fun findAllById(ids: MutableIterable<ID>): MutableList<T>
Link copied to clipboard
open override fun <S : T, R : Any> findBy(example: Example<S>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
open override fun <S : T, R : Any> findBy(spec: Specification<T>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
Link copied to clipboard
open override fun findById(id: ID): Optional<T>
Link copied to clipboard
open override fun <S : T> findOne(example: Example<S>): Optional<S>
open override fun findOne(spec: Specification<T>): Optional<T>
Link copied to clipboard
@Transactional
open override fun flush()
Link copied to clipboard
open override fun getById(id: ID): T
Link copied to clipboard
open override fun getEntities(pagination: Pagination, filter: Filter?, sorting: Sorting?, fieldTransformer: TransformFunction<String, String>): Page<T>
Link copied to clipboard
open override fun getOne(id: ID): T
Link copied to clipboard
open override fun getReferenceById(id: ID): T
Link copied to clipboard
@Transactional
open override fun <S : T> save(entity: S): S
Link copied to clipboard
@Transactional
open override fun <S : T> saveAll(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
@Transactional
open override fun <S : T> saveAllAndFlush(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
@Transactional
open override fun <S : T> saveAndFlush(entity: S): S
Link copied to clipboard
open override fun setEscapeCharacter(escapeCharacter: EscapeCharacter)
Link copied to clipboard
open override fun setProjectionFactory(projectionFactory: ProjectionFactory)
Link copied to clipboard
open override fun setRepositoryMethodMetadata(metadata: CrudMethodMetadata)