Class EntityGraphSimpleJpaRepository<T,ID>
java.lang.Object
org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
com.cosium.spring.data.jpa.entity.graph.repository.support.EntityGraphSimpleJpaRepository<T,ID>
- All Implemented Interfaces:
EntityGraphCrudRepository<T,,ID> EntityGraphJpaRepository<T,,ID> EntityGraphJpaSpecificationExecutor<T>,EntityGraphPagingAndSortingRepository<T,,ID> EntityGraphQueryByExampleExecutor<T>,EntityGraphRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<T,,ID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>,org.springframework.data.jpa.repository.support.JpaRepositoryImplementation<T,,ID> org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
- Direct Known Subclasses:
EntityGraphQuerydslRepository
public class EntityGraphSimpleJpaRepository<T,ID>
extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
implements EntityGraphJpaRepository<T,ID>, EntityGraphJpaSpecificationExecutor<T>
A
SimpleJpaRepository that supports EntityGraph passed through method arguments.
Created on 22/11/16.
- Author:
- Reda.Housni-Alaoui
-
Constructor Summary
ConstructorsConstructorDescriptionEntityGraphSimpleJpaRepository(Class<T> domainClass, javax.persistence.EntityManager entityManager) EntityGraphSimpleJpaRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, javax.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionfindAll(EntityGraph entityGraph) findAll(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph) <S extends T>
org.springframework.data.domain.Page<S>findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) findAll(org.springframework.data.domain.Sort sort, EntityGraph entityGraph) findAll(org.springframework.data.jpa.domain.Specification<T> spec, EntityGraph entityGraph) org.springframework.data.domain.Page<T>findAll(org.springframework.data.jpa.domain.Specification<T> spec, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) findAll(org.springframework.data.jpa.domain.Specification<T> spec, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) findAllById(Iterable<ID> ids, EntityGraph entityGraph) findById(ID id, EntityGraph entityGraph) findOne(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph) findOne(org.springframework.data.jpa.domain.Specification<T> spec, EntityGraph entityGraph) Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository
count, count, count, delete, deleteAll, deleteAll, deleteAllById, deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteById, exists, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findBy, findById, findOne, findOne, flush, getById, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getReferenceById, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAllAndFlush, saveAndFlush, setEscapeCharacter, setRepositoryMethodMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface com.cosium.spring.data.jpa.entity.graph.repository.EntityGraphRepository
defaultEntityGraphMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, exists, findAll, findAll, findAll, findOneMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Constructor Details
-
EntityGraphSimpleJpaRepository
public EntityGraphSimpleJpaRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, javax.persistence.EntityManager entityManager) -
EntityGraphSimpleJpaRepository
-
-
Method Details
-
findOne
public Optional<T> findOne(org.springframework.data.jpa.domain.Specification<T> spec, EntityGraph entityGraph) - Specified by:
findOnein interfaceEntityGraphJpaSpecificationExecutor<T>- See Also:
-
JpaSpecificationExecutor.findOne(Specification)
-
findAll
public List<T> findAll(org.springframework.data.jpa.domain.Specification<T> spec, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphJpaSpecificationExecutor<T>- See Also:
-
JpaSpecificationExecutor.findAll(Specification)
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.jpa.domain.Specification<T> spec, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphJpaSpecificationExecutor<T>- See Also:
-
JpaSpecificationExecutor.findAll(Specification, Pageable)
-
findAll
public List<T> findAll(org.springframework.data.jpa.domain.Specification<T> spec, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphJpaSpecificationExecutor<T>- See Also:
-
JpaSpecificationExecutor.findAll(Specification, Sort)
-
findAll
public <S extends T> org.springframework.data.domain.Page<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphQueryByExampleExecutor<T>- See Also:
-
QueryByExampleExecutor.findAll(Example, Pageable)
-
findOne
public <S extends T> Optional<S> findOne(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph) - Specified by:
findOnein interfaceEntityGraphQueryByExampleExecutor<T>- See Also:
-
QueryByExampleExecutor.findOne(Example)
-
findById
- Specified by:
findByIdin interfaceEntityGraphCrudRepository<T,ID> - See Also:
-
CrudRepository.findById(Object)
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphPagingAndSortingRepository<T,ID> - See Also:
-
PagingAndSortingRepository.findAll(Pageable)
-
findAll
public <S extends T> List<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphQueryByExampleExecutor<T>- See Also:
-
QueryByExampleExecutor.findAll(Example, Sort)
-
findAll
public <S extends T> List<S> findAll(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph) - Specified by:
findAllin interfaceEntityGraphQueryByExampleExecutor<T>- See Also:
-
QueryByExampleExecutor.findAll(Example)
-
findAllById
- Specified by:
findAllByIdin interfaceEntityGraphCrudRepository<T,ID> - See Also:
-
CrudRepository.findAllById(Iterable)
-
findAll
- Specified by:
findAllin interfaceEntityGraphPagingAndSortingRepository<T,ID> - See Also:
-
PagingAndSortingRepository.findAll(Sort)
-
findAll
- Specified by:
findAllin interfaceEntityGraphCrudRepository<T,ID> - See Also:
-
CrudRepository.findAll()
-