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| 构造器和说明 |
|---|
TableLink(Schema schema,
int id,
String name,
String driver,
String url,
String user,
String password,
String originalSchema,
String originalTable,
boolean emitUpdates,
boolean force) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
canGetRowCount(SessionLocal session)
Check if the row count can be retrieved quickly.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
void |
checkWritingAllowed()
Linked tables don't know if they are readonly.
|
void |
close(SessionLocal session)
Close the table object and flush changes.
|
void |
convertInsertRow(SessionLocal session,
Row row,
Boolean overridingSystem)
Prepares the specified row for INSERT operation.
|
void |
convertUpdateRow(SessionLocal session,
Row row,
boolean fromTrigger)
Prepares the specified row for UPDATE operation.
|
PreparedStatement |
execute(String sql,
ArrayList<Value> params,
boolean reusePrepared,
SessionLocal session)
Execute a SQL statement using the given parameters.
|
boolean |
getAutocommit()
The autocommit mode
|
String |
getCreateSQL()
Construct the CREATE ...
|
String |
getDropSQL()
Construct a DROP ...
|
int |
getFetchSize()
The number of rows to fetch
default is 0
|
String |
getIdentifierQuoteString()
Returns the identifier quote string or space.
|
ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
String |
getQualifiedTable() |
long |
getRowCount(SessionLocal session)
Get the row count for this table.
|
long |
getRowCountApproximation(SessionLocal session)
Get the approximated row count for this table.
|
Index |
getScanIndex(SessionLocal session)
Get the scan index to iterate through all rows.
|
TableType |
getTableType()
Get the table type name
|
boolean |
isDeterministic()
Check if the table is deterministic.
|
boolean |
isInsertable()
Returns whether this table is insertable.
|
boolean |
isOracle() |
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
removeRow(SessionLocal session,
Row row)
Remove a row from the table and all indexes.
|
void |
reusePreparedStatement(PreparedStatement prep,
String sql)
Add this prepared statement to the list of cached statements.
|
void |
setAutoCommit(boolean mode)
Specify if the autocommit mode is activated or not
|
void |
setFetchSize(int fetchSize)
Specify the number of rows fetched by the linked table command
|
void |
setGlobalTemporary(boolean globalTemporary) |
void |
setReadOnly(boolean readOnly) |
long |
truncate(SessionLocal session)
Remove all rows from the table and indexes.
|
void |
updateRows(Prepared prepared,
SessionLocal session,
LocalResult rows)
Update a list of rows in this table.
|
static DbException |
wrapException(String sql,
Exception ex)
Wrap a SQL exception that occurred while accessing a linked table.
|
addConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canReference, canTruncate, checkDeadlock, compareValues, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getDependentViews, getDiskSpaceUsed, getIdentityColumn, getIndex, getIndexForColumn, getMainIndexColumn, getNullRow, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRow, getRowFactory, getRowIdColumn, getScanIndex, getSQLTableType, getTemplateRow, getTemplateSimpleRow, getTriggers, getType, hasSelectTrigger, isGlobalTemporary, isHidden, isLockedExclusively, isLockedExclusivelyBy, isPersistData, isPersistIndexes, isQueryComparable, isRowLockable, isTableExpression, isView, lock, lockRow, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, unlock, updateRowgetSchema, getSQL, getSQLcheckRename, getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic String getDropSQL()
DbObjectgetDropSQL 在类中 DbObjectpublic String getCreateSQL()
DbObjectgetCreateSQL 在类中 DbObjectpublic Index addIndex(SessionLocal session, String indexName, int indexId, IndexColumn[] cols, int uniqueColumnCount, IndexType indexType, boolean create, String indexComment)
Tablepublic Index getScanIndex(SessionLocal session)
TablegetScanIndex 在类中 Tablesession - the sessionpublic boolean isInsertable()
TableisInsertable 在类中 Tablepublic void removeRow(SessionLocal session, Row row)
Tablepublic void addRow(SessionLocal session, Row row)
Tablepublic void close(SessionLocal session)
Tablepublic long getRowCount(SessionLocal session)
TablegetRowCount 在类中 Tablesession - the sessionpublic static DbException wrapException(String sql, Exception ex)
sql - the SQL statementex - the exception from the remote databasepublic String getQualifiedTable()
public PreparedStatement execute(String sql, ArrayList<Value> params, boolean reusePrepared, SessionLocal session)
sql - the SQL statementparams - the parameters or nullreusePrepared - if the prepared statement can be re-used immediatelysession - the sessionpublic void checkSupportAlter()
TablecheckSupportAlter 在类中 Tablepublic long truncate(SessionLocal session)
Tablepublic boolean canGetRowCount(SessionLocal session)
TablecanGetRowCount 在类中 Tablesession - the sessionpublic boolean canDrop()
Tablepublic TableType getTableType()
TablegetTableType 在类中 Tablepublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources 在类中 Tablesession - the sessionpublic boolean isOracle()
public ArrayList<Index> getIndexes()
TablegetIndexes 在类中 Tablepublic long getMaxDataModificationId()
TablegetMaxDataModificationId 在类中 Tablepublic void updateRows(Prepared prepared, SessionLocal session, LocalResult rows)
TableupdateRows 在类中 Tableprepared - the prepared statementsession - the sessionrows - a list of row pairs of the form old row, new row, old row,
new row,...public void setGlobalTemporary(boolean globalTemporary)
public void setReadOnly(boolean readOnly)
public long getRowCountApproximation(SessionLocal session)
TablegetRowCountApproximation 在类中 Tablesession - the sessionpublic void reusePreparedStatement(PreparedStatement prep, String sql)
prep - the prepared statementsql - the SQL statementpublic boolean isDeterministic()
TableisDeterministic 在类中 Tablepublic void checkWritingAllowed()
checkWritingAllowed 在类中 Tablepublic void convertInsertRow(SessionLocal session, Row row, Boolean overridingSystem)
TableconvertInsertRow 在类中 Tablesession - the sessionrow - the rowoverridingSystem - Boolean.TRUE for OVERRIDING SYSTEM VALUES,
Boolean.FALSE for OVERRIDING USER VALUES,
null if override clause is not specifiedpublic void convertUpdateRow(SessionLocal session, Row row, boolean fromTrigger)
TableconvertUpdateRow 在类中 Tablesession - the sessionrow - the rowfromTrigger - true if row was modified by INSERT or UPDATE triggerpublic void setFetchSize(int fetchSize)
fetchSize - to setpublic void setAutoCommit(boolean mode)
mode - to setpublic boolean getAutocommit()
public int getFetchSize()
public String getIdentifierQuoteString()
Copyright © 2022. All rights reserved.