Class Persistence
java.lang.Object
one.microstream.persistence.types.Persistence
- Direct Known Subclasses:
- BinaryPersistence
public class Persistence extends Object
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPersistence.IdType
- 
Constructor SummaryConstructors Constructor Description Persistence()
- 
Method Summary
- 
Constructor Details- 
Persistencepublic Persistence()
 
- 
- 
Method Details- 
engineName
- 
objectIdLabel
- 
objectIdShortLabel
- 
objectIdTypeCentral architectural information method that always returnslong.class.- Returns:
- long.class
 
- 
createDefaultTypeLookup
- 
defaultStartTypeIdpublic static final long defaultStartTypeId()
- 
defaultStartConstantIdpublic static final long defaultStartConstantId()
- 
defaultStartObjectIdpublic static final long defaultStartObjectId()
- 
defaultBoundConstantIdpublic static final long defaultBoundConstantId()
- 
classTypeIdpublic static final long classTypeId()
- 
isNativeType
- 
getNativeTypeId
- 
registerJavaNatives
- 
registerJavaBasicTypes
- 
iterateJavaBasicTypes
- 
registerJavaConstants
- 
validateObjectId
- 
validateTypeId
- 
iterateReferencespublic static final void iterateReferences(PersistenceFunction iterator, Object[] array, int offset, int length)
- 
iterateReferences
- 
iterateReferencesIterablepublic static final void iterateReferencesIterable(PersistenceFunction iterator, Iterable<?> elements)
- 
iterateReferencesMap
- 
standardCharsetReasons for choosing UTF8 as the standard charset: 1.) It is independent from endianess. 2.) It is massively smaller due to most content containing almost only single-byte ASCII characters 3.) It is overall more commonly and widespread used and compatible than any specific format.
- 
defaultFilenameTypeDictionary
- 
unpersistableTypesTypes whose instances cannot be persisted. E.g.Unpersistable,Thread,ClassLoader, etc. Note that theClassinstances representing these types are very well persistable and will get empty type descriptions to assign type ids to them. Only their instances cannot be persisted.
- 
isPersistable
- 
isUnpersistable
- 
typeMismatchValidatorFailing
- 
typeMismatchValidatorNoOp
- 
defaultTypeEvaluatorPersistable
- 
isPersistableField
- 
defaultFieldEvaluatorPersistable
- 
defaultFieldEvaluatorPersister
- 
isPersisterField
- 
isHandleableEnumField
- 
defaultFieldEvaluatorEnum
- 
isHandleableCollectionField
- 
defaultFieldEvaluatorCollection
- 
defaultReferenceFieldEagerEvaluator
- 
resolveEnumeratedClassIdentifierSeparatedTypepublic static <T> Class<T> resolveEnumeratedClassIdentifierSeparatedType(String typeName, ClassLoader classLoader, String substituteClassIdentifierSeparator)
- 
resolveType
- 
resolveTypepublic static <T> Class<T> resolveType(String typeName, ClassLoader classLoader, String substituteClassIdentifierSeparator)
- 
tryResolveType
- 
deriveEnumRootIdentifier
- 
collectEnumConstants
- 
enumRootIdentifierStart
- 
parseEnumRootIdentifierTypeId
- 
isEnumRootIdentifier
- 
isPotentialEnumRootIdentifier
- 
defaultRootIdentifierDeprecated.
- 
customRootIdentifierDeprecated.
- 
rootIdentifier
- 
RefactoringMapping@Deprecated public static final PersistenceRefactoringMappingProvider RefactoringMapping(File refactoringsFile)Deprecated.replaced byRefactoringMapping(Path)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(Path refactoringsFile)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(String refactoringMappings)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(String refactoringMappings, char valueSeparator)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(String refactoringMappings, XCsvDataType dataType)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(String refactoringMappings, XCsvConfiguration configuration)
- 
RefactoringMappingpublic static final PersistenceRefactoringMappingProvider RefactoringMapping(XGettingSequence<KeyValue<String,String>> refactoringMappings)
- 
readRefactoringMappings@Deprecated public static XGettingSequence<KeyValue<String,String>> readRefactoringMappings(File file)Deprecated.replaced byreadRefactoringMappings(Path)
- 
readRefactoringMappings
- 
readRefactoringMappings
- 
readRefactoringMappings
- 
readRefactoringMappingspublic static XGettingSequence<KeyValue<String,String>> readRefactoringMappings(String string, char valueSeparator)
- 
readRefactoringMappingspublic static XGettingSequence<KeyValue<String,String>> readRefactoringMappings(String string, XCsvDataType dataType)
- 
readRefactoringMappingspublic static XGettingSequence<KeyValue<String,String>> readRefactoringMappings(String string, XCsvConfiguration configuration)
- 
parseRefactoringMappingspublic static XGettingSequence<KeyValue<String,String>> parseRefactoringMappings(StringTable stringTable)
- 
substituteClassIdentifierSeparatorPersistence-specific separator between a class name and a proper identifier that replaces unreliable class names (like "$1", "$2" etc.) by a reliably identifying substitute name.
- 
derivePersistentTypeName
- 
derivePersistentTypeName
- 
derivePersistentTypeNameEnum
- 
searchProvidedTypeHandlerpublic static <D, T> PersistenceTypeHandler<D,T> searchProvidedTypeHandler(Class<D> dataType, Class<T> entityType, Predicate<? super Method> selector) throws ReflectiveOperationExceptionSearches the methods of the passed entityType for a static method with arbitrary name and visibility, no arguments andPersistenceTypeHandleror a sub type of it as its return type.Which method to select is also determined by testing the returned PersistenceTypeHandlerinstance if it has the correctPersistenceTypeHandler.dataType()for the used persistence context and the correctPersistenceTypeHandler.type()for the given entity class.This mechanism is a convenience shortcut alternative to PersistenceFoundation.registerCustomTypeHandler(PersistenceTypeHandler).- Type Parameters:
- D-
- T-
- Parameters:
- dataType-
- entityType-
- Returns:
- Throws:
- ReflectiveOperationException
 
 
-