Package | Description |
---|---|
org.h2.api |
Contains interfaces for user-defined extensions, such as triggers and user-defined aggregate functions.
|
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.expression |
Expressions include mathematical operations, conditions, simple values, and functions.
|
org.h2.index |
Various table index implementations, as well as cursors to navigate in an index.
|
org.h2.mvstore.db |
Helper classes to use the MVStore in the H2 database.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Table |
TableEngine.createTable(CreateTableData data)
Create new table.
|
Modifier and Type | Method and Description |
---|---|
Table |
Parser.parseTableName(String sql)
Parse a SQL code snippet that represents a table name.
|
Modifier and Type | Method and Description |
---|---|
void |
GrantRevoke.addTable(Table table)
Add the specified table to the list of tables.
|
static void |
Analyze.analyzeTable(Session session,
Table table,
int sample,
boolean manual)
Analyze this table.
|
void |
Analyze.setTable(Table table) |
void |
TruncateTable.setTable(Table table) |
Modifier and Type | Method and Description |
---|---|
Table |
MergeUsing.getTargetTable() |
Table |
Merge.getTargetTable() |
Modifier and Type | Method and Description |
---|---|
HashSet<Table> |
SelectUnion.getTables() |
HashSet<Table> |
Select.getTables() |
abstract HashSet<Table> |
Query.getTables()
Get all tables that are involved in this query.
|
Modifier and Type | Method and Description |
---|---|
void |
Replace.setTable(Table table) |
void |
Insert.setTable(Table table) |
void |
MergeUsing.setTargetTable(Table targetTable) |
void |
Merge.setTargetTable(Table targetTable) |
Modifier and Type | Method and Description |
---|---|
void |
ScriptCommand.setTables(Collection<Table> tables) |
Modifier and Type | Field and Description |
---|---|
protected Table |
Constraint.table
The table for which this constraint is defined.
|
Modifier and Type | Method and Description |
---|---|
Table |
ConstraintReferential.getRefTable() |
Table |
Constraint.getRefTable() |
Table |
Constraint.getTable() |
Modifier and Type | Method and Description |
---|---|
void |
ConstraintUnique.checkRow(Session session,
Table t,
Row oldRow,
Row newRow) |
void |
ConstraintReferential.checkRow(Session session,
Table t,
Row oldRow,
Row newRow) |
void |
ConstraintCheck.checkRow(Session session,
Table t,
Row oldRow,
Row newRow) |
abstract void |
Constraint.checkRow(Session session,
Table t,
Row oldRow,
Row newRow)
Check if this row fulfils the constraint.
|
String |
ConstraintUnique.getCreateSQLForCopy(Table forTable,
String quotedName) |
String |
ConstraintReferential.getCreateSQLForCopy(Table forTable,
String quotedName)
Create the SQL statement of this object so a copy of the table can be
made.
|
String |
ConstraintCheck.getCreateSQLForCopy(Table forTable,
String quotedName) |
String |
ConstraintReferential.getCreateSQLForCopy(Table forTable,
Table forRefTable,
String quotedName,
boolean internalIndex)
Create the SQL statement of this object so a copy of the table can be
made.
|
HashSet<Column> |
ConstraintUnique.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintReferential.getReferencedColumns(Table table) |
HashSet<Column> |
ConstraintCheck.getReferencedColumns(Table table) |
abstract HashSet<Column> |
Constraint.getReferencedColumns(Table table)
Get all referenced columns.
|
void |
ConstraintReferential.setRefTable(Table refTable) |
Constructor and Description |
---|
ConstraintCheck(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) |
Modifier and Type | Method and Description |
---|---|
Table |
Session.findLocalTempTable(String name)
Get the local temporary table if one exists with that name, or null if
not.
|
Table |
Database.getDependentTable(SchemaObject obj,
Table except)
Get the first table that depends on this object.
|
Table |
Database.getFirstUserTable()
Get the first user defined table.
|
Table[] |
Session.getLocks() |
Table |
UndoLogRecord.getTable()
Get the table.
|
Table |
Session.getWaitForLock() |
Modifier and Type | Method and Description |
---|---|
ArrayList<Table> |
Database.getAllTablesAndViews(boolean includeMeta)
Get all tables and views.
|
ArrayList<Table> |
Session.getLocalTempTables() |
ArrayList<Table> |
Database.getTableOrViewByName(String name)
Get the tables with the given name, if any.
|
Modifier and Type | Method and Description |
---|---|
void |
Session.addLocalTempTable(Table table)
Add a local temporary table to this session.
|
void |
Session.addLock(Table table)
Add a lock for the given table.
|
void |
User.checkRight(Table table,
int rightMask)
Checks that this user has the given rights for this database object.
|
String |
UserDataType.getCreateSQLForCopy(Table table,
String quotedName) |
String |
UserAggregate.getCreateSQLForCopy(Table table,
String quotedName) |
String |
User.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Setting.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Role.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Right.getCreateSQLForCopy(Table table,
String quotedName) |
String |
FunctionAlias.getCreateSQLForCopy(Table table,
String quotedName) |
String |
DbObject.getCreateSQLForCopy(Table table,
String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
|
String |
Comment.getCreateSQLForCopy(Table table,
String quotedName) |
Table |
Database.getDependentTable(SchemaObject obj,
Table except)
Get the first table that depends on this object.
|
boolean |
User.hasRight(Table table,
int rightMask)
See if this user has the given rights for this database object.
|
void |
GeneratedKeys.initialize(Table table)
Initializes processing of the specified table.
|
void |
Session.log(Table table,
short operation,
Row row)
Add an undo log entry to this session.
|
void |
Session.markTableForAnalyze(Table table)
Mark that the given table needs to be analyzed on commit.
|
void |
Session.removeLocalTempTable(Table table)
Drop and remove the given local temporary table from this session.
|
void |
Session.setWaitForLock(Table waitForLock,
Thread waitForLockThread)
Set the table this session is waiting for, and the thread that is
waiting.
|
Modifier and Type | Method and Description |
---|---|
Table |
ExpressionVisitor.getTable()
Get the table.
|
Modifier and Type | Method and Description |
---|---|
static ExpressionVisitor |
ExpressionVisitor.getOptimizableVisitor(Table table)
Create a new visitor to check if all aggregates are for the given table.
|
Modifier and Type | Field and Description |
---|---|
protected Table |
BaseIndex.table |
Modifier and Type | Method and Description |
---|---|
Table |
MultiVersionIndex.getTable() |
Table |
Index.getTable()
Get the table on which this index is based.
|
Table |
BaseIndex.getTable() |
Modifier and Type | Method and Description |
---|---|
String |
MultiVersionIndex.getCreateSQLForCopy(Table forTable,
String quotedName) |
String |
BaseIndex.getCreateSQLForCopy(Table targetTable,
String quotedName) |
protected void |
BaseIndex.initBaseIndex(Table newTable,
int id,
String name,
IndexColumn[] newIndexColumns,
IndexType newIndexType)
Initialize the base index.
|
Constructor and Description |
---|
SpatialTreeIndex(Table table,
int id,
String indexName,
IndexColumn[] columns,
IndexType indexType,
boolean persistent,
boolean create,
Session session)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
MVTable
A table stored in a MVStore.
|
Modifier and Type | Method and Description |
---|---|
Table |
Schema.createTable(CreateTableData data)
Add a table to the schema.
|
Table |
Schema.findTableOrView(Session session,
String name)
Try to find a table or view with this name.
|
Table |
TriggerObject.getTable()
Get the table of this trigger.
|
Table |
Schema.getTableOrView(Session session,
String name)
Get the table or view with the given name.
|
Table |
Schema.getTableOrViewByName(String name)
Get the table with the given name, if any.
|
Table |
Schema.resolveTableOrView(Session session,
String name)
Try to find a table or view with this name.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Table> |
Schema.getAllTablesAndViews()
Get all tables and views.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TriggerObject.fireRow(Session session,
Table table,
Row oldRow,
Row newRow,
boolean beforeAction,
boolean rollback)
Call the fire method of the user-defined trigger class if required.
|
String |
TriggerObject.getCreateSQLForCopy(Table targetTable,
String quotedName) |
String |
Sequence.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Schema.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Constant.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Schema.getUniqueConstraintName(Session session,
Table table)
Create a unique constraint name.
|
String |
Schema.getUniqueIndexName(Session session,
Table table,
String prefix)
Create a unique index name.
|
Constructor and Description |
---|
TriggerObject(Schema schema,
int id,
String name,
Table table) |
Modifier and Type | Class and Description |
---|---|
class |
FunctionTable
A table backed by a system or user-defined function that returns a result
set.
|
class |
MetaTable
This class is responsible to build the database meta data pseudo tables.
|
class |
RangeTable
The table SYSTEM_RANGE is a virtual table that generates incrementing numbers
with a given start end end point.
|
class |
RegularTable
Most tables are an instance of this class.
|
class |
TableBase
The base class of a regular table, or a user defined table.
|
class |
TableLink
A linked table contains connection information for a table accessible by
JDBC.
|
class |
TableView
A view is a virtual table that is defined by a query.
|
Modifier and Type | Method and Description |
---|---|
static Table |
TableView.createShadowTableForRecursiveTableExpression(boolean isPersistent,
Session targetSession,
String cteViewName,
Schema schema,
List<Column> columns,
Database db)
Create a table for a recursive query.
|
Table |
TableSynonym.getSynonymFor() |
Table |
TableFilter.getTable() |
Table |
Column.getTable() |
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableView.getTables() |
Modifier and Type | Method and Description |
---|---|
static void |
TableView.destroyShadowTableForRecursiveExpression(boolean isPersistent,
Session targetSession,
Table recursiveTable)
Remove a table for a recursive query.
|
String |
TableView.getCreateSQLForCopy(Table table,
String quotedName) |
String |
TableSynonym.getCreateSQLForCopy(Table table,
String quotedName) |
String |
Table.getCreateSQLForCopy(Table table,
String quotedName) |
static void |
IndexColumn.mapColumns(IndexColumn[] indexColumns,
Table table)
Map the columns using the column names and the specified table.
|
void |
Column.setTable(Table table,
int columnId)
Set the table and column id.
|
Constructor and Description |
---|
TableFilter(Session session,
Table table,
String alias,
boolean rightsChecked,
Select select,
int orderInFrom,
IndexHints indexHints)
Create a new table filter object.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.