Uses of Interface
org.h2.engine.CastDataProvider
-
Packages that use CastDataProvider Package Description org.h2.command This package contains the parser and the base classes for prepared SQL statements.org.h2.engine Contains high level classes of the database and classes that don't fit in another sub-package.org.h2.jdbc Implementation of the JDBC API (package java.sql).org.h2.jdbcx Implementation of the extended JDBC API (package javax.sql).org.h2.mvstore.db Helper classes to use the MVStore in the H2 database.org.h2.result Implementation of row and internal result sets.org.h2.table Classes related to a table and table meta data.org.h2.util Internal utility classes.org.h2.value Data type and value implementations. -
-
Uses of CastDataProvider in org.h2.command
Fields in org.h2.command declared as CastDataProvider Modifier and Type Field Description private CastDataProvider
Tokenizer. provider
Methods in org.h2.command with parameters of type CastDataProvider Modifier and Type Method Description private static int
Tokenizer. readHexNumber(java.lang.String sql, CastDataProvider provider, int tokenStart, int end, int i, java.util.ArrayList<Token> tokens)
(package private) Value
Token.BigintToken. value(CastDataProvider provider)
(package private) Value
Token.BinaryStringToken. value(CastDataProvider provider)
(package private) Value
Token.CharacterStringToken. value(CastDataProvider provider)
(package private) Value
Token.IntegerToken. value(CastDataProvider provider)
(package private) Value
Token. value(CastDataProvider provider)
(package private) Value
Token.ValueToken. value(CastDataProvider provider)
Constructors in org.h2.command with parameters of type CastDataProvider Constructor Description Tokenizer(CastDataProvider provider, boolean identifiersToUpper, boolean identifiersToLower, java.util.BitSet nonKeywords)
-
Uses of CastDataProvider in org.h2.engine
Classes in org.h2.engine that implement CastDataProvider Modifier and Type Class Description class
Database
There is one database object per open database.class
Session
A local or remote session.class
SessionLocal
A session represents an embedded database connection.class
SessionRemote
The client side part of a session when using the server mode. -
Uses of CastDataProvider in org.h2.jdbc
Classes in org.h2.jdbc that implement CastDataProvider Modifier and Type Class Description class
JdbcConnection
Represents a connection (session) to a database. -
Uses of CastDataProvider in org.h2.jdbcx
Classes in org.h2.jdbcx that implement CastDataProvider Modifier and Type Class Description (package private) class
JdbcXAConnection.PooledJdbcConnection
A pooled connection. -
Uses of CastDataProvider in org.h2.mvstore.db
Fields in org.h2.mvstore.db declared as CastDataProvider Modifier and Type Field Description (package private) CastDataProvider
ValueDataType. provider
Methods in org.h2.mvstore.db with parameters of type CastDataProvider Modifier and Type Method Description int
SpatialKey. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
Constructors in org.h2.mvstore.db with parameters of type CastDataProvider Constructor Description RowDataType(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, int columnCount, boolean storeKeys)
ValueDataType(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes)
-
Uses of CastDataProvider in org.h2.result
Methods in org.h2.result with parameters of type CastDataProvider Modifier and Type Method Description int
SearchRow. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
RowFactory
RowFactory. createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
Create a new row factory.RowFactory
RowFactory.DefaultRowFactory. createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, TypeInfo[] columnTypes, int columnCount, boolean storeKeys)
Create a new row factory.RowFactory
RowFactory.DefaultRowFactory. createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
-
Uses of CastDataProvider in org.h2.table
Methods in org.h2.table with parameters of type CastDataProvider Modifier and Type Method Description int
Table. compareValues(CastDataProvider provider, Value a, Value b)
Compare two values with the current comparison mode.Value
Column. convert(CastDataProvider provider, Value v)
Convert a value to this column's type without precision and scale checks. -
Uses of CastDataProvider in org.h2.util
Methods in org.h2.util with parameters of type CastDataProvider Modifier and Type Method Description static long[]
DateTimeUtils. dateAndTimeFromValue(Value value, CastDataProvider provider)
Extracts date value and nanos of day from the specified value.static ValueDate
LegacyDateTimeUtils. fromDate(CastDataProvider provider, java.util.TimeZone timeZone, java.sql.Date date)
Get or create a date value for the given date.static ValueTime
LegacyDateTimeUtils. fromTime(CastDataProvider provider, java.util.TimeZone timeZone, java.sql.Time time)
Get or create a time value for the given time.static ValueTimestamp
LegacyDateTimeUtils. fromTimestamp(CastDataProvider provider, long ms, int nanos)
Get or create a timestamp value for the given date/time in millis.static ValueTimestamp
LegacyDateTimeUtils. fromTimestamp(CastDataProvider provider, java.util.TimeZone timeZone, java.sql.Timestamp timestamp)
Get or create a timestamp value for the given timestamp.static long
LegacyDateTimeUtils. getMillis(CastDataProvider provider, java.util.TimeZone tz, long dateValue, long timeNanos)
Calculate the milliseconds since 1970-01-01 (UTC) for the given date and time (in the specified timezone).static int
LegacyDateTimeUtils. getTimeZoneOffsetMillis(CastDataProvider provider, long ms)
Returns local time zone offset for a specified timestamp.static Value
LegacyDateTimeUtils. legacyObjectToValue(CastDataProvider session, java.lang.Object x)
Convert a legacy Java object to a value.static Value
DateTimeUtils. parseTimestamp(java.lang.String s, CastDataProvider provider, boolean withTimeZone)
Parses timestamp value from the specified string.static ValueTimeTimeZone
DateTimeUtils. parseTimeWithTimeZone(java.lang.String s, CastDataProvider provider)
Parses TIME WITH TIME ZONE value from the specified string.static java.sql.Date
LegacyDateTimeUtils. toDate(CastDataProvider provider, java.util.TimeZone timeZone, Value value)
Get the date value converted to the specified time zone.static java.sql.Time
LegacyDateTimeUtils. toTime(CastDataProvider provider, java.util.TimeZone timeZone, Value value)
Get the time value converted to the specified time zone.static java.sql.Timestamp
LegacyDateTimeUtils. toTimestamp(CastDataProvider provider, java.util.TimeZone timeZone, Value value)
Get the timestamp value converted to the specified time zone.static java.time.Instant
JSR310Utils. valueToInstant(Value value, CastDataProvider provider)
Converts a value to a Instant.static <T> T
LegacyDateTimeUtils. valueToLegacyType(java.lang.Class<T> type, Value value, CastDataProvider provider)
Converts the specified value to an object of the specified legacy type.static java.time.LocalDate
JSR310Utils. valueToLocalDate(Value value, CastDataProvider provider)
Converts a value to a LocalDate.static java.time.LocalDateTime
JSR310Utils. valueToLocalDateTime(Value value, CastDataProvider provider)
Converts a value to a LocalDateTime.static java.time.LocalTime
JSR310Utils. valueToLocalTime(Value value, CastDataProvider provider)
Converts a value to a LocalTime.static java.time.OffsetDateTime
JSR310Utils. valueToOffsetDateTime(Value value, CastDataProvider provider)
Converts a value to a OffsetDateTime.static java.time.OffsetTime
JSR310Utils. valueToOffsetTime(Value value, CastDataProvider provider)
Converts a value to a OffsetTime.static java.time.ZonedDateTime
JSR310Utils. valueToZonedDateTime(Value value, CastDataProvider provider)
Converts a value to a ZonedDateTime. -
Uses of CastDataProvider in org.h2.value
Methods in org.h2.value with parameters of type CastDataProvider Modifier and Type Method Description Value
Value. castTo(TypeInfo targetType, CastDataProvider provider)
Cast a value to the specified type.int
Value. compareTo(Value v, CastDataProvider provider, CompareMode compareMode)
Compare this value against another value using the specified compare mode.private int
Value. compareToNotNullable(Value v, CastDataProvider provider, CompareMode compareMode)
abstract int
Value. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
Compare this value against another value given that the values are of the same data type.int
ValueArray. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueBigint. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueBlob. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueBoolean. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueBytesBase. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueChar. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueClob. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueDate. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueDecfloat. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueDouble. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueEnumBase. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueInteger. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueInterval. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueNull. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueNumeric. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueReal. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueRow. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueSmallint. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueStringBase. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
ValueTime. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueTimestamp. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueTimestampTimeZone. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueTimeTimeZone. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueTinyint. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueUuid. compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider)
int
ValueVarcharIgnoreCase. compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
int
Value. compareWithNull(Value v, boolean forEquality, CastDataProvider provider, CompareMode compareMode)
Compare this value against another value using the specified compare mode.int
ValueCollectionBase. compareWithNull(Value v, boolean forEquality, CastDataProvider provider, CompareMode compareMode)
Value
Value. convertForAssignTo(TypeInfo targetType, CastDataProvider provider, java.lang.Object column)
Cast a value to the specified type for assignment.Value
Value. convertTo(int targetType, CastDataProvider provider)
Convert a value to the specified type without taking scale and precision into account.Value
Value. convertTo(TypeInfo targetType, CastDataProvider provider)
Convert a value to the specified type without taking scale and precision into account.private Value
Value. convertTo(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
Convert a value to the specified type.Value
Value. convertTo(TypeInfo targetType, CastDataProvider provider, java.lang.Object column)
Convert a value to the specified type without taking scale and precision into account.ValueArray
Value. convertToAnyArray(CastDataProvider provider)
Convert this value to any ARRAY data type.private ValueArray
Value. convertToArray(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
private ValueChar
Value. convertToChar(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
ValueDate
Value. convertToDate(CastDataProvider provider)
Converts this value to a DATE value.ValueEnum
Value. convertToEnum(ExtTypeInfoEnum extTypeInfo, CastDataProvider provider)
Converts this value to an ENUM value.private ValueNumeric
Value. convertToNumeric(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
private Value
Value. convertToRow(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
private ValueTime
Value. convertToTime(TypeInfo targetType, CastDataProvider provider, int conversionMode)
private ValueTimestamp
Value. convertToTimestamp(TypeInfo targetType, CastDataProvider provider, int conversionMode)
private ValueTimestampTimeZone
Value. convertToTimestampTimeZone(TypeInfo targetType, CastDataProvider provider, int conversionMode)
private ValueTimeTimeZone
Value. convertToTimeTimeZone(TypeInfo targetType, CastDataProvider provider, int conversionMode)
private Value
Value. convertToVarchar(TypeInfo targetType, CastDataProvider provider, int conversionMode, java.lang.Object column)
static ValueArray
ValueArray. get(TypeInfo componentType, Value[] list, CastDataProvider provider)
Get or create a array value for the given value array.static ValueArray
ValueArray. get(Value[] list, CastDataProvider provider)
Get or create a array value for the given value array.static Value
ValueVarchar. get(java.lang.String s, CastDataProvider provider)
Get or create a VARCHAR value for the given string.private long
Value. getLocalTimeNanos(CastDataProvider provider)
ValueEnum
ExtTypeInfoEnum. getValue(int ordinal, CastDataProvider provider)
Get ValueEnum instance for an ordinal.ValueEnum
ExtTypeInfoEnum. getValue(java.lang.String label, CastDataProvider provider)
Get ValueEnum instance for a label string.private ValueEnum
ExtTypeInfoEnum. getValueOrNull(java.lang.String label, CastDataProvider provider)
static ValueTimestamp
ValueTimestamp. parse(java.lang.String s, CastDataProvider provider)
Parse a string to a ValueTimestamp, using the givenCastDataProvider
.static ValueTimestampTimeZone
ValueTimestampTimeZone. parse(java.lang.String s, CastDataProvider provider)
Parse a string to a ValueTimestamp.Constructors in org.h2.value with parameters of type CastDataProvider Constructor Description ValueArray(TypeInfo componentType, Value[] list, CastDataProvider provider)
-