Interface PersistenceTypeDictionaryView
-
- All Superinterfaces:
PersistenceTypeDictionary
- All Known Implementing Classes:
PersistenceTypeDictionaryView.Default
public interface PersistenceTypeDictionaryView extends PersistenceTypeDictionary
A read-only ("view") type of aPersistenceTypeDictionarywhere 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 classPersistenceTypeDictionaryView.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 Detail
-
allTypeDefinitions
XGettingTable<Long,PersistenceTypeDefinition> allTypeDefinitions()
- Specified by:
allTypeDefinitionsin interfacePersistenceTypeDictionary
-
typeLineages
XGettingTable<String,? extends PersistenceTypeLineageView> typeLineages()
- Specified by:
typeLineagesin interfacePersistenceTypeDictionary
-
lookupTypeLineage
PersistenceTypeLineageView lookupTypeLineage(Class<?> type)
- Specified by:
lookupTypeLineagein interfacePersistenceTypeDictionary
-
lookupTypeLineage
PersistenceTypeLineageView lookupTypeLineage(String typeName)
- Specified by:
lookupTypeLineagein interfacePersistenceTypeDictionary
-
view
default PersistenceTypeDictionaryView view()
- Specified by:
viewin interfacePersistenceTypeDictionary
-
ensureTypeLineage
default PersistenceTypeLineage ensureTypeLineage(Class<?> type)
- Specified by:
ensureTypeLineagein interfacePersistenceTypeDictionary
-
registerTypeDefinition
default boolean registerTypeDefinition(PersistenceTypeDefinition typeDefinition)
- Specified by:
registerTypeDefinitionin interfacePersistenceTypeDictionary
-
registerTypeDefinitions
default boolean registerTypeDefinitions(Iterable<? extends PersistenceTypeDefinition> typeDefinitions)
- Specified by:
registerTypeDefinitionsin interfacePersistenceTypeDictionary
-
registerRuntimeTypeDefinition
default boolean registerRuntimeTypeDefinition(PersistenceTypeDefinition typeDefinition)
- 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
default PersistenceTypeDefinitionRegistrationObserver getTypeDescriptionRegistrationObserver()
- Specified by:
getTypeDescriptionRegistrationObserverin interfacePersistenceTypeDictionary
-
New
static PersistenceTypeDictionaryView New(PersistenceTypeDictionary typeDictionary)
-
-