Interface EntityViewRepository<T,ID extends Serializable>

Type Parameters:
T - Entity view type.
ID - Entity ID type.
All Superinterfaces:
org.springframework.data.repository.Repository<T,ID>

@NoRepositoryBean public interface EntityViewRepository<T,ID extends Serializable> extends org.springframework.data.repository.Repository<T,ID>
Base entity view repository interface.
Since:
1.6.9
Author:
Moritz Becker, Eugen Mayer
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the number of existing entity views.of type <T>.
    boolean
    exists(ID id)
    Checks if an entity view of type <T> with the given id exists.
    Returns all entity views of type <T>.
    findAll(Iterable<ID> idIterable)
    Finds all entity views of type <T> with the given ids.
    findOne(ID id)
    Finds the entity view of type <T> with the given id.
  • Method Details

    • findOne

      T findOne(ID id)
      Finds the entity view of type <T> with the given id.
      Parameters:
      id - the id of the entity view of type <T> to find
      Returns:
      the entity view of type <T> with the given id
    • exists

      boolean exists(ID id)
      Checks if an entity view of type <T> with the given id exists.
      Parameters:
      id - the id to check for existence
      Returns:
      true if an entity view of type <T> exists, else false
    • findAll

      Iterable<T> findAll()
      Returns all entity views of type <T>.
      Returns:
      an iterator over all entity views of type <T>
    • findAll

      Iterable<T> findAll(Iterable<ID> idIterable)
      Finds all entity views of type <T> with the given ids.
      Parameters:
      idIterable - the ids of the entity views of type <T> to find
      Returns:
      an iterator over the entity views of type <T>
    • count

      long count()
      Gets the number of existing entity views.of type <T>.
      Returns:
      the number of existing entity views of type <T>