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, getTypeResolvingClassLoader, resolveType, substituteClassIdentifierSeparator, tryResolveType
-
Method Details
-
lookup
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
- the source identifier- Returns:
- a key-value pair with the passed source identifier as the key and a mapped target identifier as the value
-
resolveRuntimeTypeName
-
resolveRuntimeTypeName
-
resolveRuntimeType
-
tryResolveRuntimeType
-
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
- the source typesourceMember
- the source membertargetType
- the target type- Returns:
- a key-value pair with the passed source member as the key and a mapped target member as the value
-
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)
-