InstanceRepository

interface InstanceRepository : JpaRepository<Fragment, Long>

Functions

Link copied to clipboard
abstract fun count(): Long
abstract fun <S : Fragment> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: Fragment)
Link copied to clipboard
abstract fun deleteAll()
abstract fun deleteAll(entities: MutableIterable<Fragment>)
Link copied to clipboard
abstract fun deleteAllById(ids: MutableIterable<Long>)
Link copied to clipboard
Link copied to clipboard
abstract fun deleteAllInBatch()
abstract fun deleteAllInBatch(entities: MutableIterable<Fragment>)
Link copied to clipboard
abstract fun deleteById(id: Long)
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Fragment> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsById(id: Long): Boolean
Link copied to clipboard
abstract override fun <S : Fragment> findAll(example: Example<S>): MutableList<S>
abstract override fun <S : Fragment> findAll(example: Example<S>, sort: Sort): MutableList<S>
abstract override fun findAll(): MutableList<Fragment>
abstract override fun findAll(sort: Sort): MutableList<Fragment>
abstract fun findAll(pageable: Pageable): Page<Fragment>
abstract fun <S : Fragment> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
abstract override fun findAllById(ids: MutableIterable<Long>): MutableList<Fragment>
Link copied to clipboard
abstract fun <S : Fragment, R : Any> findBy(example: Example<S>, queryFunction: Function<FluentQuery.FetchableFluentQuery<S>, R>): R
Link copied to clipboard
abstract fun findById(id: Long): Optional<Fragment>
Link copied to clipboard
abstract fun <S : Fragment> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: Long): Fragment
@Query(value = "SELECT f.dataid from Fragment f LEFT JOIN instance i on i.dataid = f.instance_dataid WHERE i.model_root like :type_uri_pattern AND f.variantid = :variantID limit :limit", nativeQuery = true)
abstract fun getInstancesByTypeNameSoftMatchAndVariant(@Param(value = "type_uri_pattern") typeURIPattern: String, @Param(value = "variantID") variantID: String, @Param(value = "limit") limit: Int): List<Long>
@Query(value = "SELECT f.dataid from Fragment f LEFT JOIN instance i on i.dataid = f.instance_dataid WHERE i.model_root like :type_uri_pattern AND f.variantid = :variantID AND f.runningid = :versionID limit :limit", nativeQuery = true)
abstract fun getInstancesByTypeNameSoftMatchAndVariantAndVersion(@Param(value = "type_uri_pattern") typeURIPattern: String, @Param(value = "variantID") variantID: String, @Param(value = "versionID") versionID: String, @Param(value = "limit") limit: Int): List<Long>
Link copied to clipboard
@Query(value = "SELECT f.dataid from Fragment f LEFT JOIN instance i on i.dataid = f.instance_dataid WHERE i.model_root like :type_uri_pattern limit :limit", nativeQuery = true)
abstract fun getInstancesByTypeURISoftMatch(@Param(value = "type_uri_pattern") typeURIPattern: String, @Param(value = "limit") limit: Int): List<Long>
Link copied to clipboard
abstract fun getOne(id: Long): Fragment
Link copied to clipboard
abstract fun getReferenceById(id: Long): Fragment
Link copied to clipboard
abstract fun <S : Fragment> save(entity: S): S
Link copied to clipboard
abstract override fun <S : Fragment> saveAll(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : Fragment> saveAllAndFlush(entities: MutableIterable<S>): MutableList<S>
Link copied to clipboard
abstract fun <S : Fragment> saveAndFlush(entity: S): S