Interface TypeManager

All Known Implementing Classes:
DefaultTypeManager

public interface TypeManager
Convert an Object to the required type.
  • Method Summary

    Modifier and Type
    Method
    Description
    dbArrayType(Class<?> type, Type genericType, boolean nullable)
    Return the ScalarType used to handle DB ARRAY.
    dbJsonType(DeployBeanProperty prop, int dbType, int dbLength)
    Return the ScalarType used to handle JSON content.
    Return the ScalarType used to handle HSTORE (Mapinvalid input: '<'String,String>).
    enumType(Class<? extends Enum<?>> enumType, jakarta.persistence.EnumType enumerated)
    Create a ScalarType for an Enum using a mapping (rather than JPA Ordinal or String which has limitations).
    Return the Geometry type binder if provided.
    type(int jdbcType)
    Return the ScalarType for a given jdbc type.
    type(Class<?> type)
    Return the ScalarType for a given logical type.
    type(Class<?> type, int jdbcType)
    For java.util.Date and java.util.Calendar additionally pass the jdbc type that you would like the ScalarType to map to.
    type(Type propertyType, Class<?> type)
    Find and return the ScalarType taking into account the property type with generics.
    type(String cast)
    Return the scalar type for the given logical type.
  • Method Details

    • type

      ScalarType<?> type(String cast)
      Return the scalar type for the given logical type.
    • type

      ScalarType<?> type(int jdbcType)
      Return the ScalarType for a given jdbc type.
      Parameters:
      jdbcType - as per java.sql.Types
    • type

      ScalarType<?> type(Class<?> type)
      Return the ScalarType for a given logical type.
    • type

      ScalarType<?> type(Class<?> type, int jdbcType)
      For java.util.Date and java.util.Calendar additionally pass the jdbc type that you would like the ScalarType to map to. This is because these types can map to different java.sql.Types depending on the property.
    • type

      ScalarType<?> type(Type propertyType, Class<?> type)
      Find and return the ScalarType taking into account the property type with generics.

      For example Array based ScalarType for types like List<String>.

    • enumType

      ScalarType<?> enumType(Class<? extends Enum<?>> enumType, jakarta.persistence.EnumType enumerated)
      Create a ScalarType for an Enum using a mapping (rather than JPA Ordinal or String which has limitations).
    • dbJsonType

      ScalarType<?> dbJsonType(DeployBeanProperty prop, int dbType, int dbLength)
      Return the ScalarType used to handle JSON content.

      Note that type expected to be JsonNode or Map.

    • dbArrayType

      ScalarType<?> dbArrayType(Class<?> type, Type genericType, boolean nullable)
      Return the ScalarType used to handle DB ARRAY.
    • dbMapType

      ScalarType<?> dbMapType()
      Return the ScalarType used to handle HSTORE (Mapinvalid input: '<'String,String>).
    • geoTypeBinder

      GeoTypeBinder geoTypeBinder()
      Return the Geometry type binder if provided.