public abstract class JpaRepositoryBase<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JpaModule |
module |
protected JpaRepositoryConfig<T> |
repositoryConfig |
| Modifier | Constructor and Description |
|---|---|
protected |
JpaRepositoryBase(JpaModule module,
JpaRepositoryConfig<T> repositoryConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
fetchRelations(String fieldName)
By default LookupIncludeBehavior.ALWAYS is in place and we let the relationship repositories load the relations.
|
protected <E> JpaQueryExecutor<E> |
filterExecutor(QuerySpec querySpec,
JpaQueryExecutor<E> executor) |
protected <E> JpaQuery<E> |
filterQuery(QuerySpec querySpec,
JpaQuery<E> query) |
protected QuerySpec |
filterQuerySpec(QuerySpec querySpec) |
protected ResourceList<T> |
filterResults(QuerySpec querySpec,
ResourceList<T> resources) |
protected List<Tuple> |
filterTuples(QuerySpec querySpec,
List<Tuple> tuples) |
protected static <D> D |
getUniqueOrNull(List<D> list) |
protected ResourceList<T> |
map(List<Tuple> tuples) |
protected JpaModule module
protected JpaRepositoryConfig<T> repositoryConfig
protected JpaRepositoryBase(JpaModule module, JpaRepositoryConfig<T> repositoryConfig)
protected boolean fetchRelations(String fieldName)
fieldName - of the relation to fetchprotected static <D> D getUniqueOrNull(List<D> list)
protected <E> JpaQueryExecutor<E> filterExecutor(QuerySpec querySpec, JpaQueryExecutor<E> executor)
protected ResourceList<T> filterResults(QuerySpec querySpec, ResourceList<T> resources)
protected ResourceList<T> map(List<Tuple> tuples)
Copyright © 2017. All Rights Reserved.