Package com.skava.repository
Interface CollectionPropertyRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionPropertyEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.ListCrudRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CollectionPropertyEntity>
,org.springframework.data.repository.Repository<CollectionPropertyEntity,
Long>
public interface CollectionPropertyRepository
extends org.springframework.data.jpa.repository.JpaRepository<CollectionPropertyEntity,Long>
The Interface CollectionPropertyRepository provides generic CRUD operations for the CollectionPropertyEntity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByAttributeNameAndCollectionId
(String name, Long collectionId) existsByAttributeNameAndCollectionId - To check if a collection property exists for the given name and collectionId.boolean
existsByIdAndCollectionId
(long id, long collectionId) existsByIdAndCollectionId - To check if a collection property exists for the given id and collectionId.findByAttributeNameAndCollectionId
(String name, Long collectionId) findByAttributeNameAndCollectionId - Loads the collection property by attribute name and collection id.findByCollectionId
(Long collectionId) findByCollectionId - Loads the list of collection property entity by its collection id.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAttributeNameAndCollectionId
findByAttributeNameAndCollectionId - Loads the collection property by attribute name and collection id.- Parameters:
name
- Indicates the collection property name which is used for loading the property from DB.collectionId
- Indicates the collection id for which collection the property gets loaded from DB.- Returns:
- Instance of
CollectionPropertyEntity
object
-
findByCollectionId
findByCollectionId - Loads the list of collection property entity by its collection id.- Parameters:
collectionId
- Indicates the collection id for which collection the property gets loaded from DB.- Returns:
- list of CollectionPropertyEntity
-
existsByIdAndCollectionId
boolean existsByIdAndCollectionId(long id, long collectionId) existsByIdAndCollectionId - To check if a collection property exists for the given id and collectionId.- Parameters:
id
- the id.collectionId
- the collectionId- Returns:
- boolean value
-
existsByAttributeNameAndCollectionId
existsByAttributeNameAndCollectionId - To check if a collection property exists for the given name and collectionId.- Parameters:
name
- the namecollectionId
- the collectionId- Returns:
- boolean value
-