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