public class JpaRepositoryMetadata extends java.lang.Object implements RepositoryMetadata<JpaEntityMetadata>
RepositoryMetadata
for JPA.Constructor and Description |
---|
JpaRepositoryMetadata(java.lang.String name,
java.lang.Class<?> domainType,
java.lang.Class<?> repoClass,
org.springframework.data.repository.support.Repositories repositories,
javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
domainType()
The type of domain object this
Repository is repsonsible for. |
JpaEntityMetadata |
entityMetadata()
The
EntityMetadata associated with the domain type of this Repository. |
java.lang.Boolean |
exportsMethod(CrudMethod method)
Does this Repository all this method to be exported?
|
java.lang.String |
name()
The name this
Repository is exported under. |
RepositoryQueryMethod |
queryMethod(java.lang.String key)
Get a
RepositoryQueryMethod by key. |
java.util.Map<java.lang.String,RepositoryQueryMethod> |
queryMethods()
Get a Map of all
RepositoryQueryMethod s, keyed by name. |
java.lang.String |
rel()
Get the string value to be used as part of a link rel attribute.
|
org.springframework.data.repository.CrudRepository<java.lang.Object,java.io.Serializable> |
repository()
The
Repository instance. |
java.lang.Class<?> |
repositoryClass()
The Class of the
Repository subinterface. |
java.lang.String |
toString() |
public JpaRepositoryMetadata(java.lang.String name, java.lang.Class<?> domainType, java.lang.Class<?> repoClass, org.springframework.data.repository.support.Repositories repositories, javax.persistence.EntityManager entityManager)
public java.lang.String name()
RepositoryMetadata
Repository
is exported under.name
in interface RepositoryMetadata<JpaEntityMetadata>
public java.lang.String rel()
RepositoryMetadata
rel
in interface RepositoryMetadata<JpaEntityMetadata>
public java.lang.Class<?> domainType()
RepositoryMetadata
Repository
is repsonsible for.domainType
in interface RepositoryMetadata<JpaEntityMetadata>
public java.lang.Class<?> repositoryClass()
RepositoryMetadata
Repository
subinterface.repositoryClass
in interface RepositoryMetadata<JpaEntityMetadata>
public org.springframework.data.repository.CrudRepository<java.lang.Object,java.io.Serializable> repository()
RepositoryMetadata
Repository
instance.repository
in interface RepositoryMetadata<JpaEntityMetadata>
Repository
instance.public JpaEntityMetadata entityMetadata()
RepositoryMetadata
EntityMetadata
associated with the domain type of this Repository.entityMetadata
in interface RepositoryMetadata<JpaEntityMetadata>
public RepositoryQueryMethod queryMethod(java.lang.String key)
RepositoryMetadata
RepositoryQueryMethod
by key.queryMethod
in interface RepositoryMetadata<JpaEntityMetadata>
key
- Segment of the URL to find a query method for.RepositoryQueryMethod
or null if
none found.public java.util.Map<java.lang.String,RepositoryQueryMethod> queryMethods()
RepositoryMetadata
RepositoryQueryMethod
s, keyed by name.queryMethods
in interface RepositoryMetadata<JpaEntityMetadata>
public java.lang.Boolean exportsMethod(CrudMethod method)
RepositoryMetadata
exportsMethod
in interface RepositoryMetadata<JpaEntityMetadata>
public java.lang.String toString()
toString
in class java.lang.Object