public interface EntityLookupRegistrar
EntityLookup
s for repositories.Modifier and Type | Interface and Description |
---|---|
static interface |
EntityLookupRegistrar.IdMappingRegistrar<T,R extends Repository<T,?>> |
static interface |
EntityLookupRegistrar.LookupRegistrar<T,ID,R extends Repository<T,?>> |
Modifier and Type | Method and Description |
---|---|
<T,ID,R extends Repository<T,?>> |
forLookupRepository(Class<R> type)
Starts building a custom
EntityLookup for the given repository type and registers the domain type of the
given repository as lookup type. |
<T,ID,R extends Repository<T,?>> |
forRepository(Class<R> type)
Starts building a custom
EntityLookup for the given repository type. |
<T,ID,R extends Repository<T,?>> |
forRepository(Class<R> type,
Converter<T,ID> identifierMapping,
EntityLookupRegistrar.LookupRegistrar.Lookup<R,ID> lookup)
Registers an
EntityLookup for the given repository type, identifier mapping and lookup operation. |
<T,ID,R extends Repository<T,?>> |
forValueRepository(Class<R> type,
Converter<T,ID> identifierMapping,
EntityLookupRegistrar.LookupRegistrar.Lookup<R,ID> lookup)
Registers an
EntityLookup for the given repository type, identifier mapping and lookup operation and
registers the domain type managed by the given repository as lookup type. |
<T,ID,R extends Repository<T,?>> EntityLookupRegistrar.IdMappingRegistrar<T,R> forRepository(Class<R> type)
EntityLookup
for the given repository type.type
- must not be null.<T,ID,R extends Repository<T,?>> EntityLookupRegistrar.IdMappingRegistrar<T,R> forLookupRepository(Class<R> type)
EntityLookup
for the given repository type and registers the domain type of the
given repository as lookup type.type
- must not be null.<T,ID,R extends Repository<T,?>> EntityLookupRegistrar forRepository(Class<R> type, Converter<T,ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R,ID> lookup)
EntityLookup
for the given repository type, identifier mapping and lookup operation.type
- must not be null.identifierMapping
- must not be null.lookup
- must not be null.<T,ID,R extends Repository<T,?>> EntityLookupRegistrar forValueRepository(Class<R> type, Converter<T,ID> identifierMapping, EntityLookupRegistrar.LookupRegistrar.Lookup<R,ID> lookup)
EntityLookup
for the given repository type, identifier mapping and lookup operation and
registers the domain type managed by the given repository as lookup type.type
- must not be null.identifierMapping
- must not be null.lookup
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.