Interface ReadRepository<M extends BaseModel<I>,C extends BaseCriteria<I>,I extends Serializable,U>

All Known Subinterfaces:
BaseRepository<M,C,I,U>

public interface ReadRepository<M extends BaseModel<I>,C extends BaseCriteria<I>,I extends Serializable,U>
Created by Vahid Zafari on 1/17/17.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(C criteria, org.springframework.data.domain.Pageable pageable, U user)
     
    get(C criteria, org.springframework.data.domain.Sort sort, U user)
     
    get(C criteria, U user)
     
    get(I id, U user)
     
    get(Collection<I> ids, U user)
     
    long
    getCount(C criteria, U user)
     
    getIds(C criteria, U user)
     
    getOne(C criteria, U user)
     
    boolean
    isExist(C criteria, U user)
     
    boolean
    isNotExist(C criteria, U user)
     
  • Method Details

    • get

      M get(I id, U user)
    • get

      List<M> get(Collection<I> ids, U user)
    • get

      List<M> get(C criteria, U user)
    • get

      List<M> get(C criteria, org.springframework.data.domain.Sort sort, U user)
    • getOne

      M getOne(C criteria, U user)
    • get

      PagedData<M> get(C criteria, org.springframework.data.domain.Pageable pageable, U user)
    • getIds

      List<I> getIds(C criteria, U user)
    • getCount

      long getCount(C criteria, U user)
    • isExist

      boolean isExist(C criteria, U user)
      Returns:
      true if any data with given criteria exist, else otherwise.
    • isNotExist

      boolean isNotExist(C criteria, U user)
      Returns:
      true if no data with given criteria exist, else otherwise.