| 程序包 | 说明 |
|---|---|
| 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.command.query |
Contains queries.
|
| org.h2.constraint |
Database constraints such as check constraints, unique constraints, and referential constraints.
|
| org.h2.expression |
Expressions include mathematical operations, simple values, and others.
|
| org.h2.expression.function |
Functions.
|
| org.h2.expression.function.table |
Table value functions.
|
| org.h2.index |
Various table index implementations, as well as cursors to navigate in an index.
|
| 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.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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
ArrayList<Column> |
CreateTableData.columns
The column list.
|
ArrayList<Column> |
CreateTableData.columns
The column list.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ArrayList<Column> |
CreateTable.getColumns() |
ArrayList<Column> |
CreateTable.getColumns() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AlterTableAlterColumn.addColumn(Column column) |
abstract void |
CommandWithColumns.addColumn(Column column)
Add a column to this table.
|
void |
CreateTable.addColumn(Column column) |
void |
CreateTable.addColumn(Column column) |
abstract void |
CommandWithColumns.addColumn(Column column)
Add a column to this table.
|
void |
AlterTableAlterColumn.addColumn(Column column) |
void |
AlterSequence.setColumn(Column column,
Boolean always)
Set the column
|
void |
AlterSequence.setColumn(Column column,
Boolean always)
Set the column
|
void |
AlterTableAlterColumn.setNewColumn(Column newColumn) |
void |
AlterTableAlterColumn.setNewColumn(Column newColumn) |
void |
AlterTableAlterColumn.setOldColumn(Column oldColumn) |
void |
AlterTableAlterColumn.setOldColumn(Column oldColumn) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
CommandWithColumns.changePrimaryKeysToNotNull(ArrayList<Column> columns)
For the given list of columns, disable "nullable" for those columns that
are primary key columns.
|
protected void |
CommandWithColumns.changePrimaryKeysToNotNull(ArrayList<Column> columns)
For the given list of columns, disable "nullable" for those columns that
are primary key columns.
|
static void |
AlterDomain.forAllDependencies(SessionLocal session,
Domain domain,
BiPredicate<Domain,Column> columnProcessor,
BiPredicate<Domain,Domain> domainProcessor,
boolean recompileExpressions)
Processes all columns and domains that use the specified domain.
|
static void |
AlterDomain.forAllDependencies(SessionLocal session,
Domain domain,
BiPredicate<Domain,Column> columnProcessor,
BiPredicate<Domain,Domain> domainProcessor,
boolean recompileExpressions)
Processes all columns and domains that use the specified domain.
|
protected ArrayList<Sequence> |
CommandWithColumns.generateSequences(ArrayList<Column> columns,
boolean temporary)
For the given list of columns, create sequences for identity
columns (if needed), and then get the list of all sequences of the
columns.
|
protected ArrayList<Sequence> |
CommandWithColumns.generateSequences(ArrayList<Column> columns,
boolean temporary)
For the given list of columns, create sequences for identity
columns (if needed), and then get the list of all sequences of the
columns.
|
void |
AlterTableAlterColumn.setColumnsToRemove(ArrayList<Column> columnsToRemove) |
void |
AlterTableAlterColumn.setColumnsToRemove(ArrayList<Column> columnsToRemove) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Insert.addAssignmentForDuplicate(Column column,
Expression expression)
Keep a collection of the columns to pass to update if a duplicate key
happens, for MySQL-style INSERT ...
|
void |
Insert.addAssignmentForDuplicate(Column column,
Expression expression)
Keep a collection of the columns to pass to update if a duplicate key
happens, for MySQL-style INSERT ...
|
void |
SetClauseList.addSingle(Column column,
Expression expression)
Add a single column.
|
void |
SetClauseList.addSingle(Column column,
Expression expression)
Add a single column.
|
void |
Insert.setColumns(Column[] columns) |
void |
Merge.setColumns(Column[] columns) |
void |
Merge.setColumns(Column[] columns) |
void |
Insert.setColumns(Column[] columns) |
void |
Merge.setKeys(Column[] keys) |
void |
Merge.setKeys(Column[] keys) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SetClauseList.addMultiple(ArrayList<Column> columns,
Expression expression)
Add multiple columns.
|
void |
SetClauseList.addMultiple(ArrayList<Column> columns,
Expression expression)
Add multiple columns.
|
| 构造器和说明 |
|---|
WhenNotMatched(Column[] columns,
Boolean overridingSystem,
Expression[] values) |
WhenNotMatched(Column[] columns,
Boolean overridingSystem,
Expression[] values) |
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
SelectListColumnResolver.findColumn(String name) |
Column |
SelectListColumnResolver.findColumn(String name) |
Column[] |
SelectListColumnResolver.getColumns() |
Column[] |
SelectListColumnResolver.getColumns() |
| 限定符和类型 | 方法和说明 |
|---|---|
ArrayList<Column> |
AllColumnsForPlan.get(Table table)
Used by index to calculate the cost of a scan.
|
ArrayList<Column> |
AllColumnsForPlan.get(Table table)
Used by index to calculate the cost of a scan.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AllColumnsForPlan.add(Column newCol)
Called by ExpressionVisitor.
|
void |
AllColumnsForPlan.add(Column newCol)
Called by ExpressionVisitor.
|
Value |
SelectListColumnResolver.getValue(Column column) |
Value |
SelectListColumnResolver.getValue(Column column) |
static void |
TableValueConstructor.getVisibleResult(SessionLocal session,
ResultTarget result,
Column[] columns,
ArrayList<ArrayList<Expression>> rows)
Appends visible columns of all rows to the specified result.
|
static void |
TableValueConstructor.getVisibleResult(SessionLocal session,
ResultTarget result,
Column[] columns,
ArrayList<ArrayList<Expression>> rows)
Appends visible columns of all rows to the specified result.
|
Expression |
SelectListColumnResolver.optimize(ExpressionColumn expressionColumn,
Column column) |
Expression |
SelectListColumnResolver.optimize(ExpressionColumn expressionColumn,
Column column) |
Table |
Query.toTable(String alias,
Column[] columnTemplates,
ArrayList<Parameter> parameters,
boolean forCreateView,
Query topQuery)
Converts this query to a table or a view.
|
Table |
TableValueConstructor.toTable(String alias,
Column[] columnTemplates,
ArrayList<Parameter> parameters,
boolean forCreateView,
Query topQuery) |
Table |
TableValueConstructor.toTable(String alias,
Column[] columnTemplates,
ArrayList<Parameter> parameters,
boolean forCreateView,
Query topQuery) |
Table |
Query.toTable(String alias,
Column[] columnTemplates,
ArrayList<Parameter> parameters,
boolean forCreateView,
Query topQuery)
Converts this query to a table or a view.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
DomainColumnResolver.findColumn(String name) |
Column |
DomainColumnResolver.findColumn(String name) |
Column[] |
DomainColumnResolver.getColumns() |
Column[] |
DomainColumnResolver.getColumns() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract HashSet<Column> |
Constraint.getReferencedColumns(Table table)
Get all referenced columns.
|
HashSet<Column> |
ConstraintCheck.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintDomain.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintReferential.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintUnique.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintUnique.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintReferential.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintDomain.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintCheck.getReferencedColumns(Table table) |
abstract HashSet<Column> |
Constraint.getReferencedColumns(Table table)
Get all referenced columns.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Value |
DomainColumnResolver.getValue(Column col) |
Value |
DomainColumnResolver.getValue(Column col) |
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
ExpressionColumn.getColumn() |
Column |
ExpressionColumn.getColumn() |
| 限定符和类型 | 方法和说明 |
|---|---|
HashMap<Column,ExpressionColumn> |
Wildcard.mapExceptColumns()
Returns map of excluded table columns to expression columns and validates
that all columns are resolved and not duplicated.
|
HashMap<Column,ExpressionColumn> |
Wildcard.mapExceptColumns()
Returns map of excluded table columns to expression columns and validates
that all columns are resolved and not duplicated.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Parameter.setColumn(Column column) |
void |
Parameter.setColumn(Column column) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExpressionVisitor |
ExpressionVisitor.getColumnsVisitor(HashSet<Column> columns,
Table table)
Create a new visitor to get all referenced columns.
|
static ExpressionVisitor |
ExpressionVisitor.getColumnsVisitor(HashSet<Column> columns,
Table table)
Create a new visitor to get all referenced columns.
|
| 构造器和说明 |
|---|
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.
|
| 构造器和说明 |
|---|
CastSpecification(Expression arg,
Column column) |
CastSpecification(Expression arg,
Column column) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ArrayTableFunction.setColumns(ArrayList<Column> columns) |
void |
ArrayTableFunction.setColumns(ArrayList<Column> columns) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Column[] |
Index.columns
Table columns used in this index.
|
protected Column[] |
Index.columns
Table columns used in this index.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
IndexCondition.getColumn()
Get the referenced column.
|
Column |
IndexCondition.getColumn()
Get the referenced column.
|
Column[] |
Index.getColumns()
Get the indexed columns.
|
Column[] |
Index.getColumns()
Get the indexed columns.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Index.getColumnIndex(Column col)
Get the index of a column in the list of index columns
|
int |
MetaIndex.getColumnIndex(Column col) |
int |
MetaIndex.getColumnIndex(Column col) |
int |
Index.getColumnIndex(Column col)
Get the index of a column in the list of index columns
|
boolean |
Index.isFirstColumn(Column column)
Check if the given column is the first for this index
|
boolean |
MetaIndex.isFirstColumn(Column column) |
boolean |
MetaIndex.isFirstColumn(Column column) |
boolean |
Index.isFirstColumn(Column column)
Check if the given column is the first for this index
|
| 构造器和说明 |
|---|
OnDuplicateKeyValues(Column column,
Update update) |
OnDuplicateKeyValues(Column column,
Update update) |
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
MVTable.getRowIdColumn() |
Column |
MVTable.getRowIdColumn() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
MVDelegateIndex.getColumnIndex(Column col) |
int |
MVPrimaryIndex.getColumnIndex(Column col) |
int |
MVPrimaryIndex.getColumnIndex(Column col) |
int |
MVDelegateIndex.getColumnIndex(Column col) |
static long |
MVSpatialIndex.getCostRangeIndex(int[] masks,
Column[] columns)
Compute spatial index cost
|
static long |
MVSpatialIndex.getCostRangeIndex(int[] masks,
Column[] columns)
Compute spatial index cost
|
boolean |
MVDelegateIndex.isFirstColumn(Column column) |
boolean |
MVPrimaryIndex.isFirstColumn(Column column) |
boolean |
MVPrimaryIndex.isFirstColumn(Column column) |
boolean |
MVDelegateIndex.isFirstColumn(Column column) |
| 限定符和类型 | 方法和说明 |
|---|---|
Column |
SortOrder.getColumn(int index,
TableFilter filter)
Get the column for the given table filter, if the sort column is for this
filter.
|
Column |
SortOrder.getColumn(int index,
TableFilter filter)
Get the column for the given table filter, if the sort column is for this
filter.
|
| 限定符和类型 | 字段和说明 |
|---|---|
Column |
IndexColumn.column
The column, or null if not set.
|
Column |
IndexColumn.column
The column, or null if not set.
|
protected Column[] |
Table.columns
The columns of this table.
|
protected Column[] |
Table.columns
The columns of this table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Column |
MetaTable.column(String name,
TypeInfo type)
Creates a column with the specified name and data type.
|
protected Column |
MetaTable.column(String name,
TypeInfo type)
Creates a column with the specified name and data type.
|
Column |
ColumnResolver.findColumn(String name)
Get the column with the specified name.
|
Column |
Table.findColumn(String columnName)
Get the column with the given name if it exists.
|
Column |
TableFilter.findColumn(String name) |
Column |
TableFilter.findColumn(String name) |
Column |
Table.findColumn(String columnName)
Get the column with the given name if it exists.
|
Column |
ColumnResolver.findColumn(String name)
Get the column with the specified name.
|
Column |
Column.getClone() |
Column |
Column.getClone() |
Column |
Table.getColumn(int index)
Get the column at the given index.
|
Column |
Table.getColumn(int index)
Get the column at the given index.
|
Column |
Table.getColumn(String columnName)
Get the column with the given name.
|
Column |
Table.getColumn(String columnName)
Get the column with the given name.
|
Column |
Table.getColumn(String columnName,
boolean ifExists)
Get the column with the given name.
|
Column |
TableFilter.getColumn(String columnName,
boolean ifExists)
Get the column with the given name.
|
Column |
TableFilter.getColumn(String columnName,
boolean ifExists)
Get the column with the given name.
|
Column |
Table.getColumn(String columnName,
boolean ifExists)
Get the column with the given name.
|
Column[] |
ColumnResolver.getColumns()
Get the column list.
|
Column[] |
Table.getColumns() |
Column[] |
TableFilter.getColumns() |
Column[] |
TableFilter.getColumns() |
Column[] |
Table.getColumns() |
Column[] |
ColumnResolver.getColumns()
Get the column list.
|
Column |
Table.getIdentityColumn()
Returns first identity column, or
null. |
Column |
Table.getIdentityColumn()
Returns first identity column, or
null. |
default Column |
ColumnResolver.getRowIdColumn()
Get the row id pseudo column, if there is one.
|
Column |
Table.getRowIdColumn()
Get the row id column if this table has one.
|
Column |
TableFilter.getRowIdColumn() |
Column |
TableFilter.getRowIdColumn() |
Column |
Table.getRowIdColumn()
Get the row id column if this table has one.
|
default Column |
ColumnResolver.getRowIdColumn()
Get the row id pseudo column, if there is one.
|
default Column[] |
ColumnResolver.getSystemColumns()
Get the list of system columns, if any.
|
Column[] |
TableFilter.getSystemColumns()
Get the system columns that this table understands.
|
Column[] |
TableFilter.getSystemColumns()
Get the system columns that this table understands.
|
default Column[] |
ColumnResolver.getSystemColumns()
Get the list of system columns, if any.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Column> |
QueryExpressionTable.createQueryColumnTemplateList(String[] cols,
Query theQuery,
String[] querySQLOutput)
Creates a list of column templates from a query (usually from WITH query,
but could be any query)
|
static List<Column> |
QueryExpressionTable.createQueryColumnTemplateList(String[] cols,
Query theQuery,
String[] querySQLOutput)
Creates a list of column templates from a query (usually from WITH query,
but could be any query)
|
LinkedHashMap<Column,Column> |
TableFilter.getCommonJoinColumns()
Returns common join columns map.
|
LinkedHashMap<Column,Column> |
TableFilter.getCommonJoinColumns()
Returns common join columns map.
|
LinkedHashMap<Column,Column> |
TableFilter.getCommonJoinColumns()
Returns common join columns map.
|
LinkedHashMap<Column,Column> |
TableFilter.getCommonJoinColumns()
Returns common join columns map.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TableFilter.addCommonJoinColumns(Column leftColumn,
Column replacementColumn,
TableFilter replacementFilter)
Add a column to the common join column list for a left table filter.
|
void |
TableFilter.addCommonJoinColumns(Column leftColumn,
Column replacementColumn,
TableFilter replacementFilter)
Add a column to the common join column list for a left table filter.
|
void |
TableFilter.addCommonJoinColumnToExclude(Column columnToExclude)
Add an excluded column to the common join column list.
|
void |
TableFilter.addCommonJoinColumnToExclude(Column columnToExclude)
Add an excluded column to the common join column list.
|
void |
Column.copy(Column source)
Copy the data of the source column into the current column.
|
void |
Column.copy(Column source)
Copy the data of the source column into the current column.
|
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.
|
default String |
ColumnResolver.getColumnName(Column column)
Get the name of the specified column.
|
String |
TableFilter.getColumnName(Column column) |
String |
TableFilter.getColumnName(Column column) |
default String |
ColumnResolver.getColumnName(Column column)
Get the name of the specified column.
|
Index |
Table.getIndexForColumn(Column column,
boolean needGetFirstOrLast,
boolean needFindNext)
Get the index that has the given column as the first element.
|
Index |
Table.getIndexForColumn(Column column,
boolean needGetFirstOrLast,
boolean needFindNext)
Get the index that has the given column as the first element.
|
Value |
ColumnResolver.getValue(Column column)
Get the value for the given column.
|
Value |
TableFilter.getValue(Column column) |
Value |
TableFilter.getValue(Column column) |
Value |
ColumnResolver.getValue(Column column)
Get the value for the given column.
|
boolean |
TableFilter.isCommonJoinColumnToExclude(Column c)
Check if the given column is an excluded common join column.
|
boolean |
TableFilter.isCommonJoinColumnToExclude(Column c)
Check if the given column is an excluded common join column.
|
boolean |
Column.isWideningConversion(Column newColumn)
Check whether the new column is of the same type and not more restricted
than this column.
|
boolean |
Column.isWideningConversion(Column newColumn)
Check whether the new column is of the same type and not more restricted
than this column.
|
default Expression |
ColumnResolver.optimize(ExpressionColumn expressionColumn,
Column column)
Get the expression that represents this column.
|
default Expression |
ColumnResolver.optimize(ExpressionColumn expressionColumn,
Column column)
Get the expression that represents this column.
|
void |
Table.renameColumn(Column column,
String newName)
Rename a column of this table.
|
void |
Table.renameColumn(Column column,
String newName)
Rename a column of this table.
|
void |
TableView.replace(String querySQL,
Column[] newColumnTemplates,
SessionLocal session,
boolean recursive,
boolean force,
boolean literalsChecked)
Try to replace the SQL statement of the view and re-compile this and all
dependent views.
|
void |
TableView.replace(String querySQL,
Column[] newColumnTemplates,
SessionLocal session,
boolean recursive,
boolean force,
boolean literalsChecked)
Try to replace the SQL statement of the view and re-compile this and all
dependent views.
|
protected void |
Table.setColumns(Column[] columns) |
protected void |
Table.setColumns(Column[] columns) |
static IndexColumn[] |
IndexColumn.wrap(Column[] columns)
Create an array of index columns from a list of columns.
|
static IndexColumn[] |
IndexColumn.wrap(Column[] columns)
Create an array of index columns from a list of columns.
|
static StringBuilder |
Column.writeColumns(StringBuilder builder,
Column[] columns,
int sqlFlags)
Appends the specified columns to the specified builder.
|
static StringBuilder |
Column.writeColumns(StringBuilder builder,
Column[] columns,
int sqlFlags)
Appends the specified columns to the specified builder.
|
static StringBuilder |
Column.writeColumns(StringBuilder builder,
Column[] columns,
String separator,
String suffix,
int sqlFlags)
Appends the specified columns to the specified builder.
|
static StringBuilder |
Column.writeColumns(StringBuilder builder,
Column[] columns,
String separator,
String suffix,
int sqlFlags)
Appends the specified columns to the specified builder.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
Table.dropMultipleColumnsConstraintsAndIndexes(SessionLocal session,
ArrayList<Column> columnsToDrop)
Check that these columns are not referenced by a multi-column constraint
or multi-column index.
|
void |
Table.dropMultipleColumnsConstraintsAndIndexes(SessionLocal session,
ArrayList<Column> columnsToDrop)
Check that these columns are not referenced by a multi-column constraint
or multi-column index.
|
| 构造器和说明 |
|---|
DerivedTable(SessionLocal session,
String name,
Column[] columnTemplates,
Query query,
Query topQuery)
Create a derived table out of the given query.
|
DerivedTable(SessionLocal session,
String name,
Column[] columnTemplates,
Query query,
Query topQuery)
Create a derived table out of the given query.
|
IndexColumn(Column column)
Creates a new instance with the specified column.
|
IndexColumn(Column column)
Creates a new instance with the specified column.
|
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) |
Copyright © 2022. All rights reserved.