Interface AuthPolicyRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<AuthPolicy,​String>, org.springframework.data.jpa.repository.JpaRepository<AuthPolicy,​String>, org.springframework.data.repository.PagingAndSortingRepository<AuthPolicy,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<AuthPolicy>, org.springframework.data.repository.Repository<AuthPolicy,​String>

    @Repository
    public interface AuthPolicyRepository
    extends org.springframework.data.jpa.repository.JpaRepository<AuthPolicy,​String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AuthPolicy findByName​(String name)  
      AuthPolicy findByPolicyGroupAndId​(String policyGroupId, String policyId)  
      AuthPolicy findByPolicyGroupAndName​(String policyGroupId, String name)  
      List<AuthPolicy> findByPolicyGroupId​(String policyId)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByPolicyGroupAndName

        @Query(value="select * from auth_policy ap where ap.policy_group_id=?1 and ap.name = ?2",
               nativeQuery=true)
        AuthPolicy findByPolicyGroupAndName​(String policyGroupId,
                                            String name)
      • findByPolicyGroupAndId

        @Query(value="select * from auth_policy ap where ap.policy_group_id=?1 and ap.id = ?2",
               nativeQuery=true)
        AuthPolicy findByPolicyGroupAndId​(String policyGroupId,
                                          String policyId)
      • findByPolicyGroupId

        @Query(value="select * from auth_policy ap where ap.policy_group_id=?",
               nativeQuery=true)
        List<AuthPolicy> findByPolicyGroupId​(String policyId)