E - Entity type.V - Entity view type.PK - Primary key type.public interface EntityViewRepository<E,V,PK extends Serializable>
extends org.apache.deltaspike.core.spi.activation.Deactivatable
| Modifier and Type | Method and Description |
|---|---|
List<V> |
findAll()
Lookup all existing entities of entity class
<E>. |
List<V> |
findAll(int start,
int max)
Lookup a range of existing entities of entity class
<E> with support for pagination. |
Page<V> |
findAll(Pageable pageable)
|
Iterable<V> |
findAll(Sort sort)
Lookup a range of existing entities of entity class
<E> with support for pagination. |
Page<V> |
findAll(Specification<E> specification,
Pageable pageable)
Returns a
Page of entities meeting the paging and specification restriction provided in the Pageable and Specification objects. |
List<V> |
findBy(E example,
int start,
int max,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
Query by example - for a given object and a specific set of properties with support for pagination.
|
List<V> |
findBy(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
Query by example - for a given object and a specific set of properties.
|
V |
findBy(PK primaryKey)
Entity lookup by primary key.
|
List<V> |
findByLike(E example,
int start,
int max,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
Query by example - for a given object and a specific set of properties
using a like operator for Strings with support for pagination.
|
List<V> |
findByLike(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
Query by example - for a given object and a specific set of properties using a like operator for Strings.
|
V findBy(PK primaryKey)
EntityManager.find(Class, Object).primaryKey - DB primary key.List<V> findAll()
<E>.List<V> findAll(int start, int max)
<E> with support for pagination.start - The starting position.max - The maximum number of results to returnIterable<V> findAll(Sort sort)
<E> with support for pagination.sort - The sortingPage<V> findAll(Pageable pageable)
pageable - The paging configurationPage<V> findAll(Specification<E> specification, Pageable pageable)
Page of entities meeting the paging and specification restriction provided in the Pageable and Specification objects.specification - The specification restricting the resultspageable - The paging configurationList<V> findBy(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
example - Sample entity. Query all like.attributes - Which attributes to consider for the query.List<V> findBy(E example, int start, int max, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
example - Sample entity. Query all like.start - The starting position.max - The maximum number of results to returnattributes - Which attributes to consider for the query.List<V> findByLike(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
example - Sample entity. Query all like.attributes - Which attributes to consider for the query.List<V> findByLike(E example, int start, int max, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
example - Sample entity. Query all like.start - The starting position.max - The maximum number of results to returnattributes - Which attributes to consider for the query.Copyright © 2014–2018 Blazebit. All rights reserved.