Package | Description |
---|---|
org.h2.command | |
org.h2.command.ddl | |
org.h2.command.dml | |
org.h2.constraint | |
org.h2.engine | |
org.h2.expression | |
org.h2.index | |
org.h2.result | |
org.h2.schema | |
org.h2.store | |
org.h2.table |
Modifier and Type | Field and Description |
---|---|
protected Session |
Prepared.session
The session.
|
protected Session |
Command.session
The session.
|
Modifier and Type | Method and Description |
---|---|
Session |
Parser.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
Prepared.setSession(Session currentSession)
Set the session for this statement.
|
Constructor and Description |
---|
Parser(Session session) |
Prepared(Session session)
Create a new object.
|
Modifier and Type | Field and Description |
---|---|
Session |
CreateTableData.session
The session.
|
Modifier and Type | Method and Description |
---|---|
static void |
Analyze.analyzeTable(Session session,
Table table,
int sample,
boolean manual)
Analyze this table.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectUnion.updateAggregate(Session s) |
void |
Select.updateAggregate(Session s) |
abstract void |
Query.updateAggregate(Session s)
Update all aggregate function values.
|
Constructor and Description |
---|
AlterSequence(Session session,
Schema schema) |
AlterTableSet(Session session,
Schema schema,
int type,
boolean value) |
BackupCommand(Session session) |
Call(Session session) |
Delete(Session session) |
ExecuteProcedure(Session session) |
Explain(Session session) |
Insert(Session session) |
Merge(Session session) |
NoOperation(Session session) |
RunScriptCommand(Session session) |
ScriptCommand(Session session) |
Select(Session session) |
SelectUnion(Session session,
Query query) |
Set(Session session,
int type) |
TransactionCommand(Session session,
int type) |
Update(Session session) |
Modifier and Type | Method and Description |
---|---|
void |
ConstraintUnique.checkExistingData(Session session) |
void |
ConstraintReferential.checkExistingData(Session session) |
void |
ConstraintCheck.checkExistingData(Session session) |
abstract void |
Constraint.checkExistingData(Session session)
Check the existing data.
|
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.
|
void |
ConstraintUnique.removeChildrenAndResources(Session session) |
void |
ConstraintReferential.removeChildrenAndResources(Session session) |
void |
ConstraintCheck.removeChildrenAndResources(Session session) |
Modifier and Type | Method and Description |
---|---|
Session |
Engine.createSession(ConnectionInfo ci)
Open a database connection with the given connection information.
|
Session |
Database.getExclusiveSession() |
Session[] |
Database.getSessions(boolean includingSystemSession)
Get all sessions that are currently connected to the database.
|
Session |
Database.getSystemSession() |
Modifier and Type | Method and Description |
---|---|
void |
Database.addDatabaseObject(Session session,
DbObject obj)
Add an object to the database.
|
void |
Database.addSchemaObject(Session session,
SchemaObject obj)
Add a schema object to the database.
|
String |
Database.getTempTableName(String baseName,
Session session)
Get a unique temporary table name.
|
Value |
FunctionAlias.JavaMethod.getValue(Session session,
Expression[] args,
boolean columnList)
Call the user-defined function and return the value.
|
boolean |
Database.lockMeta(Session session)
Lock the metadata table for updates.
|
void |
UserDataType.removeChildrenAndResources(Session session) |
void |
UserAggregate.removeChildrenAndResources(Session session) |
void |
User.removeChildrenAndResources(Session session) |
void |
Setting.removeChildrenAndResources(Session session) |
void |
Role.removeChildrenAndResources(Session session) |
void |
Right.removeChildrenAndResources(Session session) |
void |
FunctionAlias.removeChildrenAndResources(Session session) |
abstract void |
DbObjectBase.removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
DbObject.removeChildrenAndResources(Session session)
Delete all dependent children objects and resources of this object.
|
void |
Comment.removeChildrenAndResources(Session session) |
void |
Database.removeDatabaseObject(Session session,
DbObject obj)
Remove the object from the database.
|
void |
Database.removeMeta(Session session,
int id)
Remove the given object from the meta data.
|
void |
Database.removeSchemaObject(Session session,
SchemaObject obj)
Remove an object from the system table.
|
void |
Database.removeSession(Session session)
Remove a session.
|
void |
Database.renameDatabaseObject(Session session,
DbObject obj,
String newName)
Rename a database object.
|
void |
Database.renameSchemaObject(Session session,
SchemaObject obj,
String newName)
Rename a schema object.
|
void |
Database.setExclusiveSession(Session session,
boolean closeOthers)
Set the session that can exclusively access the database.
|
void |
Database.update(Session session,
DbObject obj)
Update an object in the system table.
|
void |
Database.verifyMetaLocked(Session session)
Verify the meta table is locked.
|
Modifier and Type | Method and Description |
---|---|
void |
ValueExpression.createIndexConditions(Session session,
TableFilter filter) |
void |
ExpressionColumn.createIndexConditions(Session session,
TableFilter filter) |
void |
Expression.createIndexConditions(Session session,
TableFilter filter)
Create index conditions if possible and attach them to the table filter.
|
void |
ConditionInSelect.createIndexConditions(Session session,
TableFilter filter) |
void |
ConditionIn.createIndexConditions(Session session,
TableFilter filter) |
void |
ConditionAndOr.createIndexConditions(Session session,
TableFilter filter) |
void |
Comparison.createIndexConditions(Session session,
TableFilter filter) |
void |
CompareLike.createIndexConditions(Session session,
TableFilter filter) |
Boolean |
Expression.getBooleanValue(Session session)
Get the value in form of a boolean expression.
|
Expression[] |
ValueExpression.getExpressionColumns(Session session) |
Expression[] |
TableFunction.getExpressionColumns(Session session) |
Expression[] |
Subquery.getExpressionColumns(Session session) |
Expression[] |
JavaFunction.getExpressionColumns(Session session) |
Expression[] |
ExpressionList.getExpressionColumns(Session session) |
Expression[] |
Expression.getExpressionColumns(Session session)
If this expression consists of column expressions it should return them.
|
static Expression[] |
Expression.getExpressionColumns(Session session,
ResultSet rs)
Extracts expression columns from the given result set.
|
Expression |
ValueExpression.getNotIfPossible(Session session) |
Expression |
Parameter.getNotIfPossible(Session session) |
Expression |
ExpressionColumn.getNotIfPossible(Session session) |
Expression |
Expression.getNotIfPossible(Session session)
If it is possible, return the negated expression.
|
Expression |
ConditionNot.getNotIfPossible(Session session) |
Expression |
ConditionAndOr.getNotIfPossible(Session session) |
Expression |
Comparison.getNotIfPossible(Session session) |
Value |
Wildcard.getValue(Session session) |
Value |
Variable.getValue(Session session) |
Value |
ValueExpression.getValue(Session session) |
Value |
TableFunction.getValue(Session session) |
Value |
Subquery.getValue(Session session) |
Value |
SequenceValue.getValue(Session session) |
Value |
Rownum.getValue(Session session) |
Value |
Parameter.getValue(Session session) |
Value |
Operation.getValue(Session session) |
Value |
JavaFunction.getValue(Session session) |
Value |
JavaAggregate.getValue(Session session) |
Value |
Function.getValue(Session session) |
Value |
ExpressionList.getValue(Session session) |
Value |
ExpressionColumn.getValue(Session session) |
abstract Value |
Expression.getValue(Session session)
Return the resulting value for the current row.
|
Value |
ConditionNot.getValue(Session session) |
Value |
ConditionInSelect.getValue(Session session) |
Value |
ConditionIn.getValue(Session session) |
Value |
ConditionExists.getValue(Session session) |
Value |
ConditionAndOr.getValue(Session session) |
Value |
Comparison.getValue(Session session) |
Value |
CompareLike.getValue(Session session) |
Value |
Alias.getValue(Session session) |
Value |
Aggregate.getValue(Session session) |
ValueResultSet |
TableFunction.getValueForColumnList(Session session,
Expression[] nullArgs) |
ValueResultSet |
JavaFunction.getValueForColumnList(Session session,
Expression[] argList) |
ValueResultSet |
FunctionCall.getValueForColumnList(Session session,
Expression[] nullArgs)
Get an empty result set with the column names set.
|
ValueResultSet |
Function.getValueForColumnList(Session session,
Expression[] argList) |
Expression |
Wildcard.optimize(Session session) |
Expression |
Variable.optimize(Session session) |
Expression |
ValueExpression.optimize(Session session) |
Expression |
Subquery.optimize(Session session) |
Expression |
SequenceValue.optimize(Session session) |
Expression |
Rownum.optimize(Session session) |
Expression |
Parameter.optimize(Session session) |
Expression |
Operation.optimize(Session session) |
Expression |
JavaFunction.optimize(Session session) |
Expression |
JavaAggregate.optimize(Session session) |
Expression |
FunctionCall.optimize(Session session)
Optimize the function if possible.
|
Expression |
Function.optimize(Session session) |
Expression |
ExpressionList.optimize(Session session) |
Expression |
ExpressionColumn.optimize(Session session) |
abstract Expression |
Expression.optimize(Session session)
Try to optimize the expression.
|
Expression |
ConditionNot.optimize(Session session) |
Expression |
ConditionInSelect.optimize(Session session) |
Expression |
ConditionIn.optimize(Session session) |
Expression |
ConditionExists.optimize(Session session) |
Expression |
ConditionAndOr.optimize(Session session) |
Expression |
Comparison.optimize(Session session) |
Expression |
CompareLike.optimize(Session session) |
Expression |
Alias.optimize(Session session) |
Expression |
Aggregate.optimize(Session session) |
void |
Wildcard.updateAggregate(Session session) |
void |
Variable.updateAggregate(Session session) |
void |
ValueExpression.updateAggregate(Session session) |
void |
Subquery.updateAggregate(Session session) |
void |
SequenceValue.updateAggregate(Session session) |
void |
Rownum.updateAggregate(Session session) |
void |
Parameter.updateAggregate(Session session) |
void |
Operation.updateAggregate(Session session) |
void |
JavaFunction.updateAggregate(Session session) |
void |
JavaAggregate.updateAggregate(Session session) |
void |
Function.updateAggregate(Session session) |
void |
ExpressionList.updateAggregate(Session session) |
void |
ExpressionColumn.updateAggregate(Session session) |
abstract void |
Expression.updateAggregate(Session session)
Update an aggregate value.
|
void |
ConditionNot.updateAggregate(Session session) |
void |
ConditionInSelect.updateAggregate(Session session) |
void |
ConditionIn.updateAggregate(Session session) |
void |
ConditionExists.updateAggregate(Session session) |
void |
ConditionAndOr.updateAggregate(Session session) |
void |
Comparison.updateAggregate(Session session) |
void |
CompareLike.updateAggregate(Session session) |
void |
Alias.updateAggregate(Session session) |
void |
Aggregate.updateAggregate(Session session) |
Constructor and Description |
---|
Comparison(Session session,
int compareType,
Expression left,
Expression right) |
Variable(Session session,
String name) |
Modifier and Type | Method and Description |
---|---|
Session |
ViewIndex.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
ViewIndex.add(Session session,
Row row) |
void |
TreeIndex.add(Session session,
Row row) |
void |
ScanIndex.add(Session session,
Row row) |
void |
RangeIndex.add(Session session,
Row row) |
void |
PageDelegateIndex.add(Session session,
Row row) |
void |
PageDataIndex.add(Session session,
Row row) |
void |
PageBtreeIndex.add(Session session,
Row row) |
void |
NonUniqueHashIndex.add(Session session,
Row row) |
void |
MultiVersionIndex.add(Session session,
Row row) |
void |
MetaIndex.add(Session session,
Row row) |
void |
LinkedIndex.add(Session session,
Row row) |
void |
Index.add(Session session,
Row row)
Add a row to the index.
|
void |
HashIndex.add(Session session,
Row row) |
void |
FunctionIndex.add(Session session,
Row row) |
void |
ViewIndex.close(Session session) |
void |
TreeIndex.close(Session session) |
void |
ScanIndex.close(Session session) |
void |
RangeIndex.close(Session session) |
void |
PageDelegateIndex.close(Session session) |
void |
PageDataIndex.close(Session session) |
void |
PageBtreeIndex.close(Session session) |
void |
MultiVersionIndex.close(Session session) |
void |
MetaIndex.close(Session session) |
void |
LinkedIndex.close(Session session) |
void |
Index.close(Session session)
Close this index.
|
void |
HashIndex.close(Session session) |
void |
FunctionIndex.close(Session session) |
void |
IndexCursor.find(Session s,
ArrayList<IndexCondition> indexConditions)
Re-evaluate the start and end values of the index search for rows.
|
Cursor |
ViewIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
TreeIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
ScanIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
RangeIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
PageDelegateIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
PageDataIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
PageBtreeIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
NonUniqueHashIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
MultiVersionIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
MetaIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
LinkedIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
Index.find(Session session,
SearchRow first,
SearchRow last)
Find a row or a list of rows and create a cursor to iterate over the result.
|
Cursor |
HashIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
FunctionIndex.find(Session session,
SearchRow first,
SearchRow last) |
Cursor |
ViewIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
TreeIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
ScanIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
RangeIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
PageDelegateIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
PageDataIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
PageBtreeIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
MultiVersionIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
MetaIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
LinkedIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
Index.findFirstOrLast(Session session,
boolean first)
Find the first (or last) value of this index.
|
Cursor |
HashIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
FunctionIndex.findFirstOrLast(Session session,
boolean first) |
Cursor |
PageDelegateIndex.findNext(Session session,
SearchRow higherThan,
SearchRow last) |
Cursor |
PageBtreeIndex.findNext(Session session,
SearchRow first,
SearchRow last) |
Cursor |
MultiVersionIndex.findNext(Session session,
SearchRow first,
SearchRow last) |
Cursor |
Index.findNext(Session session,
SearchRow higherThan,
SearchRow last)
Find a row or a list of rows that is larger and create a cursor to
iterate over the result.
|
Cursor |
BaseIndex.findNext(Session session,
SearchRow higherThan,
SearchRow last)
Find a row or a list of rows that is larger and create a cursor to
iterate over the result.
|
double |
ViewIndex.getCost(Session session,
int[] masks) |
double |
TreeIndex.getCost(Session session,
int[] masks) |
double |
ScanIndex.getCost(Session session,
int[] masks) |
double |
RangeIndex.getCost(Session session,
int[] masks) |
double |
PageDelegateIndex.getCost(Session session,
int[] masks) |
double |
PageDataIndex.getCost(Session session,
int[] masks) |
double |
PageBtreeIndex.getCost(Session session,
int[] masks) |
double |
MultiVersionIndex.getCost(Session session,
int[] masks) |
double |
MetaIndex.getCost(Session session,
int[] masks) |
double |
LinkedIndex.getCost(Session session,
int[] masks) |
double |
Index.getCost(Session session,
int[] masks)
Estimate the cost to search for rows given the search mask.
|
double |
HashIndex.getCost(Session session,
int[] masks) |
double |
FunctionIndex.getCost(Session session,
int[] masks) |
ResultInterface |
IndexCondition.getCurrentResult(Session session)
Get the current result of the expression.
|
Value |
IndexCondition.getCurrentValue(Session session)
Get the current value of the expression.
|
Value[] |
IndexCondition.getCurrentValueList(Session session)
Get the current value list of the expression.
|
Row |
ScanIndex.getRow(Session session,
long key) |
Row |
PageDataIndex.getRow(Session session,
long key) |
Row |
PageBtreeIndex.getRow(Session session,
long key)
Get a row from the main index.
|
Row |
MultiVersionIndex.getRow(Session session,
long key) |
Row |
Index.getRow(Session session,
long key)
Get the row with the given key.
|
Row |
BaseIndex.getRow(Session session,
long key) |
long |
ViewIndex.getRowCount(Session session) |
long |
TreeIndex.getRowCount(Session session) |
long |
ScanIndex.getRowCount(Session session) |
long |
RangeIndex.getRowCount(Session session) |
long |
PageDelegateIndex.getRowCount(Session session) |
long |
PageDataIndex.getRowCount(Session session) |
long |
PageBtreeIndex.getRowCount(Session session) |
long |
NonUniqueHashIndex.getRowCount(Session session) |
long |
MultiVersionIndex.getRowCount(Session session) |
long |
MetaIndex.getRowCount(Session session) |
long |
LinkedIndex.getRowCount(Session session) |
long |
Index.getRowCount(Session session)
Get the row count of this table, for the given session.
|
long |
HashIndex.getRowCount(Session session) |
long |
FunctionIndex.getRowCount(Session session) |
boolean |
MultiVersionIndex.isUncommittedFromOtherSession(Session session,
Row row)
Check if there is an uncommitted row with the given key
within a different session.
|
void |
PageDataOverflow.moveTo(Session session,
int newPos) |
void |
PageDataNode.moveTo(Session session,
int newPos) |
void |
PageDataLeaf.moveTo(Session session,
int newPos) |
void |
PageBtreeNode.moveTo(Session session,
int newPos) |
void |
PageBtreeLeaf.moveTo(Session session,
int newPos) |
void |
ViewIndex.remove(Session session) |
void |
TreeIndex.remove(Session session) |
void |
ScanIndex.remove(Session session) |
void |
RangeIndex.remove(Session session) |
void |
PageDelegateIndex.remove(Session session) |
void |
PageDataIndex.remove(Session session) |
void |
PageBtreeIndex.remove(Session session) |
void |
MultiVersionIndex.remove(Session session) |
void |
MetaIndex.remove(Session session) |
void |
LinkedIndex.remove(Session session) |
void |
Index.remove(Session session)
Remove the index.
|
void |
HashIndex.remove(Session session) |
void |
FunctionIndex.remove(Session session) |
void |
ViewIndex.remove(Session session,
Row row) |
void |
TreeIndex.remove(Session session,
Row row) |
void |
ScanIndex.remove(Session session,
Row row) |
void |
RangeIndex.remove(Session session,
Row row) |
void |
PageDelegateIndex.remove(Session session,
Row row) |
void |
PageDataIndex.remove(Session session,
Row row) |
void |
PageBtreeIndex.remove(Session session,
Row row) |
void |
NonUniqueHashIndex.remove(Session session,
Row row) |
void |
MultiVersionIndex.remove(Session session,
Row row) |
void |
MetaIndex.remove(Session session,
Row row) |
void |
LinkedIndex.remove(Session session,
Row row) |
void |
Index.remove(Session session,
Row row)
Remove a row from the index.
|
void |
HashIndex.remove(Session session,
Row row) |
void |
FunctionIndex.remove(Session session,
Row row) |
void |
MultiVersionIndex.removeChildrenAndResources(Session session) |
void |
BaseIndex.removeChildrenAndResources(Session session) |
void |
ViewIndex.truncate(Session session) |
void |
TreeIndex.truncate(Session session) |
void |
ScanIndex.truncate(Session session) |
void |
RangeIndex.truncate(Session session) |
void |
PageDelegateIndex.truncate(Session session) |
void |
PageDataIndex.truncate(Session session) |
void |
PageBtreeIndex.truncate(Session session) |
void |
NonUniqueHashIndex.truncate(Session session) |
void |
MultiVersionIndex.truncate(Session session) |
void |
MetaIndex.truncate(Session session) |
void |
LinkedIndex.truncate(Session session) |
void |
Index.truncate(Session session)
Remove all rows from the index.
|
void |
HashIndex.truncate(Session session) |
void |
FunctionIndex.truncate(Session session) |
Constructor and Description |
---|
NonUniqueHashCursor(Session session,
RegularTable tableData,
ArrayList<Long> positions) |
PageBtreeIndex(RegularTable table,
int id,
String indexName,
IndexColumn[] columns,
IndexType indexType,
boolean create,
Session session) |
PageDataIndex(RegularTable table,
int id,
IndexColumn[] columns,
IndexType indexType,
boolean create,
Session session) |
PageDelegateIndex(RegularTable table,
int id,
String name,
IndexType indexType,
PageDataIndex mainIndex,
boolean create,
Session session) |
ViewIndex(TableView view,
ViewIndex index,
Session session,
int[] masks) |
Modifier and Type | Method and Description |
---|---|
LocalResult |
LocalResult.createShallowCopy(Session targetSession)
Create a shallow copy of the result set.
|
static LocalResult |
LocalResult.read(Session session,
ResultSet rs,
int maxrows)
Construct a local result set by reading all data from a regular result set.
|
Constructor and Description |
---|
LocalResult(Session session,
Expression[] expressions,
int visibleColumnCount)
Construct a local result object.
|
RowList(Session session)
Construct a new row list for this session.
|
Modifier and Type | Method and Description |
---|---|
Constraint |
Schema.findConstraint(Session session,
String name)
Try to find a constraint with this name.
|
Index |
Schema.findIndex(Session session,
String name)
Try to find an index with this name.
|
Table |
Schema.findTableOrView(Session session,
String name)
Try to find a table or view with this name.
|
void |
TriggerObject.fire(Session session,
int type,
boolean beforeAction)
Call the trigger class if required.
|
boolean |
TriggerObject.fireRow(Session session,
Row oldRow,
Row newRow,
boolean beforeAction,
boolean rollback)
Call the fire method of the user-defined trigger class if required.
|
void |
Sequence.flush(Session session)
Flush the current value, including the margin, to disk.
|
long |
Sequence.getNext(Session session)
Get the next value for this sequence.
|
Table |
Schema.getTableOrView(Session session,
String name)
Get the table or view with the given name.
|
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.
|
void |
TriggerObject.removeChildrenAndResources(Session session) |
void |
Sequence.removeChildrenAndResources(Session session) |
void |
Schema.removeChildrenAndResources(Session session) |
void |
Constant.removeChildrenAndResources(Session session) |
void |
TriggerObject.setTriggerClassName(Session session,
String triggerClassName,
boolean force)
Set the trigger class name and load the class if possible.
|
Modifier and Type | Method and Description |
---|---|
Session |
PageStore.getSystemSession() |
Modifier and Type | Method and Description |
---|---|
void |
PageStore.addMeta(PageIndex index,
Session session)
Add the meta data of an index.
|
void |
PageStore.commit(Session session)
Mark a committed transaction.
|
void |
PageStore.logAddOrRemoveRow(Session session,
int tableId,
Row row,
boolean add)
A record is added to a table, or removed from a table.
|
void |
PageStore.logTruncate(Session session,
int tableId)
A table is truncated.
|
void |
PageStreamTrunk.moveTo(Session session,
int newPos) |
void |
PageStreamData.moveTo(Session session,
int newPos) |
void |
PageFreeList.moveTo(Session session,
int newPos) |
abstract void |
Page.moveTo(Session session,
int newPos)
Copy the data to a new location, change the parent to point to the new
location, and free up the current page.
|
void |
PageStore.prepareCommit(Session session,
String transaction)
Prepare a transaction.
|
void |
PageStore.removeMeta(Index index,
Session session)
Remove the meta data of an index.
|
Modifier and Type | Field and Description |
---|---|
protected Session |
TableFilter.session |
Modifier and Type | Method and Description |
---|---|
Session |
TableFilter.getSession() |
Modifier and Type | Method and Description |
---|---|
ArrayList<Session> |
Table.checkDeadlock(Session session,
Session clash,
Set<Session> visited)
Check if a deadlock occurred.
|
ArrayList<Session> |
RegularTable.checkDeadlock(Session session,
Session clash,
Set<Session> visited) |
Modifier and Type | Method and Description |
---|---|
void |
Column.addCheckConstraint(Session session,
Expression expr)
Add a check constraint expression to this column.
|
Index |
TableView.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
Index |
TableLink.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
abstract Index |
Table.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
Index |
RegularTable.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
Index |
RangeTable.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
Index |
MetaTable.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
Index |
FunctionTable.addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment) |
void |
TableView.addRow(Session session,
Row row) |
void |
TableLink.addRow(Session session,
Row row) |
abstract void |
Table.addRow(Session session,
Row row)
Add a row to the table and all indexes.
|
void |
RegularTable.addRow(Session session,
Row row) |
void |
RangeTable.addRow(Session session,
Row row) |
void |
MetaTable.addRow(Session session,
Row row) |
void |
FunctionTable.addRow(Session session,
Row row) |
double |
Plan.calculateCost(Session session)
Calculate the cost of this query plan.
|
ArrayList<Session> |
Table.checkDeadlock(Session session,
Session clash,
Set<Session> visited)
Check if a deadlock occurred.
|
ArrayList<Session> |
RegularTable.checkDeadlock(Session session,
Session clash,
Set<Session> visited) |
void |
TableView.close(Session session) |
void |
TableLink.close(Session session) |
abstract void |
Table.close(Session session)
Close the table object and flush changes.
|
void |
RegularTable.close(Session session) |
void |
RangeTable.close(Session session) |
void |
MetaTable.close(Session session) |
void |
FunctionTable.close(Session session) |
void |
Column.convertAutoIncrementToSequence(Session session,
Schema schema,
int id,
boolean temporary)
Convert the auto-increment flag to a sequence that is linked with this
table.
|
static TableView |
TableView.createTempView(Session session,
User owner,
String name,
Query query,
Query topQuery)
Create a temporary view out of the given query.
|
void |
Table.dropSingleColumnConstraintsAndIndexes(Session session,
Column col)
Check that this column is not referenced by a multi-column constraint or
multi-column index.
|
void |
Table.fire(Session session,
int type,
boolean beforeAction)
Fire the triggers for this table.
|
void |
Table.fireAfterRow(Session session,
Row oldRow,
Row newRow,
boolean rollback)
Fire all triggers that need to be called after a row is updated.
|
boolean |
Table.fireBeforeRow(Session session,
Row oldRow,
Row newRow)
Fire all triggers that need to be called before a row is updated.
|
ArrayList<Row> |
MetaTable.generateRows(Session session,
SearchRow first,
SearchRow last)
Generate the data for the given metadata table using the given first and
last row filters.
|
PlanItem |
TableFilter.getBestPlanItem(Session s,
int level)
Get the best plan item (index, cost) to use use for the current join
order.
|
PlanItem |
TableView.getBestPlanItem(Session session,
int[] masks) |
PlanItem |
Table.getBestPlanItem(Session session,
int[] masks)
Get the best plan for the given search mask.
|
Expression |
Column.getCheckConstraint(Session session,
String asColumnName)
Get the check constraint expression for this column if set.
|
Value |
TableLink.getDefaultValue(Session session,
Column column)
Get or generate a default value for the given column.
|
Value |
Table.getDefaultValue(Session session,
Column column)
Get or generate a default value for the given column.
|
long |
RangeTable.getMax(Session session)
Calculate and get the end value of this range.
|
long |
RangeTable.getMin(Session session)
Calculate and get the start value of this range.
|
ResultInterface |
FunctionTable.getResult(Session session)
Read the result from the function.
|
ResultSet |
FunctionTable.getResultSet(Session session)
Read the result set from the function.
|
Row |
RegularTable.getRow(Session session,
long key)
Read the given row.
|
long |
TableView.getRowCount(Session session) |
long |
TableLink.getRowCount(Session session) |
abstract long |
Table.getRowCount(Session session)
Get the row count for this table.
|
long |
RegularTable.getRowCount(Session session) |
long |
RangeTable.getRowCount(Session session) |
long |
MetaTable.getRowCount(Session session) |
long |
FunctionTable.getRowCount(Session session) |
Index |
TableView.getScanIndex(Session session) |
Index |
TableLink.getScanIndex(Session session) |
abstract Index |
Table.getScanIndex(Session session)
Get the scan index to iterate through all rows.
|
Index |
RegularTable.getScanIndex(Session session) |
Index |
RangeTable.getScanIndex(Session session) |
Index |
MetaTable.getScanIndex(Session session) |
Index |
FunctionTable.getScanIndex(Session session) |
boolean |
Table.isLockedExclusivelyBy(Session session)
Check if the table is exclusively locked by this session.
|
boolean |
RegularTable.isLockedExclusivelyBy(Session session) |
void |
TableView.lock(Session session,
boolean exclusive,
boolean force) |
void |
TableLink.lock(Session session,
boolean exclusive,
boolean force) |
void |
TableFilter.lock(Session s,
boolean exclusive,
boolean force)
Lock the table.
|
abstract void |
Table.lock(Session session,
boolean exclusive,
boolean force)
Lock the table for the given session.
|
void |
RegularTable.lock(Session session,
boolean exclusive,
boolean force) |
void |
RangeTable.lock(Session session,
boolean exclusive,
boolean force) |
void |
MetaTable.lock(Session session,
boolean exclusive,
boolean force) |
void |
FunctionTable.lock(Session session,
boolean exclusive,
boolean force) |
void |
Column.prepareExpression(Session session)
Prepare all expressions of this column.
|
DbException |
TableView.recompile(Session session,
boolean force)
Re-compile the view query and all views that depend on this object.
|
void |
TableView.removeChildrenAndResources(Session session) |
void |
TableLink.removeChildrenAndResources(Session session) |
void |
Table.removeChildrenAndResources(Session session) |
void |
RegularTable.removeChildrenAndResources(Session session) |
void |
MetaTable.removeChildrenAndResources(Session session) |
void |
Table.removeIndexOrTransferOwnership(Session session,
Index index)
If the index is still required by a constraint, transfer the ownership to
it.
|
void |
TableView.removeRow(Session session,
Row row) |
void |
TableLink.removeRow(Session session,
Row row) |
abstract void |
Table.removeRow(Session session,
Row row)
Remove a row from the table and all indexes.
|
void |
RegularTable.removeRow(Session session,
Row row) |
void |
RangeTable.removeRow(Session session,
Row row) |
void |
MetaTable.removeRow(Session session,
Row row) |
void |
FunctionTable.removeRow(Session session,
Row row) |
void |
Table.removeSequence(Session session,
Sequence sequence)
Remove a sequence from the table.
|
void |
TableView.replace(String querySQL,
String[] columnNames,
Session session,
boolean recursive,
boolean force)
Try to replace the SQL statement of the view and re-compile this and all
dependent views.
|
void |
Table.setCheckForeignKeyConstraints(Session session,
boolean enabled,
boolean checkExisting)
Enable or disable foreign key constraint checking for this table.
|
void |
Column.setDefaultExpression(Session session,
Expression defaultExpression)
Set the default expression.
|
void |
TableFilter.startQuery(Session s)
Start the query.
|
void |
TableView.truncate(Session session) |
void |
TableLink.truncate(Session session) |
abstract void |
Table.truncate(Session session)
Remove all rows from the table and indexes.
|
void |
RegularTable.truncate(Session session) |
void |
RangeTable.truncate(Session session) |
void |
MetaTable.truncate(Session session) |
void |
FunctionTable.truncate(Session session) |
void |
TableView.unlock(Session s) |
void |
TableLink.unlock(Session s) |
abstract void |
Table.unlock(Session s)
Release the lock for this session.
|
void |
RegularTable.unlock(Session s) |
void |
RangeTable.unlock(Session s) |
void |
MetaTable.unlock(Session s) |
void |
FunctionTable.unlock(Session s) |
void |
TableLink.updateRows(Prepared prepared,
Session session,
RowList rows) |
void |
Table.updateRows(Prepared prepared,
Session session,
RowList rows)
Update a list of rows in this table.
|
void |
TableLink.validateConvertUpdateSequence(Session session,
Row row)
Convert the values if required.
|
void |
Table.validateConvertUpdateSequence(Session session,
Row row)
Validate all values in this row, convert the values if required, and
update the sequence values if required.
|
Value |
Column.validateConvertUpdateSequence(Session session,
Value value)
Validate the value, convert it if required, and update the sequence value
if required.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Session> |
Table.checkDeadlock(Session session,
Session clash,
Set<Session> visited)
Check if a deadlock occurred.
|
ArrayList<Session> |
RegularTable.checkDeadlock(Session session,
Session clash,
Set<Session> visited) |
Constructor and Description |
---|
FunctionTable(Schema schema,
Session session,
Expression functionExpr,
FunctionCall function) |
TableFilter(Session session,
Table table,
String alias,
boolean rightsChecked,
Select select)
Create a new table filter object.
|
TableView(Schema schema,
int id,
String name,
String querySQL,
ArrayList<Parameter> params,
String[] columnNames,
Session session,
boolean recursive) |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.