E - Entity type.V - Entity view type.PK - Primary key type.org.apache.deltaspike.core.spi.activation.DeactivatableFullEntityViewRepository<E,V,PK>public interface EntityViewRepository<E,V,PK extends java.io.Serializable>
extends org.apache.deltaspike.core.spi.activation.Deactivatable
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<V> |
findAll() |
Lookup all existing entities of entity class
<E>. |
java.util.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) |
|
java.lang.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. |
java.util.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.
|
java.util.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.
|
java.util.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.
|
java.util.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.java.util.List<V> findAll()
<E>.java.util.List<V> findAll(int start, int max)
<E> with support for pagination.start - The starting position.max - The maximum number of results to returnjava.lang.Iterable<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 configurationjava.util.List<V> findBy(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
example - Sample entity. Query all like.attributes - Which attributes to consider for the query.java.util.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.java.util.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.java.util.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–2020 Blazebit. All rights reserved.