Interface EntityLookupRegistrar
public interface EntityLookupRegistrar
Configuration interfaces to ease the configuration of custom
EntityLookup
s for repositories.- Since:
- 2.5
- Author:
- Oliver Gierke
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
EntityLookupRegistrar.IdMappingRegistrar<T,
R extends Repository<T, ?>> static interface
EntityLookupRegistrar.LookupRegistrar<T,
ID, R extends Repository<T, ?>> -
Method Summary
Modifier and TypeMethodDescription<T,
ID, R extends Repository<T, ?>>
EntityLookupRegistrar.IdMappingRegistrar<T,R> forLookupRepository
(Class<R> type) Starts building a customEntityLookup
for the given repository type and registers the domain type of the given repository as lookup type.<T,
ID, R extends Repository<T, ?>>
EntityLookupRegistrar.IdMappingRegistrar<T,R> forRepository
(Class<R> type) Starts building a customEntityLookup
for the given repository type.<T,
ID, R extends Repository<T, ?>>
EntityLookupRegistrarforRepository
(Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookup
for the given repository type, identifier mapping and lookup operation.<T,
ID, R extends Repository<T, ?>>
EntityLookupRegistrarforValueRepository
(Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookup
for the given repository type, identifier mapping and lookup operation and registers the domain type managed by the given repository as lookup type.
-
Method Details
-
forRepository
<T,ID, EntityLookupRegistrar.IdMappingRegistrar<T,R extends Repository<T, ?>> R> forRepository(Class<R> type) Starts building a customEntityLookup
for the given repository type.- Parameters:
type
- must not be null.- Returns:
-
forLookupRepository
<T,ID, EntityLookupRegistrar.IdMappingRegistrar<T,R extends Repository<T, ?>> R> forLookupRepository(Class<R> type) Starts building a customEntityLookup
for the given repository type and registers the domain type of the given repository as lookup type.- Parameters:
type
- must not be null.- Returns:
-
forRepository
<T,ID, EntityLookupRegistrar forRepositoryR extends Repository<T, ?>> (Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookup
for the given repository type, identifier mapping and lookup operation.- Parameters:
type
- must not be null.identifierMapping
- must not be null.lookup
- must not be null.
-
forValueRepository
<T,ID, EntityLookupRegistrar forValueRepositoryR extends Repository<T, ?>> (Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookup
for the given repository type, identifier mapping and lookup operation and registers the domain type managed by the given repository as lookup type.- Parameters:
type
- must not be null.identifierMapping
- must not be null.lookup
- must not be null.
-