public abstract class AbstractRepositoryMetadataResolver extends Object implements RepositoryMetadataResolver
This class will first check for common errors in a repository's definition before letting the resolution proceed any further.
A repository must:
Once these checks are completed, it will call resolveFromInterface(Class) to determine the
actual metadata.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRepositoryMetadataResolver() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryMetadata |
resolve(Class<?> repositoryInterface) |
protected abstract RepositoryMetadata |
resolveFromInterface(Class<?> repositoryInterface)
Determines the metadata from the given repository interface, knowing that the assumptions
declared
the head of this class now hold. |
protected String |
resolveIdProperty(Class<?> entityType,
Class<? extends Serializable> idType)
Given the type of the entity, it will determine the ID property for that entity through
calling to
EntityIdPropertyResolver |
protected AbstractRepositoryMetadataResolver()
public final RepositoryMetadata resolve(Class<?> repositoryInterface)
resolve in interface RepositoryMetadataResolverprotected abstract RepositoryMetadata resolveFromInterface(Class<?> repositoryInterface)
the head of this class now hold.repositoryInterface - the repository interface.protected String resolveIdProperty(Class<?> entityType, Class<? extends Serializable> idType)
EntityIdPropertyResolverentityType - the type of the entityidType - the type of the ID propertyCopyright © 2014–2016. All rights reserved.