public abstract class JpaRepositoryBase<T>
extends java.lang.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(java.lang.String fieldName)
By default LookupIncludeBehavior.ALWAYS is in place and we let the relationship repositories load the relations.
|
protected <E> JpaQueryExecutor<E> |
filterExecutor(io.crnk.core.queryspec.QuerySpec querySpec,
JpaQueryExecutor<E> executor) |
protected <E> JpaQuery<E> |
filterQuery(io.crnk.core.queryspec.QuerySpec querySpec,
JpaQuery<E> query) |
protected io.crnk.core.queryspec.QuerySpec |
filterQuerySpec(io.crnk.core.queryspec.QuerySpec querySpec) |
protected io.crnk.core.resource.list.ResourceList<T> |
filterResults(io.crnk.core.queryspec.QuerySpec querySpec,
io.crnk.core.resource.list.ResourceList<T> resources) |
protected java.util.List<Tuple> |
filterTuples(io.crnk.core.queryspec.QuerySpec querySpec,
java.util.List<Tuple> tuples) |
protected static <D> D |
getUnique(java.util.List<D> list,
java.lang.Object id) |
protected io.crnk.core.resource.list.ResourceList<T> |
map(java.util.List<Tuple> tuples) |
protected JpaModule module
protected JpaRepositoryConfig<T> repositoryConfig
protected JpaRepositoryBase(JpaModule module, JpaRepositoryConfig<T> repositoryConfig)
protected static <D> D getUnique(java.util.List<D> list,
java.lang.Object id)
protected boolean fetchRelations(java.lang.String fieldName)
fieldName - of the relation to fetchprotected io.crnk.core.queryspec.QuerySpec filterQuerySpec(io.crnk.core.queryspec.QuerySpec querySpec)
protected <E> JpaQuery<E> filterQuery(io.crnk.core.queryspec.QuerySpec querySpec, JpaQuery<E> query)
protected <E> JpaQueryExecutor<E> filterExecutor(io.crnk.core.queryspec.QuerySpec querySpec, JpaQueryExecutor<E> executor)
protected java.util.List<Tuple> filterTuples(io.crnk.core.queryspec.QuerySpec querySpec, java.util.List<Tuple> tuples)
protected io.crnk.core.resource.list.ResourceList<T> filterResults(io.crnk.core.queryspec.QuerySpec querySpec, io.crnk.core.resource.list.ResourceList<T> resources)