Interface PersistenceTypeDescriptionResolver
-
- All Superinterfaces:
PersistenceTypeResolver
- All Known Implementing Classes:
PersistenceTypeDescriptionResolver.Default
public interface PersistenceTypeDescriptionResolver extends PersistenceTypeResolver
A mapping that projects outdated identifiers (usually className#fieldName, but in case of root instances also potentially arbitrary strings) to current identifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceTypeDescriptionResolver.Default
-
Method Summary
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeResolver
deriveTypeName, resolveType, substituteClassIdentifierSeparator, tryResolveType
-
-
-
-
Method Detail
-
lookup
KeyValue<String,String> lookup(String sourceIdentifier)
Returns a key-value pair with the passed source identifier as the key and a mapped target identifier as the value. The value can be potentially null to indicate deletion. If the lookup did not yield any result,null
is returned.- Parameters:
sourceIdentifier
-
-
resolveRuntimeTypeName
String resolveRuntimeTypeName(PersistenceTypeDescription typeDescription)
-
resolveRuntimeType
default Class<?> resolveRuntimeType(PersistenceTypeDescription typeDescription)
-
tryResolveRuntimeType
default Class<?> tryResolveRuntimeType(PersistenceTypeDescription typeDescription)
-
resolveMember
KeyValue<PersistenceTypeDefinitionMember,PersistenceTypeDefinitionMember> resolveMember(PersistenceTypeDefinition sourceType, PersistenceTypeDefinitionMember sourceMember, PersistenceTypeDefinition targetType)
Returns a key-value pair with the passed source member as the key and a mapped target member as the value. The value can be potentially null to indicate deletion. If the lookup did not yield any result,null
is returned.- Parameters:
sourceType
-sourceMember
-targetType
-
-
isNewCurrentTypeMember
boolean isNewCurrentTypeMember(PersistenceTypeDefinition currentTypeDefinition, PersistenceTypeDefinitionMember currentTypeMember)
-
New
static PersistenceTypeDescriptionResolver New(PersistenceTypeResolver typeResolver, PersistenceRefactoringMapping refactoringMapping, XGettingEnum<? extends PersistenceRefactoringTypeIdentifierBuilder> sourceTypeIdentifierBuilders, XGettingEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> sourceMemberIdentifierBuilders, XGettingEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> targetMemberIdentifierBuilders)
-
-