Interface CustomFieldsRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<CustomFieldsEntity,Long>, DomainIdRepository<CustomFieldsEntity,Long>, org.springframework.data.jpa.repository.JpaRepository<CustomFieldsEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<CustomFieldsEntity>, org.springframework.data.repository.ListCrudRepository<CustomFieldsEntity,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<CustomFieldsEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<CustomFieldsEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<CustomFieldsEntity>, org.springframework.data.repository.Repository<CustomFieldsEntity,Long>

public interface CustomFieldsRepository extends DomainIdRepository<CustomFieldsEntity,Long>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByClassNameAndBonusContext(String className, String bonusClassName, Long bonusEntityId, Integer domainId)
     
    findAllByClassNameAndEntityId(String className, Long entityId, Integer domainId)
     
     
    getEntityId(String className, String alphabet, Long entityId, String bonusClassName, Long bonusEntityId, Integer domainId)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository

    findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainId

    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.jpa.repository.JpaSpecificationExecutor

    count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, update

    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

    • findAllGlobalCustomFields

      @Query("SELECT cfe FROM CustomFieldsEntity cfe WHERE cfe.className = :className AND cfe.entityId = 0 AND cfe.bonusClassName = \'\' AND cfe.domainId = :domainId") List<CustomFieldsEntity> findAllGlobalCustomFields(String className, Integer domainId)
    • findAllByClassNameAndEntityId

      @Query("SELECT cfe FROM CustomFieldsEntity cfe WHERE cfe.className = :className AND cfe.entityId = :entityId AND cfe.bonusClassName = \'\' AND cfe.domainId = :domainId") List<CustomFieldsEntity> findAllByClassNameAndEntityId(String className, Long entityId, Integer domainId)
    • findAllByClassNameAndBonusContext

      @Query("SELECT cfe FROM CustomFieldsEntity cfe WHERE cfe.className = :className AND cfe.bonusClassName = :bonusClassName AND cfe.bonusEntityId = :bonusEntityId AND cfe.domainId = :domainId") List<CustomFieldsEntity> findAllByClassNameAndBonusContext(String className, String bonusClassName, Long bonusEntityId, Integer domainId)
    • getEntityId

      @Query("SELECT cfe.id FROM CustomFieldsEntity cfe WHERE cfe.className = :className AND cfe.alphabet = :alphabet AND cfe.entityId = :entityId AND cfe.bonusClassName = :bonusClassName AND cfe.bonusEntityId = :bonusEntityId AND cfe.domainId = :domainId") Optional<Long> getEntityId(String className, String alphabet, Long entityId, String bonusClassName, Long bonusEntityId, Integer domainId)