Interface PersistenceRootResolver
-
- All Known Implementing Classes:
PersistenceRootResolver.Default
,PersistenceRootResolver.MappingWrapper
public interface PersistenceRootResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceRootResolver.Default
static class
PersistenceRootResolver.MappingWrapper
-
Method Summary
-
-
-
Method Detail
-
rootIdentifier
String rootIdentifier()
-
root
PersistenceRootReference root()
-
resolveRootInstance
PersistenceRootEntry resolveRootInstance(String identifier)
-
definedEntries
XGettingTable<String,PersistenceRootEntry> definedEntries()
-
rootEntry
default PersistenceRootEntry rootEntry()
-
resolveRootEntries
default void resolveRootEntries(XMap<String,PersistenceRootEntry> resolvedEntriesAcceptor, XGettingEnum<String> identifiers)
-
resolveDefinedRootInstances
default XGettingTable<String,Object> resolveDefinedRootInstances()
-
resolveRootInstances
default XTable<String,Object> resolveRootInstances(XGettingTable<String,PersistenceRootEntry> entries)
-
deriveRoots
static XGettingTable<String,Supplier<?>> deriveRoots(Class<?>... types)
-
deriveRoots
static XGettingTable<String,Supplier<?>> deriveRoots(Function<Field,String> rootIdentifierDeriver, Class<?>... types)
-
addRoots
static void addRoots(EqHashTable<String,Supplier<?>> roots, Function<Field,String> rootIdentifierDeriver, Class<?>... types)
-
addRoots
static void addRoots(EqHashTable<String,Supplier<?>> roots, Function<Field,String> rootIdentifierDeriver, Class<?> type)
-
wrapCustomRoot
static Supplier<?> wrapCustomRoot(Object customRootInstance)
Central wrapping method mosty to have a unified and concisely named location for the lambda.- Parameters:
customRootInstance
- the instance to be used as the entity graph's root.- Returns:
- a
Supplier
returning the passed customRootInstance instance.
-
Wrap
static PersistenceRootResolver Wrap(PersistenceRootResolver actualRootResolver, PersistenceTypeDescriptionResolverProvider refactoringMappingProvider)
-
-