Interface EntityLookupRegistrar
public interface EntityLookupRegistrar
Configuration interfaces to ease the configuration of custom
EntityLookups for repositories.- Since:
- 2.5
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEntityLookupRegistrar.IdMappingRegistrar<T, R extends Repository<T,?>> static interfaceEntityLookupRegistrar.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 customEntityLookupfor 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 customEntityLookupfor 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 anEntityLookupfor 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 anEntityLookupfor 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, R extends Repository<T,?>> EntityLookupRegistrar.IdMappingRegistrar<T,R> forRepository(Class<R> type) Starts building a customEntityLookupfor the given repository type.- Parameters:
type- must not be null.- Returns:
-
forLookupRepository
<T, ID, R extends Repository<T,?>> EntityLookupRegistrar.IdMappingRegistrar<T,R> forLookupRepository(Class<R> type) Starts building a customEntityLookupfor 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, R extends Repository<T,?>> EntityLookupRegistrar forRepository(Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookupfor 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, R extends Repository<T,?>> EntityLookupRegistrar forValueRepository(Class<R> type, Converter<T, ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R, ID> lookup) Registers anEntityLookupfor 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.
-