Package io.jmix.data.impl.dbms
Class MysqlDbTypeConverter
java.lang.Object
io.jmix.data.impl.dbms.MysqlDbTypeConverter
- All Implemented Interfaces:
DbTypeConverter
@Component("mysqlDbTypeConverter")
public class MysqlDbTypeConverter
extends Object
implements DbTypeConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJavaObject
(ResultSet resultSet, int columnIndex) Convert a JDBC ResultSet column value to a value appropriate for an entity attribute.getSqlObject
(Object value) Convert an entity attribute value to a value appropriate for a JDBC parameter.int
getSqlType
(Class<?> javaClass) Get a JDBC type corresponding to an entity attribute type.Provides information aboutjmix.data.dbmsType
andjmix.data.dbmsVersion
this bean designed for.
-
Constructor Details
-
MysqlDbTypeConverter
public MysqlDbTypeConverter()
-
-
Method Details
-
getJavaObject
Description copied from interface:DbTypeConverter
Convert a JDBC ResultSet column value to a value appropriate for an entity attribute.- Specified by:
getJavaObject
in interfaceDbTypeConverter
- Parameters:
resultSet
- JDBC ResultSetcolumnIndex
- ResultSet column number, starting from 1- Returns:
- corresponding value for an entity attribute
-
getSqlObject
Description copied from interface:DbTypeConverter
Convert an entity attribute value to a value appropriate for a JDBC parameter.- Specified by:
getSqlObject
in interfaceDbTypeConverter
- Parameters:
value
- an entity attribute value- Returns:
- corresponding value for a JDBC parameter
-
getSqlType
Description copied from interface:DbTypeConverter
Get a JDBC type corresponding to an entity attribute type.- Specified by:
getSqlType
in interfaceDbTypeConverter
- Parameters:
javaClass
- entity attribute type- Returns:
- corresponding JDBC type
- See Also:
-
getTypeAndVersion
Description copied from interface:DbTypeConverter
Provides information aboutjmix.data.dbmsType
andjmix.data.dbmsVersion
this bean designed for. Version can be empty.- Specified by:
getTypeAndVersion
in interfaceDbTypeConverter
-