Class BaseDaoImpl<T,​ID extends Serializable>

  • Type Parameters:
    T -
    ID -
    All Implemented Interfaces:
    org.springframework.data.jpa.repository.JpaRepository<T,​ID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, org.springframework.data.jpa.repository.support.JpaRepositoryImplementation<T,​ID>, org.springframework.data.repository.CrudRepository<T,​ID>, org.springframework.data.repository.PagingAndSortingRepository<T,​ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,​ID>, BaseDao<T,​ID>

    public class BaseDaoImpl<T,​ID extends Serializable>
    extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,​ID>
    implements BaseDao<T,​ID>
    This is the base repository implementation it contains implementation of common methods
    Since:
    15-May-2020, 11:12:29 AM
    Author:
    Baldeep Singh Kwatra
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseDaoImpl​(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,​?> entityInformation, javax.persistence.EntityManager entityManager)  
    • Method Summary

      Modifier and Type Method Description
      org.springframework.data.domain.Page<?> findAll​(org.springframework.data.jpa.domain.Specification<T> specs, org.springframework.data.domain.Pageable pageable, List<String> fields)  
      • Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository

        count, count, count, delete, deleteAll, deleteAll, deleteAllInBatch, deleteById, deleteInBatch, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAndFlush, setEscapeCharacter, setRepositoryMethodMetadata
      • Methods inherited from interface xyz.baldeep.filter.dao.BaseDao

        getOne
      • 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, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

        count, findAll, findAll, findAll, findOne
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Constructor Detail

      • BaseDaoImpl

        public BaseDaoImpl​(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,​?> entityInformation,
                           javax.persistence.EntityManager entityManager)
    • Method Detail

      • findAll

        public org.springframework.data.domain.Page<?> findAll​(org.springframework.data.jpa.domain.Specification<T> specs,
                                                               org.springframework.data.domain.Pageable pageable,
                                                               List<String> fields)
        Specified by:
        findAll in interface BaseDao<T,​ID extends Serializable>