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(DeployProperty 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.Class<? extends Annotation> Returns the Json Marker annotation (e.g.io.ebean.core.type.ScalarType<?> type(int jdbcType) Return the ScalarType for a given jdbc type.io.ebean.core.type.ScalarType<?> type(DeployProperty property) Find and return the ScalarType taking into account the property type with generics.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<?> 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
Find and return the ScalarType taking into account the property type with generics.For example Array based ScalarType for types like
List<String>. -
enumType
-
jsonMarkerAnnotation
Class<? extends Annotation> jsonMarkerAnnotation()Returns the Json Marker annotation (e.g. JacksonAnnotation) -
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.
-