public abstract class VirtualTable extends Table
columns, compareMode, EXCLUSIVE_LOCK, isHidden, READ_LOCK, TYPE_CACHED, TYPE_MEMORY, WRITE_LOCKAGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| 限定符 | 构造器和说明 |
|---|---|
protected |
VirtualTable(Schema schema,
int id,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
void |
addRow(SessionLocal 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 renaming is allowed.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
void |
close(SessionLocal session)
Close the table object and flush changes.
|
String |
getCreateSQL()
Construct the CREATE ...
|
ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
TableType |
getTableType()
Get the table type name
|
boolean |
isInsertable()
Returns whether this table is insertable.
|
void |
removeRow(SessionLocal session,
Row row)
Remove a row from the table and all indexes.
|
long |
truncate(SessionLocal session)
Remove all rows from the table and indexes.
|
addConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canGetRowCount, canTruncate, checkDeadlock, checkWritingAllowed, compareValues, convertInsertRow, convertUpdateRow, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getDependentViews, getDiskSpaceUsed, getIdentityColumn, getIndex, getIndexForColumn, getMainIndexColumn, getMaxDataModificationId, getNullRow, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRow, getRowCount, getRowCountApproximation, getRowFactory, getRowIdColumn, getScanIndex, getScanIndex, getSQLTableType, getTemplateRow, getTemplateSimpleRow, getTriggers, getType, hasSelectTrigger, isDeterministic, isGlobalTemporary, isHidden, isLockedExclusively, isLockedExclusivelyBy, isPersistData, isPersistIndexes, isQueryComparable, isRowLockable, isTableExpression, isView, lock, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, unlock, updateRow, updateRowsgetSchema, getSQL, getSQLgetComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic void close(SessionLocal session)
Tablepublic Index addIndex(SessionLocal session, String indexName, int indexId, IndexColumn[] cols, int uniqueColumnCount, IndexType indexType, boolean create, String indexComment)
Tablepublic boolean isInsertable()
TableisInsertable 在类中 Tablepublic void removeRow(SessionLocal session, Row row)
Tablepublic long truncate(SessionLocal session)
Tablepublic void addRow(SessionLocal session, Row row)
Tablepublic void checkSupportAlter()
TablecheckSupportAlter 在类中 Tablepublic TableType getTableType()
TablegetTableType 在类中 Tablepublic ArrayList<Index> getIndexes()
TablegetIndexes 在类中 Tablepublic boolean canReference()
TablecanReference 在类中 Tablepublic boolean canDrop()
Tablepublic String getCreateSQL()
DbObjectgetCreateSQL 在类中 DbObjectpublic void checkRename()
DbObjectcheckRename 在类中 DbObjectCopyright © 2022. All rights reserved.