Interface TypeManager
- All Known Implementing Classes:
DefaultTypeManager
public interface TypeManager
Convert an Object to the required type.
-
Method Summary
Modifier and TypeMethodDescriptionio.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<?> 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<?> Return the ScalarType for a given logical type.io.ebean.core.type.ScalarType<?> 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<?> Find and return the ScalarType taking into account the property type with generics.io.ebean.core.type.ScalarType<?> Return the scalar type for the given logical type.
-
Method Details
-
type
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
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
-
enumType
-
dbJsonType
Return the ScalarType used to handle JSON content.Note that type expected to be JsonNode or Map.
-
dbArrayType
-
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.
-