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. |
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 returnList<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.