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 an
UnsupportedOperationException.
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 classPersistenceTypeDictionaryView.DefaultNested 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:
allTypeDefinitionsin interfacePersistenceTypeDictionary
-
typeLineages
XGettingTable<String,? extends PersistenceTypeLineageView> typeLineages()- Specified by:
typeLineagesin interfacePersistenceTypeDictionary
-
lookupTypeLineage
- Specified by:
lookupTypeLineagein interfacePersistenceTypeDictionary
-
lookupTypeLineage
- Specified by:
lookupTypeLineagein interfacePersistenceTypeDictionary
-
view
- Specified by:
viewin interfacePersistenceTypeDictionary
-
ensureTypeLineage
- Specified by:
ensureTypeLineagein interfacePersistenceTypeDictionary
-
registerTypeDefinition
- Specified by:
registerTypeDefinitionin interfacePersistenceTypeDictionary
-
registerTypeDefinitions
default boolean registerTypeDefinitions(Iterable<? extends PersistenceTypeDefinition> typeDefinitions)- Specified by:
registerTypeDefinitionsin interfacePersistenceTypeDictionary
-
registerRuntimeTypeDefinition
- Specified by:
registerRuntimeTypeDefinitionin interfacePersistenceTypeDictionary
-
registerRuntimeTypeDefinitions
default boolean registerRuntimeTypeDefinitions(Iterable<? extends PersistenceTypeDefinition> typeDefinitions)- Specified by:
registerRuntimeTypeDefinitionsin interfacePersistenceTypeDictionary
-
setTypeDescriptionRegistrationObserver
default PersistenceTypeDictionary setTypeDescriptionRegistrationObserver(PersistenceTypeDefinitionRegistrationObserver observer)- Specified by:
setTypeDescriptionRegistrationObserverin interfacePersistenceTypeDictionary
-
getTypeDescriptionRegistrationObserver
- Specified by:
getTypeDescriptionRegistrationObserverin interfacePersistenceTypeDictionary
-
New
-