Interface TypeManager

All Known Implementing Classes:
DefaultTypeManager

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

    Modifier and Type
    Method
    Description
    io.ebean.core.type.ScalarType<?>
    dbArrayType(Class<?> type, Type genericType, boolean nullable)
    Return the ScalarType used to handle DB ARRAY.
    io.ebean.core.type.ScalarType<?>
    dbJsonType(DeployBeanProperty prop, int dbType, int dbLength)
    Return the ScalarType used to handle JSON content.
    io.ebean.core.type.ScalarType<?>
    Return the ScalarType used to handle HSTORE (Mapinvalid input: '<'String,String>).
    io.ebean.core.type.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).
    Return the Geometry type binder if provided.
    io.ebean.core.type.ScalarType<?>
    type(int jdbcType)
    Return the ScalarType for a given jdbc type.
    io.ebean.core.type.ScalarType<?>
    type(Class<?> type)
    Return the ScalarType for a given logical type.
    io.ebean.core.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.
    io.ebean.core.type.ScalarType<?>
    type(Type propertyType, Class<?> type)
    Find and return the ScalarType taking into account the property type with generics.
    io.ebean.core.type.ScalarType<?>
    type(String cast)
    Return the scalar type for the given logical type.
  • Method Details

    • type

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

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

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

      io.ebean.core.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

      io.ebean.core.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

      io.ebean.core.type.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

      io.ebean.core.type.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

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

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

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