T - Tipo do ObjetoP - Tipo da PK (Primary Key)public class JpaCrudRepositoryImpl<T,P extends Serializable> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,P> implements JpaCrudRepository<T,P>
JpaCrudRepositoryImpl Implmentação generica de repositorio.| Constructor and Description |
|---|
JpaCrudRepositoryImpl(Class<T> domainClass,
javax.persistence.EntityManager entityManager) |
JpaCrudRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,P> entityInformation,
javax.persistence.EntityManager entityManager)
Creates a new
JpaCrudRepositoryImpl to manage objects of the given JpaEntityInformation. |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(T entity)
Remover um elemento do cache de segundo nível.
|
List<T> |
findAll(QuerySpecification<T> querySpecs)
Pesquisa por query specification.
|
protected javax.persistence.TypedQuery<javax.persistence.Tuple> |
getQuery(QuerySpecification<T> querySpecs)
Creates a
TypedQuery for the given QuerySpecification . |
void |
refresh(T entity) |
void |
sessionClear()
Limpa sesão do hibernate.
|
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, save, saveAndFlush, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, savepublic JpaCrudRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,P> entityInformation, javax.persistence.EntityManager entityManager)
JpaCrudRepositoryImpl to manage objects of the given JpaEntityInformation.entityInformation - must not be null.entityManager - must not be null.public void refresh(T entity)
public void evict(T entity)
JpaCrudRepositoryevict in interface JpaCrudRepository<T,P extends Serializable>entity - Objeto a ser realizado a operação de evictpublic List<T> findAll(QuerySpecification<T> querySpecs)
JpaCrudRepositoryfindAll in interface JpaCrudRepository<T,P extends Serializable>querySpecs - Query customizada de pesquisa.protected javax.persistence.TypedQuery<javax.persistence.Tuple> getQuery(QuerySpecification<T> querySpecs)
TypedQuery for the given QuerySpecification .querySpecs - can be null.public void sessionClear()
JpaCrudRepositorysessionClear in interface JpaCrudRepository<T,P extends Serializable>Copyright © 2017 EArchitecture. All rights reserved.