Package io.jmix.data.impl.dbms
Class PostgresqlDbTypeConverter
java.lang.Object
io.jmix.data.impl.dbms.PostgresqlDbTypeConverter
- All Implemented Interfaces:
DbTypeConverter
@Component("postgresqlDbTypeConverter")
public class PostgresqlDbTypeConverter
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
-
PostgresqlDbTypeConverter
public PostgresqlDbTypeConverter()
-
-
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
-