- All Known Implementing Classes:
DefaultTypeManager
public interface TypeManager
Convert an Object to the required type.
-
Method Summary
Modifier and TypeMethodDescriptionScalarType<?> dbArrayType(Class<?> type, Type genericType, boolean nullable) Return the ScalarType used to handle DB ARRAY.ScalarType<?> dbJsonType(DeployBeanProperty prop, int dbType, int dbLength) Return the ScalarType used to handle JSON content.ScalarType<?> Return the ScalarType used to handle HSTORE (Mapinvalid input: '<'String,String>).ScalarType<?> 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.ScalarType<?> type(int jdbcType) Return the ScalarType for a given jdbc type.ScalarType<?> Return the ScalarType for a given logical type.ScalarType<?> For java.util.Date and java.util.Calendar additionally pass the jdbc type that you would like the ScalarType to map to.ScalarType<?> Find and return the ScalarType taking into account the property type with generics.ScalarType<?> Return the scalar type for the given logical type.
-
Method Details
-
type
Return the scalar type for the given logical type. -
type
Return the ScalarType for a given jdbc type.- Parameters:
jdbcType- as per java.sql.Types
-
type
Return the ScalarType for a given logical type. -
type
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
Find and return the ScalarType taking into account the property type with generics.For example Array based ScalarType for types like
List<String>. -
enumType
Create a ScalarType for an Enum using a mapping (rather than JPA Ordinal or String which has limitations). -
dbJsonType
Return the ScalarType used to handle JSON content.Note that type expected to be JsonNode or Map.
-
dbArrayType
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.
-