Top Description Methods
org.h2.engine

public Interface CastDataProvider

Known Direct Implementers
org.h2.engine.Database, org.h2.engine.Session, org.h2.jdbc.JdbcConnection
Imports
org.h2.api.JavaObjectSerializer, org.h2.util.TimeZoneProvider, org.h2.value.ValueTimestampTimeZone

Provides information for type casts and comparison operations.

Method Summary

Modifier and TypeMethod and Description
public ValueTimestampTimeZone

Returns:

the current timestamp for CURRENT_TIMESTAMP(9)
currentTimestamp
()

Returns the current timestamp with maximum resolution.

public TimeZoneProvider

Returns:

the current time zone
currentTimeZone
()

Returns the current time zone.

public JavaObjectSerializer

Returns:

the custom Java object serializer, or null
getJavaObjectSerializer
()

Returns the custom Java object serializer, or null.

public Mode

Returns:

the database mode
getMode
()

Returns the database mode.

public boolean

Returns:

are ENUM values 0-based
zeroBasedEnums
()

Returns are ENUM values 0-based.

Method Detail

currentTimestampback to summary
public ValueTimestampTimeZone currentTimestamp()

Returns the current timestamp with maximum resolution. The value must be the same within a transaction or within execution of a command.

Returns:ValueTimestampTimeZone

the current timestamp for CURRENT_TIMESTAMP(9)

currentTimeZoneback to summary
public TimeZoneProvider currentTimeZone()

Returns the current time zone.

Returns:TimeZoneProvider

the current time zone

getJavaObjectSerializerback to summary
public JavaObjectSerializer getJavaObjectSerializer()

Returns the custom Java object serializer, or null.

Returns:JavaObjectSerializer

the custom Java object serializer, or null

getModeback to summary
public Mode getMode()

Returns the database mode.

Returns:Mode

the database mode

zeroBasedEnumsback to summary
public boolean zeroBasedEnums()

Returns are ENUM values 0-based.

Returns:boolean

are ENUM values 0-based