Class BaseRepositoryImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String CHW_ID  
      protected static java.lang.String CHW_NAME  
      protected static java.lang.String DISTRICT  
      protected static java.lang.String EMAIL  
      protected javax.persistence.EntityManager entityManager  
      protected static java.lang.String FACILITY  
      protected static java.lang.String GROUP  
      protected static java.lang.String INCHARGE_EMAIL  
      protected static java.lang.String INCHARGE_FULL_NAME  
      protected static java.lang.String INCHARGE_PHONE  
      protected static java.lang.String NAME  
      protected static java.lang.String PHONE_NUMBER  
      protected static java.lang.String ROLES  
      protected static java.lang.String SECTOR  
      protected static java.lang.String SELECTED  
      protected static java.lang.String USERNAME  
      protected static java.lang.String VILLAGE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <T> javax.persistence.criteria.CriteriaQuery<T> addSortProperties​(javax.persistence.criteria.CriteriaQuery<T> query, javax.persistence.criteria.Root root, org.springframework.data.domain.Pageable pageable)  
      protected int getFirstResult​(org.springframework.data.domain.Pageable pageable, int pageSize)  
      protected int getPageSize​(org.springframework.data.domain.Pageable pageable)  
      protected javax.persistence.criteria.Path getPath​(javax.persistence.criteria.Root root, org.springframework.data.domain.Sort.Order order)  
      protected static <T> javax.persistence.criteria.Order getSortDirection​(javax.persistence.criteria.CriteriaBuilder builder, org.springframework.data.domain.Sort.Order order, javax.persistence.criteria.Path<T> path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseRepositoryImpl

        public BaseRepositoryImpl()
    • Method Detail

      • getFirstResult

        protected int getFirstResult​(org.springframework.data.domain.Pageable pageable,
                                     int pageSize)
      • getPageSize

        protected int getPageSize​(org.springframework.data.domain.Pageable pageable)
      • addSortProperties

        protected <T> javax.persistence.criteria.CriteriaQuery<T> addSortProperties​(javax.persistence.criteria.CriteriaQuery<T> query,
                                                                                    javax.persistence.criteria.Root root,
                                                                                    org.springframework.data.domain.Pageable pageable)
      • getPath

        protected javax.persistence.criteria.Path getPath​(javax.persistence.criteria.Root root,
                                                          org.springframework.data.domain.Sort.Order order)
      • getSortDirection

        protected static <T> javax.persistence.criteria.Order getSortDirection​(javax.persistence.criteria.CriteriaBuilder builder,
                                                                               org.springframework.data.domain.Sort.Order order,
                                                                               javax.persistence.criteria.Path<T> path)