Top Description Fields Constructors Methods
org.h2.value

public final Class ValueToObjectConverter2

extends TraceObject
Class Inheritance
Static Imports
org.h2.value.ValueToObjectConverter.GEOMETRY_CLASS

Data type conversion methods between values and Java objects to use on the server side on H2 only.

Field Summary

Inherited from org.h2.message.TraceObject:
ARRAYBLOBCALLABLE_STATEMENTCLOBCONNECTIONDATA_SOURCEDATABASE_META_DATAPARAMETER_META_DATAPREPARED_STATEMENTRESULT_SETRESULT_SET_META_DATASAVEPOINTSQLXMLSTATEMENTtraceXA_DATA_SOURCEXID

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TypeInfo

Returns:

the value type
classToType
(Class<?>
the Java class
clazz
)

Get the type information for the given Java class.

public static Value

Returns:

the value
readValue
(Session
the session
session
,
ResultSet
the result set
rs
,
int
the column index (1-based)
columnIndex
,
int
the data type
type
)

Read a value from the given result set.

private static Value
readValueOther(Session session, ResultSet rs, int columnIndex, int type)

Inherited from org.h2.message.TraceObject:
debugCodedebugCodeAssigndebugCodeCalldebugCodeCalldebugCodeCallgetNextIdgetTraceIdgetTraceObjectNameisDebugEnabledisInfoEnabledlogAndConvertquotequoteArrayquoteBigDecimalquoteBytesquoteDatequoteIntArrayquoteMapquoteTimequoteTimestampsetTraceunsupported

Constructor Detail

ValueToObjectConverter2back to summary
private ValueToObjectConverter2()

Method Detail

classToTypeback to summary
public static TypeInfo classToType(Class<?> clazz)

Get the type information for the given Java class.

Parameters
clazz:Class<?>

the Java class

Returns:TypeInfo

the value type

readValueback to summary
public static Value readValue(Session session, ResultSet rs, int columnIndex, int type)

Read a value from the given result set.

Parameters
session:Session

the session

rs:ResultSet

the result set

columnIndex:int

the column index (1-based)

type:int

the data type

Returns:Value

the value

readValueOtherback to summary
private static Value readValueOther(Session session, ResultSet rs, int columnIndex, int type) throws SQLException