Package org.gridgain.cache.store.jdbc
Class JdbcTypesDefaultTransformer
java.lang.Object
org.gridgain.cache.store.jdbc.JdbcTypesDefaultTransformer
- All Implemented Interfaces:
JdbcTypesTransformer
Default implementation of
JdbcTypesTransformer.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JdbcTypesDefaultTransformerSingleton instance to use.Fields inherited from interface org.gridgain.cache.store.jdbc.JdbcTypesTransformer
NUMERIC_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectgetColumnValue(ResultSet rs, int colIdx, Class<?> type) Retrieves the value of the designated column in the current row of thisResultSetobject and will convert to the requested Java data type.
-
Field Details
-
INSTANCE
Singleton instance to use.
-
-
Constructor Details
-
JdbcTypesDefaultTransformer
public JdbcTypesDefaultTransformer()
-
-
Method Details
-
getColumnValue
@Nullable public @Nullable Object getColumnValue(ResultSet rs, int colIdx, Class<?> type) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject and will convert to the requested Java data type.- Specified by:
getColumnValuein interfaceJdbcTypesTransformer- Parameters:
rs- Result set.colIdx- Column index in result set.type- Class representing the Java data type to convert the designated column to.- Returns:
- Value in column.
- Throws:
SQLException- If a database access error occurs or this method is called.
-