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
RepositoryQueryMethods, 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()
RepositoryMetadataRepository is exported under.name in interface RepositoryMetadata<JpaEntityMetadata>public java.lang.String rel()
RepositoryMetadatarel in interface RepositoryMetadata<JpaEntityMetadata>public java.lang.Class<?> domainType()
RepositoryMetadataRepository is repsonsible for.domainType in interface RepositoryMetadata<JpaEntityMetadata>public java.lang.Class<?> repositoryClass()
RepositoryMetadataRepository subinterface.repositoryClass in interface RepositoryMetadata<JpaEntityMetadata>public org.springframework.data.repository.CrudRepository<java.lang.Object,java.io.Serializable> repository()
RepositoryMetadataRepository instance.repository in interface RepositoryMetadata<JpaEntityMetadata>Repository instance.public JpaEntityMetadata entityMetadata()
RepositoryMetadataEntityMetadata associated with the domain type of this Repository.entityMetadata in interface RepositoryMetadata<JpaEntityMetadata>public RepositoryQueryMethod queryMethod(java.lang.String key)
RepositoryMetadataRepositoryQueryMethod 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()
RepositoryMetadataRepositoryQueryMethods, keyed by name.queryMethods in interface RepositoryMetadata<JpaEntityMetadata>public java.lang.Boolean exportsMethod(CrudMethod method)
RepositoryMetadataexportsMethod in interface RepositoryMetadata<JpaEntityMetadata>public java.lang.String toString()
toString in class java.lang.Object