E - Entity type.PK - Primary key type, must be a serializable.public class EntityRepositoryHandler<E,PK extends Serializable> extends Object implements org.apache.deltaspike.data.api.EntityRepository<E,PK>, org.apache.deltaspike.data.spi.DelegateQueryHandler
EntityRepository.| Constructor and Description |
|---|
EntityRepositoryHandler() |
| Modifier and Type | Method and Description |
|---|---|
Long |
count() |
Long |
count(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
Long |
countLike(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
javax.persistence.criteria.CriteriaQuery<E> |
criteriaQuery() |
Class<E> |
entityClass() |
javax.persistence.EntityManager |
entityManager() |
List<E> |
findAll() |
List<E> |
findAll(int start,
int max) |
List<E> |
findBy(E example,
int start,
int max,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
List<E> |
findBy(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
E |
findBy(PK primaryKey) |
List<E> |
findByLike(E example,
int start,
int max,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
List<E> |
findByLike(E example,
javax.persistence.metamodel.SingularAttribute<E,?>... attributes) |
void |
flush() |
void |
refresh(E entity) |
void |
remove(E entity) |
void |
removeAndFlush(E entity) |
E |
save(E entity) |
E |
saveAndFlush(E entity) |
E |
saveAndFlushAndRefresh(E entity) |
public E save(E entity)
save in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public E saveAndFlush(E entity)
saveAndFlush in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public E saveAndFlushAndRefresh(E entity)
saveAndFlushAndRefresh in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public void refresh(E entity)
refresh in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public E findBy(PK primaryKey)
findBy in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findBy(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
findBy in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findBy(E example, int start, int max, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
findBy in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findByLike(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
findByLike in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findByLike(E example, int start, int max, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
findByLike in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findAll()
findAll in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public List<E> findAll(int start, int max)
findAll in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public Long count()
count in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public Long count(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
count in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public Long countLike(E example, javax.persistence.metamodel.SingularAttribute<E,?>... attributes)
countLike in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public void remove(E entity)
remove in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public void removeAndFlush(E entity)
removeAndFlush in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public void flush()
flush in interface org.apache.deltaspike.data.api.EntityRepository<E,PK extends Serializable>public javax.persistence.EntityManager entityManager()
public javax.persistence.criteria.CriteriaQuery<E> criteriaQuery()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.