@NoRepositoryBean
public interface JpaEntityGraphRepository<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAll(EntityGraph entityGraph)
Returns all instances of the type.
|
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example,
EntityGraph entityGraph)
Returns the number of instances matching the given
Example. |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example,
org.springframework.data.domain.Pageable pageable,
EntityGraph entityGraph)
Returns a
Page of entities matching the given Example. |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example,
org.springframework.data.domain.Sort sort,
EntityGraph entityGraph)
Returns all entities matching the given
Example applying the given Sort. |
List<T> |
findAll(Iterable<ID> ids,
EntityGraph entityGraph)
Returns all instances of the type with the given IDs.
|
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable,
EntityGraph entityGraph)
Returns a
Page of entities meeting the paging restriction provided in the Pageable object. |
List<T> |
findAll(org.springframework.data.domain.Sort sort,
EntityGraph entityGraph)
Returns all entities sorted by the given options.
|
<S extends T> |
findOne(org.springframework.data.domain.Example<S> example,
EntityGraph entityGraph)
Returns a single entity matching the given
Example or null if none was found. |
T |
findOne(ID id,
EntityGraph entityGraph)
Retrieves an entity by its id.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll<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)
Page of entities matching the given Example. In case no match could be found, an empty
Page is returned.example - can be null.pageable - can be null.entityGraph - can be null.Page of entities matching the given Example.<S extends T> S findOne(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph)
Example or null if none was found.example - can be null.entityGraph - can be null.Example or null if none was found.org.springframework.dao.IncorrectResultSizeDataAccessException - if the Example yields more than one result.T findOne(ID id, EntityGraph entityGraph)
id - must not be null.entityGraph - can be null.IllegalArgumentException - if id is nullorg.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph)
Page of entities meeting the paging restriction provided in the Pageable object.pageable - entityGraph - can be null.<S extends T> List<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, EntityGraph entityGraph)
Example applying the given Sort. In case no match could be
found an empty Iterable is returned.example - can be null.sort - the Sort specification to sort the results by, must not be null.entityGraph - can be null.Example.<S extends T> List<S> findAll(org.springframework.data.domain.Example<S> example, EntityGraph entityGraph)
Example.example - the Example to count instances for, can be null.entityGraph - can be null.Example.List<T> findAll(Iterable<ID> ids, EntityGraph entityGraph)
ids - entityGraph - can be null.List<T> findAll(org.springframework.data.domain.Sort sort, EntityGraph entityGraph)
sort - entityGraph - can be null.List<T> findAll(EntityGraph entityGraph)
entityGraph - can be null.Copyright © 2017 Cosium. All rights reserved.