Interface ConfigPropertyRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ConfigProperty,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ConfigProperty>, org.springframework.data.repository.Repository<ConfigProperty,Long>

@CacheConfig(cacheNames="Search_Config_Cache") public interface ConfigPropertyRepository extends org.springframework.data.repository.CrudRepository<ConfigProperty,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<ConfigProperty>

This interface is the ConfigPropertyRepository. Handles CRUD operations of ConfigProperty entity

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    deleteByConfigId(long configId)
    This function is used to delete all the config property by config id.
    default int
    deleteByConfigIdAndCollectionId(long configId, long collectionId)
    This function is used to delete all the config property by config id.
    findByConfigId(long configId)
    This function is used to find all the config property by config id.
    findByConfigIdAndCollectionId(long configId, long collectionId)
    This function is used to find all the config property by config id.
    findByConfigIdAndLocale(long configId, String locale)
    This function is used to find the config property by config id and locale
    findByConfigIdAndNameAndLocale(long configId, String name, String locale)
    This function is used to find config property by config id, name and locale.
    saveConfigProperty(ConfigProperty configProperty, long collectionId)
    This function is used to save the config property.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

    Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor

    count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • findByConfigId

      List<ConfigProperty> findByConfigId(long configId)
      This function is used to find all the config property by config id.
      Parameters:
      configId - Holds the config identifier.
      Returns:
      It returns the list of config properties.
    • findByConfigIdAndCollectionId

      @Cacheable(key="\'COL-ID_\'+#p1+\'*FindByConfigIdAndCollectionId_\'+#p0", unless="#result==null") default List<ConfigProperty> findByConfigIdAndCollectionId(long configId, long collectionId)
      This function is used to find all the config property by config id.
      Parameters:
      configId - Holds the config identifier.
      collectionId - Holds the collection identifier.
      Returns:
      It returns the list of config properties.
    • findByConfigIdAndLocale

      List<ConfigProperty> findByConfigIdAndLocale(long configId, String locale)
      This function is used to find the config property by config id and locale
      Parameters:
      configId - Holds the config identifier.
      locale - It have valid locale.
      Returns:
      It returns the config property entity.
    • findByConfigIdAndNameAndLocale

      Optional<ConfigProperty> findByConfigIdAndNameAndLocale(long configId, String name, String locale)
      This function is used to find config property by config id, name and locale.
      Parameters:
      configId - Holds the config identifier.
      name - It have name of the config property.
      locale - It contains locale.
      Returns:
      It returns the config property entity.
    • deleteByConfigId

      int deleteByConfigId(long configId)
      This function is used to delete all the config property by config id.
      Parameters:
      configId - Holds the config identifier.
      Returns:
      It returns the number of deletion count.
    • deleteByConfigIdAndCollectionId

      @Caching(evict=@CacheEvict(key="\'COL-ID_\'+#p1+\'*FindByConfigIdAndCollectionId_\'+#p0")) default int deleteByConfigIdAndCollectionId(long configId, long collectionId)
      This function is used to delete all the config property by config id.
      Parameters:
      configId - Holds the config identifier.
      collectionId - Holds the collection identifier.
      Returns:
      It returns the number of deletion count.
    • saveConfigProperty

      @Caching(evict=@CacheEvict(key="\'COL-ID_\'+#p1+\'*FindByConfigIdAndCollectionId_\'+#configProperty.configId")) default ConfigProperty saveConfigProperty(ConfigProperty configProperty, long collectionId)
      This function is used to save the config property.
      Parameters:
      configProperty - Holds the config identifier.
      collectionId - Holds the collection identifier.
      Returns:
      It returns the saved config property