| 程序包 | 说明 |
|---|---|
| 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.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.
|
| 限定符和类型 | 类和说明 |
|---|---|
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.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
JdbcConnection
Represents a connection (session) to a database.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
SpatialKey.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
SpatialKey.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
| 构造器和说明 |
|---|
RowDataType(CastDataProvider provider,
CompareMode compareMode,
DataHandler handler,
int[] sortTypes,
int[] indexes,
int columnCount,
boolean storeKeys) |
RowDataType(CastDataProvider provider,
CompareMode compareMode,
DataHandler handler,
int[] sortTypes,
int[] indexes,
int columnCount,
boolean storeKeys) |
ValueDataType(CastDataProvider provider,
CompareMode compareMode,
DataHandler handler,
int[] sortTypes) |
ValueDataType(CastDataProvider provider,
CompareMode compareMode,
DataHandler handler,
int[] sortTypes) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
SearchRow.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
SearchRow.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
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,
int[] sortTypes,
int[] indexes,
TypeInfo[] columnTypes,
int columnCount,
boolean storeKeys)
Create a new row factory.
|
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,
Typed[] columns,
IndexColumn[] indexColumns,
boolean storeKeys) |
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,
Typed[] columns,
IndexColumn[] indexColumns,
boolean storeKeys) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Table.compareValues(CastDataProvider provider,
Value a,
Value b)
Compare two values with the current comparison mode.
|
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.
|
Value |
Column.convert(CastDataProvider provider,
Value v)
Convert a value to this column's type without precision and scale checks.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static long[] |
DateTimeUtils.dateAndTimeFromValue(Value value,
CastDataProvider provider)
Extracts date value and nanos of day from the specified value.
|
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,
TimeZone timeZone,
Date date)
Get or create a date value for the given date.
|
static ValueDate |
LegacyDateTimeUtils.fromDate(CastDataProvider provider,
TimeZone timeZone,
Date date)
Get or create a date value for the given date.
|
static ValueTime |
LegacyDateTimeUtils.fromTime(CastDataProvider provider,
TimeZone timeZone,
Time time)
Get or create a time value for the given time.
|
static ValueTime |
LegacyDateTimeUtils.fromTime(CastDataProvider provider,
TimeZone timeZone,
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,
long ms,
int nanos)
Get or create a timestamp value for the given date/time in millis.
|
static ValueTimestamp |
LegacyDateTimeUtils.fromTimestamp(CastDataProvider provider,
TimeZone timeZone,
Timestamp timestamp)
Get or create a timestamp value for the given timestamp.
|
static ValueTimestamp |
LegacyDateTimeUtils.fromTimestamp(CastDataProvider provider,
TimeZone timeZone,
Timestamp timestamp)
Get or create a timestamp value for the given timestamp.
|
static long |
LegacyDateTimeUtils.getMillis(CastDataProvider provider,
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 long |
LegacyDateTimeUtils.getMillis(CastDataProvider provider,
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 int |
LegacyDateTimeUtils.getTimeZoneOffsetMillis(CastDataProvider provider,
long ms)
Returns local time zone offset for a specified timestamp.
|
static Value |
LegacyDateTimeUtils.legacyObjectToValue(CastDataProvider session,
Object x)
Convert a legacy Java object to a value.
|
static Value |
LegacyDateTimeUtils.legacyObjectToValue(CastDataProvider session,
Object x)
Convert a legacy Java object to a value.
|
static Value |
DateTimeUtils.parseTimestamp(String s,
CastDataProvider provider,
boolean withTimeZone)
Parses timestamp value from the specified string.
|
static Value |
DateTimeUtils.parseTimestamp(String s,
CastDataProvider provider,
boolean withTimeZone)
Parses timestamp value from the specified string.
|
static ValueTimeTimeZone |
DateTimeUtils.parseTimeWithTimeZone(String s,
CastDataProvider provider)
Parses TIME WITH TIME ZONE value from the specified string.
|
static ValueTimeTimeZone |
DateTimeUtils.parseTimeWithTimeZone(String s,
CastDataProvider provider)
Parses TIME WITH TIME ZONE value from the specified string.
|
static Date |
LegacyDateTimeUtils.toDate(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the date value converted to the specified time zone.
|
static Date |
LegacyDateTimeUtils.toDate(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the date value converted to the specified time zone.
|
static Time |
LegacyDateTimeUtils.toTime(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the time value converted to the specified time zone.
|
static Time |
LegacyDateTimeUtils.toTime(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the time value converted to the specified time zone.
|
static Timestamp |
LegacyDateTimeUtils.toTimestamp(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the timestamp value converted to the specified time zone.
|
static Timestamp |
LegacyDateTimeUtils.toTimestamp(CastDataProvider provider,
TimeZone timeZone,
Value value)
Get the timestamp value converted to the specified time zone.
|
static Instant |
JSR310Utils.valueToInstant(Value value,
CastDataProvider provider)
Converts a value to a Instant.
|
static Instant |
JSR310Utils.valueToInstant(Value value,
CastDataProvider provider)
Converts a value to a Instant.
|
static <T> T |
LegacyDateTimeUtils.valueToLegacyType(Class<T> type,
Value value,
CastDataProvider provider)
Converts the specified value to an object of the specified legacy type.
|
static <T> T |
LegacyDateTimeUtils.valueToLegacyType(Class<T> type,
Value value,
CastDataProvider provider)
Converts the specified value to an object of the specified legacy type.
|
static LocalDate |
JSR310Utils.valueToLocalDate(Value value,
CastDataProvider provider)
Converts a value to a LocalDate.
|
static LocalDate |
JSR310Utils.valueToLocalDate(Value value,
CastDataProvider provider)
Converts a value to a LocalDate.
|
static LocalDateTime |
JSR310Utils.valueToLocalDateTime(Value value,
CastDataProvider provider)
Converts a value to a LocalDateTime.
|
static LocalDateTime |
JSR310Utils.valueToLocalDateTime(Value value,
CastDataProvider provider)
Converts a value to a LocalDateTime.
|
static LocalTime |
JSR310Utils.valueToLocalTime(Value value,
CastDataProvider provider)
Converts a value to a LocalTime.
|
static LocalTime |
JSR310Utils.valueToLocalTime(Value value,
CastDataProvider provider)
Converts a value to a LocalTime.
|
static OffsetDateTime |
JSR310Utils.valueToOffsetDateTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetDateTime.
|
static OffsetDateTime |
JSR310Utils.valueToOffsetDateTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetDateTime.
|
static OffsetTime |
JSR310Utils.valueToOffsetTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetTime.
|
static OffsetTime |
JSR310Utils.valueToOffsetTime(Value value,
CastDataProvider provider)
Converts a value to a OffsetTime.
|
static ZonedDateTime |
JSR310Utils.valueToZonedDateTime(Value value,
CastDataProvider provider)
Converts a value to a ZonedDateTime.
|
static ZonedDateTime |
JSR310Utils.valueToZonedDateTime(Value value,
CastDataProvider provider)
Converts a value to a ZonedDateTime.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Value |
Value.castTo(TypeInfo targetType,
CastDataProvider provider)
Cast a value to the specified type.
|
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.
|
int |
Value.compareTo(Value v,
CastDataProvider provider,
CompareMode compareMode)
Compare this value against another value using the specified compare
mode.
|
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 |
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 |
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 |
ValueVarcharIgnoreCase.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueUuid.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueTinyint.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueTimeTimeZone.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueTimestampTimeZone.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueTimestamp.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueTime.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueSmallint.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueRow.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueReal.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueNumeric.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueNull.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueInterval.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueInteger.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueEnumBase.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueDouble.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueDecfloat.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueDate.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueClob.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueChar.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueBoolean.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueBlob.compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider) |
int |
ValueBigint.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
int |
ValueArray.compareTypeSafe(Value o,
CompareMode mode,
CastDataProvider provider) |
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 |
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) |
int |
ValueCollectionBase.compareWithNull(Value v,
boolean forEquality,
CastDataProvider provider,
CompareMode compareMode) |
int |
Value.compareWithNull(Value v,
boolean forEquality,
CastDataProvider provider,
CompareMode compareMode)
Compare this value against another value using the specified compare
mode.
|
Value |
Value.convertForAssignTo(TypeInfo targetType,
CastDataProvider provider,
Object column)
Cast a value to the specified type for assignment.
|
Value |
Value.convertForAssignTo(TypeInfo targetType,
CastDataProvider provider,
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(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.
|
Value |
Value.convertTo(TypeInfo targetType,
CastDataProvider provider)
Convert a value to the specified type without taking scale and precision
into account.
|
Value |
Value.convertTo(TypeInfo targetType,
CastDataProvider provider,
Object column)
Convert a value to the specified type without taking scale and precision
into account.
|
Value |
Value.convertTo(TypeInfo targetType,
CastDataProvider provider,
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.
|
ValueArray |
Value.convertToAnyArray(CastDataProvider provider)
Convert this value to any ARRAY data type.
|
ValueDate |
Value.convertToDate(CastDataProvider provider)
Converts this value to a DATE value.
|
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.
|
ValueEnum |
Value.convertToEnum(ExtTypeInfoEnum extTypeInfo,
CastDataProvider provider)
Converts this value to an ENUM value.
|
static Value |
ValueVarchar.get(String s,
CastDataProvider provider)
Get or create a VARCHAR value for the given string.
|
static Value |
ValueVarchar.get(String s,
CastDataProvider provider)
Get or create a VARCHAR value for the given string.
|
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(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 ValueArray |
ValueArray.get(Value[] list,
CastDataProvider provider)
Get or create a array value for the given value array.
|
ValueEnum |
ExtTypeInfoEnum.getValue(int ordinal,
CastDataProvider provider)
Get ValueEnum instance for an ordinal.
|
ValueEnum |
ExtTypeInfoEnum.getValue(int ordinal,
CastDataProvider provider)
Get ValueEnum instance for an ordinal.
|
ValueEnum |
ExtTypeInfoEnum.getValue(String label,
CastDataProvider provider)
Get ValueEnum instance for a label string.
|
ValueEnum |
ExtTypeInfoEnum.getValue(String label,
CastDataProvider provider)
Get ValueEnum instance for a label string.
|
static ValueTimestamp |
ValueTimestamp.parse(String s,
CastDataProvider provider)
Parse a string to a ValueTimestamp, using the given
CastDataProvider. |
static ValueTimestampTimeZone |
ValueTimestampTimeZone.parse(String s,
CastDataProvider provider)
Parse a string to a ValueTimestamp.
|
static ValueTimestampTimeZone |
ValueTimestampTimeZone.parse(String s,
CastDataProvider provider)
Parse a string to a ValueTimestamp.
|
static ValueTimestamp |
ValueTimestamp.parse(String s,
CastDataProvider provider)
Parse a string to a ValueTimestamp, using the given
CastDataProvider. |
Copyright © 2022. All rights reserved.