Interface TypeSystem

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
  • Method Details

    • supportsAsNativeType

      default boolean supportsAsNativeType(Class<?> clazz)
      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

      default Function<Object,Object> getNativeToMappedTypeAdapter(Class<?> clazz)
      Parameters:
      clazz -
      Returns:
      An adapter function that can map native objects of the given class to a mapped type
    • getMappedToNativeTypeAdapter

      default Function<Object,Object> getMappedToNativeTypeAdapter(Class<?> clazz)
      Parameters:
      clazz -
      Returns:
      An adapter function that can mapped objects of the given class to a native type