public class CentromereJpaRepository<T extends Model<ID>,ID extends Serializable> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> implements RepositoryOperations<T,ID>
| Constructor and Description |
|---|
CentromereJpaRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager) |
CentromereJpaRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager,
Class<T> model) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(Iterable<QueryCriteria> queryCriterias)
Returns a count of all records that satify the requested criteria.
|
Iterable<Object> |
distinct(String field)
Returns a unsorted list of distinct values of the requested field.
|
Iterable<Object> |
distinct(String field,
Iterable<QueryCriteria> queryCriterias)
Returns a unsorted list of distinct values of the requested field, filtered using a
QueryCriteria
based query. |
Iterable<T> |
find(Iterable<QueryCriteria> queryCriterias)
Searches for all records that satisfy the requested criteria.
|
org.springframework.data.domain.Page<T> |
find(Iterable<QueryCriteria> queryCriterias,
org.springframework.data.domain.Pageable pageable)
Searches for all records that satisfy the requested criteria, and returns them as a paged
collection.
|
Iterable<T> |
find(Iterable<QueryCriteria> queryCriterias,
org.springframework.data.domain.Sort sort)
Searches for all records that satisfy the requested criteria, and returns them in the
requested order.
|
javax.persistence.EntityManager |
getEntityManager()
Returns the instance of the
EntityManager. |
Class<T> |
getModel()
Returns the model class reference.
|
<S extends T> |
insert(Iterable<S> entities)
Creates multiple new records and returns their updated representations.
|
<S extends T> |
insert(S entity)
Creates a new record in the repository and returns the updated model object.
|
<S extends T> |
update(Iterable<S> entities)
Updates multiple records and returns their instances.
|
<S extends T> |
update(S entity)
Updates an existing record in the repository and returns its instance.
|
count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, flush, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, save, save, saveAndFlush, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CentromereJpaRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation, javax.persistence.EntityManager entityManager, Class<T> model)
public Iterable<T> find(Iterable<QueryCriteria> queryCriterias)
find in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>queryCriterias - QueryCriteriaT records.public Iterable<T> find(Iterable<QueryCriteria> queryCriterias, org.springframework.data.domain.Sort sort)
find in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>queryCriterias - QueryCriteriasort - SortT records.public org.springframework.data.domain.Page<T> find(Iterable<QueryCriteria> queryCriterias, org.springframework.data.domain.Pageable pageable)
find in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>queryCriterias - QueryCriteriapageable - PageablePage containing the desired set of records.public long count(Iterable<QueryCriteria> queryCriterias)
count in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>queryCriterias - QueryCriteriaT records.public Iterable<Object> distinct(String field)
distinct in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>field - Model field name.field.public Iterable<Object> distinct(String field, Iterable<QueryCriteria> queryCriterias)
QueryCriteria
based query.distinct in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>field - Model field name.queryCriterias - Query criteria to filter the field values by.field.public <S extends T> S insert(S entity)
insert in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>entity - instance of T to be persisted.public <S extends T> Iterable<S> insert(Iterable<S> entities)
insert in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>entities - collection of records to be persisted.public <S extends T> S update(S entity)
update in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>entity - updated record to be persisted in the repository.public <S extends T> Iterable<S> update(Iterable<S> entities)
update in interface RepositoryOperations<T extends Model<ID>,ID extends Serializable>entities - collection of records to update.public Class<T> getModel()
getModel in interface ModelSupport<T extends Model<ID>>public javax.persistence.EntityManager getEntityManager()
EntityManager.Copyright © 2016. All rights reserved.