DB_TYPE
- the JDBC type of the fieldJAVA_TYPE
- the java type of the fieldpublic interface SqlTypeMapperHelper<DB_TYPE,JAVA_TYPE>
TypeMapper
when a relational SQL database source is used. The method
is indended to be used by the generated entity managers.Modifier and Type | Method and Description |
---|---|
JAVA_TYPE |
apply(DB_TYPE dbValue)
Converts the specified value in JDBC form to the appropriate java type by
using the
TypeMapper contained in this helper. |
static <ENTITY,DB_TYPE,JAVA_TYPE> |
create(Project project,
Field<ENTITY> field,
Class<ENTITY> entityClass)
Creates a new
SqlTypeMapperHelper by using the default
implementation. |
JAVA_TYPE apply(DB_TYPE dbValue)
TypeMapper
contained in this helper.dbValue
- the database (JDBC) valuestatic <ENTITY,DB_TYPE,JAVA_TYPE> SqlTypeMapperHelper<DB_TYPE,JAVA_TYPE> create(Project project, Field<ENTITY> field, Class<ENTITY> entityClass)
SqlTypeMapperHelper
by using the default
implementation.ENTITY
- the entity typeDB_TYPE
- the value database (JDBC) typeJAVA_TYPE
- the expected value java typeproject
- the current project instancefield
- the field that this helper is mappingentityClass
- the class of the entity interfaceSqlTypeMapperHelper
Copyright © 2019 Speedment, Inc.. All rights reserved.