public abstract class VirtualTable extends Table
columns, compareMode, isHidden, TYPE_CACHED, TYPE_MEMORYcomment, database, trace| Modifier | Constructor and Description |
|---|---|
protected |
VirtualTable(Schema schema,
int id,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
Index |
addIndex(Session session,
java.lang.String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
java.lang.String indexComment)
Create an index for this table
|
void |
addRow(Session session,
Row row)
Add a row to the table and all indexes.
|
boolean |
canDrop()
Check if this table can be dropped.
|
boolean |
canReference()
Check if this table can be referenced.
|
void |
checkRename()
Check if this object can be renamed.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
void |
close(Session session)
Close the table object and flush changes.
|
java.lang.String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
long |
getDiskSpaceUsed() |
java.lang.String |
getDropSQL()
Build a SQL statement to drop this object.
|
java.util.ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
TableType |
getTableType()
Get the table type name
|
Index |
getUniqueIndex()
Get any unique index for this table if one exists.
|
boolean |
isLockedExclusively()
Check if this table is locked exclusively.
|
boolean |
lock(Session session,
boolean exclusive,
boolean forceLockEvenInMvcc)
Lock the table for the given session.
|
void |
removeRow(Session session,
Row row)
Remove a row from the table and all indexes.
|
void |
truncate(Session session)
Remove all rows from the table and indexes.
|
void |
unlock(Session s)
Release the lock for this session.
|
addConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canGetRowCount, canTruncate, checkDeadlock, checkWritingAllowed, compareValues, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getDependentViews, getIndex, getIndexForColumn, getMaxDataModificationId, getOnCommitDrop, getOnCommitTruncate, getOnUpdateValue, getPrimaryKey, getRow, getRowCount, getRowCountApproximation, getRowIdColumn, getScanIndex, getScanIndex, getTemplateRow, getTemplateSimpleRow, getType, hasInsteadOfTrigger, hasSelectTrigger, isDeterministic, isGlobalTemporary, isHidden, isLockedExclusivelyBy, isMVStore, isPersistData, isPersistIndexes, isQueryComparable, isTableExpression, isView, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, updateRow, updateRows, validateConvertUpdateSequencegetSchema, getSQL, getSQLgetComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComment, getDatabase, getId, getName, isTemporary, setComment, setTemporaryprotected VirtualTable(Schema schema, int id, java.lang.String name)
public boolean lock(Session session, boolean exclusive, boolean forceLockEvenInMvcc)
Tablepublic void close(Session session)
Tablepublic void unlock(Session s)
Tablepublic Index addIndex(Session session, java.lang.String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, java.lang.String indexComment)
Tablepublic void removeRow(Session session, Row row)
Tablepublic void truncate(Session session)
Tablepublic void addRow(Session session, Row row)
Tablepublic void checkSupportAlter()
TablecheckSupportAlter in class Tablepublic TableType getTableType()
TablegetTableType in class Tablepublic Index getUniqueIndex()
TablegetUniqueIndex in class Tablepublic java.util.ArrayList<Index> getIndexes()
TablegetIndexes in class Tablepublic boolean isLockedExclusively()
TableisLockedExclusively in class Tablepublic boolean canReference()
TablecanReference in class Tablepublic boolean canDrop()
Tablepublic long getDiskSpaceUsed()
getDiskSpaceUsed in class Tablepublic java.lang.String getCreateSQL()
DbObjectBasegetCreateSQL in interface DbObjectgetCreateSQL in class DbObjectBasepublic java.lang.String getDropSQL()
DbObjectBasegetDropSQL in interface DbObjectgetDropSQL in class DbObjectBasepublic void checkRename()
DbObjectBasecheckRename in interface DbObjectcheckRename in class DbObjectBase