- All Known Implementing Classes:
TypeSystem.NoNativeTypes
public interface TypeSystem
This interface describes a type system with a set of native type a driver can handle.
- Since:
- 3.2
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn empty set of native types. -
Method Summary
Modifier and TypeMethodDescriptiongetMappedToNativeTypeAdapter(Class<?> clazz) getNativeToMappedTypeAdapter(Class<?> clazz) default booleansupportsAsNativeType(Class<?> clazz) True if values of the given class are supported natively.
-
Method Details
-
supportsAsNativeType
True if values of the given class are supported natively. See the Cypher type system for reference.- Parameters:
clazz- The class of an object that is to stored natively- Returns:
- True if the driver can store an object of the given class natively
- See Also:
-
AbstractConfigurableDriver.DEFAULT_SUPPORTED_TYPES
-
getNativeToMappedTypeAdapter
- Parameters:
clazz-- Returns:
- An adapter function that can map native objects of the given class to a mapped type
-
getMappedToNativeTypeAdapter
- Parameters:
clazz-- Returns:
- An adapter function that can mapped objects of the given class to a native type
-