Interface PersistenceTypeDictionaryView
- All Superinterfaces:
PersistenceTypeDictionary
- All Known Implementing Classes:
PersistenceTypeDictionaryView.Default
public interface PersistenceTypeDictionaryView extends PersistenceTypeDictionary
A read-only ("view") type of a
PersistenceTypeDictionary
where all mutating methods throw anUnsupportedOperationException
.
Conceptual note:
The natural concept would be to design the reading type as the base type with an immutable implementation
and extend a mutating type from that base type. The intial concept was exactely that. But it turned out that the
the way type dictionaries are used contradicts that and could better incorporate the described reversed hierarchy.
That way is:
Mutating operations are encaspulated by ~Manager types and are rejected with an exception for immutable usage.
Reading operations work seamless in both concepts, anyway.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceTypeDictionaryView.Default
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionary
PersistenceTypeDictionary.Symbols
-
Method Summary
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionary
determineHighestTypeId, isEmpty, iterateAllTypeDefinitions, iterateLatestTypes, iterateRuntimeDefinitions, iterateTypeLineages, iterateTypeLineageViews, lookupTypeById, lookupTypeByName, resolveTypeIds
-
Method Details
-
allTypeDefinitions
XGettingTable<Long,PersistenceTypeDefinition> allTypeDefinitions()- Specified by:
allTypeDefinitions
in interfacePersistenceTypeDictionary
-
typeLineages
XGettingTable<String,? extends PersistenceTypeLineageView> typeLineages()- Specified by:
typeLineages
in interfacePersistenceTypeDictionary
-
lookupTypeLineage
- Specified by:
lookupTypeLineage
in interfacePersistenceTypeDictionary
-
lookupTypeLineage
- Specified by:
lookupTypeLineage
in interfacePersistenceTypeDictionary
-
view
- Specified by:
view
in interfacePersistenceTypeDictionary
-
ensureTypeLineage
- Specified by:
ensureTypeLineage
in interfacePersistenceTypeDictionary
-
registerTypeDefinition
- Specified by:
registerTypeDefinition
in interfacePersistenceTypeDictionary
-
registerTypeDefinitions
default boolean registerTypeDefinitions(Iterable<? extends PersistenceTypeDefinition> typeDefinitions)- Specified by:
registerTypeDefinitions
in interfacePersistenceTypeDictionary
-
registerRuntimeTypeDefinition
- Specified by:
registerRuntimeTypeDefinition
in interfacePersistenceTypeDictionary
-
registerRuntimeTypeDefinitions
default boolean registerRuntimeTypeDefinitions(Iterable<? extends PersistenceTypeDefinition> typeDefinitions)- Specified by:
registerRuntimeTypeDefinitions
in interfacePersistenceTypeDictionary
-
setTypeDescriptionRegistrationObserver
default PersistenceTypeDictionary setTypeDescriptionRegistrationObserver(PersistenceTypeDefinitionRegistrationObserver observer)- Specified by:
setTypeDescriptionRegistrationObserver
in interfacePersistenceTypeDictionary
-
getTypeDescriptionRegistrationObserver
- Specified by:
getTypeDescriptionRegistrationObserver
in interfacePersistenceTypeDictionary
-
New
-