T - document type (entity or mapped dto)public class JpaRepositoryConfig<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JpaRepositoryConfig.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <E> JpaRepositoryConfig.Builder<E> |
builder(java.lang.Class<E> entityClass)
Prepares a builder to configure a jpa document for the given entity.
|
static <E,D> JpaRepositoryConfig.Builder<D> |
builder(java.lang.Class<E> entityClass,
java.lang.Class<D> dtoClass,
JpaMapper<E,D> mapper)
Prepares a builder to configure a jpa document for the given entity class which is
mapped to a DTO with the provided mapper.
|
static <E> JpaRepositoryConfig<E> |
create(java.lang.Class<E> entityClass)
Shortcut for builder(entityClass).build().
|
java.lang.Class<?> |
getEntityClass() |
<M extends io.crnk.core.resource.meta.MetaInformation,L extends io.crnk.core.resource.links.LinksInformation> |
getListClass() |
<E> JpaMapper<E,T> |
getMapper() |
<I extends java.io.Serializable> |
getRepositoryDecorator() |
<D,I extends java.io.Serializable,J extends java.io.Serializable> |
getRepositoryDecorator(java.lang.Class<D> targetResourceType) |
java.lang.Class<T> |
getResourceClass() |
io.crnk.core.resource.list.DefaultResourceList<T> |
newResultList() |
public static <E> JpaRepositoryConfig<E> create(java.lang.Class<E> entityClass)
entityClass - to directly exposepublic static <E> JpaRepositoryConfig.Builder<E> builder(java.lang.Class<E> entityClass)
E - entity typeentityClass - to directly exposepublic static <E,D> JpaRepositoryConfig.Builder<D> builder(java.lang.Class<E> entityClass, java.lang.Class<D> dtoClass, JpaMapper<E,D> mapper)
E - entity typeD - dto typeentityClass - to usedtoClass - to exposemapper - to convert entity to dto and backpublic java.lang.Class<?> getEntityClass()
public java.lang.Class<T> getResourceClass()
public <M extends io.crnk.core.resource.meta.MetaInformation,L extends io.crnk.core.resource.links.LinksInformation> java.lang.Class<? extends io.crnk.core.resource.list.ResourceListBase<T,M,L>> getListClass()
public io.crnk.core.resource.list.DefaultResourceList<T> newResultList()
public <I extends java.io.Serializable> io.crnk.core.repository.decorate.ResourceRepositoryDecorator<T,I> getRepositoryDecorator()
public <D,I extends java.io.Serializable,J extends java.io.Serializable> io.crnk.core.repository.decorate.RelationshipRepositoryDecorator<T,I,D,J> getRepositoryDecorator(java.lang.Class<D> targetResourceType)