| 程序包 | 说明 |
|---|---|
| org.h2.engine |
Contains high level classes of the database and classes that don't fit in another sub-package.
|
| org.h2.expression |
Expressions include mathematical operations, simple values, and others.
|
| org.h2.expression.condition |
Condition expressions.
|
| org.h2.expression.function |
Functions.
|
| org.h2.jmx |
Implementation of the Java Management Extension (JMX) features.
|
| org.h2.mode |
Utility classes for compatibility with other database, for example MySQL.
|
| 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.schema |
Schema implementation and objects that are stored in a schema (for example, sequences and constants).
|
| org.h2.security.auth |
Authentication classes.
|
| org.h2.table |
Classes related to a table and table meta data.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Database |
DbObject.database
The database.
|
protected Database |
DbObject.database
The database.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Database |
DbObject.getDatabase()
Get the database.
|
Database |
SessionLocal.getDatabase() |
Database |
SessionLocal.getDatabase() |
Database |
DbObject.getDatabase()
Get the database.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static User |
UserBuilder.buildUser(AuthenticationInfo authenticationInfo,
Database database,
boolean persistent)
Build the database user starting from authentication informations.
|
static User |
UserBuilder.buildUser(AuthenticationInfo authenticationInfo,
Database database,
boolean persistent)
Build the database user starting from authentication informations.
|
| 构造器和说明 |
|---|
Comment(Database database,
int id,
DbObject obj) |
Comment(Database database,
int id,
DbObject obj) |
DbObject(Database db,
int objectId,
String name,
int traceModuleId)
Initialize some attributes of this object.
|
DbObject(Database db,
int objectId,
String name,
int traceModuleId)
Initialize some attributes of this object.
|
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
DbObject grantedObject) |
Right(Database db,
int id,
RightOwner grantee,
int grantedRight,
DbObject grantedObject) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
Right(Database db,
int id,
RightOwner grantee,
Role grantedRole) |
RightOwner(Database database,
int id,
String name,
int traceModuleId) |
RightOwner(Database database,
int id,
String name,
int traceModuleId) |
Role(Database database,
int id,
String roleName,
boolean system) |
Role(Database database,
int id,
String roleName,
boolean system) |
SessionLocal(Database database,
User user,
int id) |
SessionLocal(Database database,
User user,
int id) |
Setting(Database database,
int id,
String settingName) |
Setting(Database database,
int id,
String settingName) |
User(Database database,
int id,
String userName,
boolean systemUser) |
User(Database database,
int id,
String userName,
boolean systemUser) |
| 构造器和说明 |
|---|
ExpressionColumn(Database database,
Column column)
Creates a new column reference for metadata of queries; should not be
used as normal expression.
|
ExpressionColumn(Database database,
Column column)
Creates a new column reference for metadata of queries; should not be
used as normal expression.
|
ExpressionColumn(Database database,
String schemaName,
String tableAlias)
Creates a new instance of column reference for
_ROWID_ column as
normal expression. |
ExpressionColumn(Database database,
String schemaName,
String tableAlias)
Creates a new instance of column reference for
_ROWID_ column as
normal expression. |
ExpressionColumn(Database database,
String schemaName,
String tableAlias,
String columnName)
Creates a new instance of column reference for regular columns as normal
expression.
|
ExpressionColumn(Database database,
String schemaName,
String tableAlias,
String columnName)
Creates a new instance of column reference for regular columns as normal
expression.
|
ExpressionColumn(Database database,
String schemaName,
String tableAlias,
String columnName,
boolean quotedName)
Creates a new instance of column reference for regular columns as normal
expression.
|
ExpressionColumn(Database database,
String schemaName,
String tableAlias,
String columnName,
boolean quotedName)
Creates a new instance of column reference for regular columns as normal
expression.
|
| 构造器和说明 |
|---|
CompareLike(Database db,
Expression left,
boolean not,
boolean whenOperand,
Expression right,
Expression escape,
CompareLike.LikeType likeType) |
CompareLike(Database db,
Expression left,
boolean not,
boolean whenOperand,
Expression right,
Expression escape,
CompareLike.LikeType likeType) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
BuiltinFunctions.isBuiltinFunction(Database database,
String upperName)
Returns whether specified function is a non-keyword built-in function.
|
static boolean |
BuiltinFunctions.isBuiltinFunction(Database database,
String upperName)
Returns whether specified function is a non-keyword built-in function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
DatabaseInfo.registerMBean(ConnectionInfo connectionInfo,
Database database)
Registers an MBean for the database.
|
static void |
DatabaseInfo.registerMBean(ConnectionInfo connectionInfo,
Database database)
Registers an MBean for the database.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Expression |
ModeFunction.getCompatibilityDateTimeValueFunction(Database database,
String name,
int scale)
Get an instance of the given function without parentheses for this
database.
|
static Expression |
ModeFunction.getCompatibilityDateTimeValueFunction(Database database,
String name,
int scale)
Get an instance of the given function without parentheses for this
database.
|
static ModeFunction |
ModeFunction.getFunction(Database database,
String name)
Get an instance of the given function for this database.
|
static ModeFunction |
ModeFunction.getFunction(Database database,
String name)
Get an instance of the given function for this database.
|
| 构造器和说明 |
|---|
PgCatalogSchema(Database database,
User owner)
Creates new instance of
pg_catalog schema. |
PgCatalogSchema(Database database,
User owner)
Creates new instance of
pg_catalog schema. |
| 限定符和类型 | 方法和说明 |
|---|---|
RowDataType |
RowDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaDataType,
Database database) |
DataType<?> |
ValueDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaType,
Database database) |
DataType<?> |
ValueDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaType,
Database database) |
RowDataType |
RowDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaDataType,
Database database) |
static ResultExternal |
MVTempResult.of(Database database,
Expression[] expressions,
boolean distinct,
int[] distinctIndexes,
int visibleColumnCount,
int resultColumnCount,
SortOrder sort)
Creates MVStore-based temporary result.
|
static ResultExternal |
MVTempResult.of(Database database,
Expression[] expressions,
boolean distinct,
int[] distinctIndexes,
int visibleColumnCount,
int resultColumnCount,
SortOrder sort)
Creates MVStore-based temporary result.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RowDataType |
RowDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaDataType,
Database database) |
DataType<?> |
ValueDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaType,
Database database) |
DataType<?> |
ValueDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaType,
Database database) |
RowDataType |
RowDataType.Factory.create(ByteBuffer buff,
MetaType<Database> metaDataType,
Database database) |
void |
RowDataType.save(WriteBuffer buff,
MetaType<Database> metaType) |
void |
ValueDataType.save(WriteBuffer buff,
MetaType<Database> metaType) |
void |
ValueDataType.save(WriteBuffer buff,
MetaType<Database> metaType) |
void |
RowDataType.save(WriteBuffer buff,
MetaType<Database> metaType) |
| 构造器和说明 |
|---|
LobStorageMap(Database database) |
LobStorageMap(Database database) |
MVPrimaryIndex(Database db,
MVTable table,
int id,
IndexColumn[] columns,
IndexType indexType) |
MVPrimaryIndex(Database db,
MVTable table,
int id,
IndexColumn[] columns,
IndexType indexType) |
MVSecondaryIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
MVSecondaryIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
MVSpatialIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType)
Constructor.
|
MVSpatialIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType)
Constructor.
|
Store(Database db,
byte[] key)
Creates the store.
|
Store(Database db,
byte[] key)
Creates the store.
|
ValueDataType(Database database,
int[] sortTypes) |
ValueDataType(Database database,
int[] sortTypes) |
| 限定符和类型 | 方法和说明 |
|---|---|
static int[] |
SortOrder.addNullOrdering(Database database,
int[] sortTypes)
Add explicit
SortOrder.NULLS_FIRST or SortOrder.NULLS_LAST where they
aren't already specified. |
static int[] |
SortOrder.addNullOrdering(Database database,
int[] sortTypes)
Add explicit
SortOrder.NULLS_FIRST or SortOrder.NULLS_LAST where they
aren't already specified. |
| 构造器和说明 |
|---|
InformationSchema(Database database,
User owner)
Creates new instance of information schema.
|
InformationSchema(Database database,
User owner)
Creates new instance of information schema.
|
MetaSchema(Database database,
int id,
String schemaName,
User owner)
Creates a new instance of meta data schema.
|
MetaSchema(Database database,
int id,
String schemaName,
User owner)
Creates a new instance of meta data schema.
|
Schema(Database database,
int id,
String schemaName,
RightOwner owner,
boolean system)
Create a new schema object.
|
Schema(Database database,
int id,
String schemaName,
RightOwner owner,
boolean system)
Create a new schema object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
User |
Authenticator.authenticate(AuthenticationInfo authenticationInfo,
Database database)
Perform user authentication.
|
User |
DefaultAuthenticator.authenticate(AuthenticationInfo authenticationInfo,
Database database) |
User |
DefaultAuthenticator.authenticate(AuthenticationInfo authenticationInfo,
Database database) |
User |
Authenticator.authenticate(AuthenticationInfo authenticationInfo,
Database database)
Perform user authentication.
|
void |
Authenticator.init(Database database)
Initialize the authenticator.
|
void |
DefaultAuthenticator.init(Database database)
Initializes the authenticator.
|
void |
DefaultAuthenticator.init(Database database)
Initializes the authenticator.
|
void |
Authenticator.init(Database database)
Initialize the authenticator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
TableView.clearIndexCaches(Database database)
Clear the cached indexes for all sessions.
|
static void |
TableView.clearIndexCaches(Database database)
Clear the cached indexes for all sessions.
|
static Table |
TableView.createShadowTableForRecursiveTableExpression(boolean isTemporary,
SessionLocal targetSession,
String cteViewName,
Schema schema,
List<Column> columns,
Database db)
Create a table for a recursive query.
|
static Table |
TableView.createShadowTableForRecursiveTableExpression(boolean isTemporary,
SessionLocal targetSession,
String cteViewName,
Schema schema,
List<Column> columns,
Database db)
Create a table for a recursive query.
|
static TableView |
TableView.createTableViewMaybeRecursive(Schema schema,
int id,
String name,
String querySQL,
ArrayList<Parameter> parameters,
Column[] columnTemplates,
SessionLocal session,
boolean literalsChecked,
boolean isTableExpression,
boolean isTemporary,
Database db)
Create a view.
|
static TableView |
TableView.createTableViewMaybeRecursive(Schema schema,
int id,
String name,
String querySQL,
ArrayList<Parameter> parameters,
Column[] columnTemplates,
SessionLocal session,
boolean literalsChecked,
boolean isTableExpression,
boolean isTemporary,
Database db)
Create a view.
|
| 构造器和说明 |
|---|
DualTable(Database database)
Create a new range with the given start and end expressions.
|
DualTable(Database database)
Create a new range with the given start and end expressions.
|
Copyright © 2022. All rights reserved.