| 程序包 | 说明 |
|---|---|
| org.h2.command |
This package contains the parser and the base classes for prepared SQL statements.
|
| org.h2.command.ddl |
Contains DDL (data definition language) and related SQL statements.
|
| org.h2.command.dml |
Contains DML (data manipulation language) and related SQL statements.
|
| org.h2.constraint |
Database constraints such as check constraints, unique constraints, and referential constraints.
|
| org.h2.engine |
Contains high level classes of the database and classes that don't fit in another sub-package.
|
| org.h2.mode |
Utility classes for compatibility with other database, for example MySQL.
|
| org.h2.schema |
Schema implementation and objects that are stored in a schema (for example, sequences and constants).
|
| org.h2.table |
Classes related to a table and table meta data.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AlterTableAddConstraint |
Parser.newPrimaryKeyConstraintCommand(SessionLocal session,
Schema schema,
String tableName,
Column column)
Create a new alter table command.
|
static AlterTableAddConstraint |
Parser.newPrimaryKeyConstraintCommand(SessionLocal session,
Schema schema,
String tableName,
Column column)
Create a new alter table command.
|
| 限定符和类型 | 字段和说明 |
|---|---|
Schema |
CreateSynonymData.schema
The schema.
|
Schema |
CreateTableData.schema
The schema.
|
Schema |
CreateTableData.schema
The schema.
|
Schema |
CreateSynonymData.schema
The schema.
|
Schema |
CreateSynonymData.synonymForSchema
Schema synonymFor is located in.
|
Schema |
CreateSynonymData.synonymForSchema
Schema synonymFor is located in.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Schema |
SchemaCommand.getSchema()
Get the schema
|
protected Schema |
SchemaCommand.getSchema()
Get the schema
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DropTable.addTable(Schema schema,
String tableName)
Add a table to drop.
|
void |
DropTable.addTable(Schema schema,
String tableName)
Add a table to drop.
|
void |
AlterIndexRename.setOldSchema(Schema old) |
void |
AlterSchemaRename.setOldSchema(Schema schema) |
void |
AlterSchemaRename.setOldSchema(Schema schema) |
void |
AlterIndexRename.setOldSchema(Schema old) |
void |
AlterTableAddConstraint.setRefTableName(Schema refSchema,
String ref)
Set the referenced table.
|
void |
AlterTableAddConstraint.setRefTableName(Schema refSchema,
String ref)
Set the referenced table.
|
void |
GrantRevoke.setSchema(Schema schema)
Set the specified schema
|
void |
GrantRevoke.setSchema(Schema schema)
Set the specified schema
|
void |
CreateSynonym.setSynonymForSchema(Schema synonymForSchema) |
void |
CreateSynonym.setSynonymForSchema(Schema synonymForSchema) |
| 构造器和说明 |
|---|
AlterTableSet(SessionLocal session,
Schema schema,
int type,
boolean value) |
AlterTableSet(SessionLocal session,
Schema schema,
int type,
boolean value) |
| 构造器和说明 |
|---|
ConstraintCheck(Schema schema,
int id,
String name,
Table table) |
ConstraintCheck(Schema schema,
int id,
String name,
Table table) |
ConstraintDomain(Schema schema,
int id,
String name,
Domain domain) |
ConstraintDomain(Schema schema,
int id,
String name,
Domain domain) |
ConstraintReferential(Schema schema,
int id,
String name,
Table table) |
ConstraintReferential(Schema schema,
int id,
String name,
Table table) |
ConstraintUnique(Schema schema,
int id,
String name,
Table table,
boolean primaryKey) |
ConstraintUnique(Schema schema,
int id,
String name,
Table table,
boolean primaryKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
Schema |
Database.findSchema(String schemaName)
Get the schema if it exists, or null if not.
|
Schema |
Database.findSchema(String schemaName)
Get the schema if it exists, or null if not.
|
Schema |
Database.getMainSchema()
Returns main schema (usually PUBLIC).
|
Schema |
Database.getMainSchema()
Returns main schema (usually PUBLIC).
|
Schema |
Database.getSchema(String schemaName)
Get the schema.
|
Schema |
Database.getSchema(String schemaName)
Get the schema.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Schema> |
Database.getAllSchemas() |
Collection<Schema> |
Database.getAllSchemas() |
Collection<Schema> |
Database.getAllSchemasNoMeta() |
Collection<Schema> |
Database.getAllSchemasNoMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
User.checkSchemaOwner(Schema schema)
Checks if this user has schema owner rights for the specified schema.
|
void |
User.checkSchemaOwner(Schema schema)
Checks if this user has schema owner rights for the specified schema.
|
void |
SessionLocal.setCurrentSchema(Schema schema) |
void |
SessionLocal.setCurrentSchema(Schema schema) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PgCatalogSchema
pg_catalog schema. |
| 构造器和说明 |
|---|
PgCatalogTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
PgCatalogTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
InformationSchema
Information schema.
|
class |
MetaSchema
Meta data schema.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Schema |
SchemaObject.getSchema()
Get the schema in which this object is defined
|
Schema |
SchemaObject.getSchema()
Get the schema in which this object is defined
|
| 限定符和类型 | 方法和说明 |
|---|---|
static FunctionAlias |
FunctionAlias.newInstance(Schema schema,
int id,
String name,
String javaClassMethod,
boolean force)
Create a new alias based on a method name.
|
static FunctionAlias |
FunctionAlias.newInstance(Schema schema,
int id,
String name,
String javaClassMethod,
boolean force)
Create a new alias based on a method name.
|
static FunctionAlias |
FunctionAlias.newInstanceFromSource(Schema schema,
int id,
String name,
String source,
boolean force)
Create a new alias based on source code.
|
static FunctionAlias |
FunctionAlias.newInstanceFromSource(Schema schema,
int id,
String name,
String source,
boolean force)
Create a new alias based on source code.
|
| 构造器和说明 |
|---|
Constant(Schema schema,
int id,
String name) |
Constant(Schema schema,
int id,
String name) |
Domain(Schema schema,
int id,
String name) |
Domain(Schema schema,
int id,
String name) |
SchemaObject(Schema newSchema,
int id,
String name,
int traceModuleId)
Initialize some attributes of this object.
|
SchemaObject(Schema newSchema,
int id,
String name,
int traceModuleId)
Initialize some attributes of this object.
|
Sequence(SessionLocal session,
Schema schema,
int id,
String name,
SequenceOptions options,
boolean belongsToTable)
Creates a new sequence.
|
Sequence(SessionLocal session,
Schema schema,
int id,
String name,
SequenceOptions options,
boolean belongsToTable)
Creates a new sequence.
|
TriggerObject(Schema schema,
int id,
String name,
Table table) |
TriggerObject(Schema schema,
int id,
String name,
Table table) |
UserAggregate(Schema schema,
int id,
String name,
String className,
boolean force) |
UserAggregate(Schema schema,
int id,
String name,
String className,
boolean force) |
| 限定符和类型 | 方法和说明 |
|---|---|
Schema |
TableSynonym.getSynonymForSchema() |
Schema |
TableSynonym.getSynonymForSchema() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
Column.initializeSequence(SessionLocal session,
Schema schema,
int id,
boolean temporary)
Initialize the sequence for this column.
|
void |
Column.initializeSequence(SessionLocal session,
Schema schema,
int id,
boolean temporary)
Initialize the sequence for this column.
|
| 构造器和说明 |
|---|
DataChangeDeltaTable(Schema schema,
SessionLocal session,
DataChangeStatement statement,
DataChangeDeltaTable.ResultOption resultOption) |
DataChangeDeltaTable(Schema schema,
SessionLocal session,
DataChangeStatement statement,
DataChangeDeltaTable.ResultOption resultOption) |
FunctionTable(Schema schema,
SessionLocal session,
TableFunction function) |
FunctionTable(Schema schema,
SessionLocal session,
TableFunction function) |
InformationSchemaTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
InformationSchemaTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
InformationSchemaTableLegacy(Schema schema,
int id,
int type)
Create a new metadata table.
|
InformationSchemaTableLegacy(Schema schema,
int id,
int type)
Create a new metadata table.
|
MetaTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
MetaTable(Schema schema,
int id,
int type)
Create a new metadata table.
|
RangeTable(Schema schema,
Expression min,
Expression max)
Create a new range with the given start and end expressions.
|
RangeTable(Schema schema,
Expression min,
Expression max)
Create a new range with the given start and end expressions.
|
RangeTable(Schema schema,
Expression min,
Expression max,
Expression step) |
RangeTable(Schema schema,
Expression min,
Expression max,
Expression step) |
Table(Schema schema,
int id,
String name,
boolean persistIndexes,
boolean persistData) |
Table(Schema schema,
int id,
String name,
boolean persistIndexes,
boolean persistData) |
TableLink(Schema schema,
int id,
String name,
String driver,
String url,
String user,
String password,
String originalSchema,
String originalTable,
boolean emitUpdates,
boolean force) |
TableLink(Schema schema,
int id,
String name,
String driver,
String url,
String user,
String password,
String originalSchema,
String originalTable,
boolean emitUpdates,
boolean force) |
TableValueConstructorTable(Schema schema,
SessionLocal session,
Column[] columns,
ArrayList<ArrayList<Expression>> rows) |
TableValueConstructorTable(Schema schema,
SessionLocal session,
Column[] columns,
ArrayList<ArrayList<Expression>> rows) |
TableView(Schema schema,
int id,
String name,
String querySQL,
ArrayList<Parameter> params,
Column[] columnTemplates,
SessionLocal session,
boolean allowRecursive,
boolean literalsChecked,
boolean isTableExpression,
boolean isTemporary) |
TableView(Schema schema,
int id,
String name,
String querySQL,
ArrayList<Parameter> params,
Column[] columnTemplates,
SessionLocal session,
boolean allowRecursive,
boolean literalsChecked,
boolean isTableExpression,
boolean isTemporary) |
VirtualConstructedTable(Schema schema,
int id,
String name) |
VirtualConstructedTable(Schema schema,
int id,
String name) |
VirtualTable(Schema schema,
int id,
String name) |
VirtualTable(Schema schema,
int id,
String name) |
Copyright © 2022. All rights reserved.