| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private TableLinkConnection | |
| private DbException | |
| private String | |
| private final boolean | |
| private int | |
| private boolean | |
| private String | |
| private final ArrayList | |
| private LinkedIndex | |
| private static final int | |
| private final String | |
| private String | |
| private String | |
| private HashMap | |
| private String | |
| private boolean | |
| private static final long | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Index | addIndex(SessionLocal
the session session, String the name of the index indexName, int the id indexId, IndexColumn[] the index columns cols, int the count of unique columns uniqueColumnCount, IndexType the index type indexType, boolean whether this is a new index create, String the comment indexComment)Implements abstract org. Create an index for this table |
| public void | addRow(SessionLocal
the session session, Row the row row)Implements abstract org. Add a row to the table and all indexes. |
| public boolean | |
| public boolean | canGetRowCount(SessionLocal
the session session)Implements abstract org. Check if the row count can be retrieved quickly. |
| private void | |
| public void | checkSupportAlter()
Implements abstract org. Check if this table supports ALTER TABLE. |
| public void | checkWritingAllowed()
Overrides org. Linked tables don't know if they are readonly. |
| public void | close(SessionLocal
the session session)Implements abstract org. Close the table object and flush changes. |
| private void | |
| public void | convertInsertRow(SessionLocal
the session session, Row the row row, Boolean Boolean#TRUE for OVERRIDING SYSTEM VALUES,
Boolean#FALSE for OVERRIDING USER VALUES,
null if override clause is not specifiedOverrides org. Prepares the specified row for INSERT operation. |
| private static long | |
| private void | |
| private static int | |
| public void | convertUpdateRow(SessionLocal
the session session, Row the row row, boolean true if row was modified by INSERT or UPDATE triggerOverrides org. Prepares the specified row for UPDATE operation. |
| public PreparedStatement | Returns: the prepared statement, or null if it is re-usedthe SQL statement sql, ArrayList<Value> the parameters or null params, boolean if the prepared statement can be re-used immediately reusePrepared, SessionLocal the session session)Execute a SQL statement using the given parameters. |
| public boolean | |
| public String | |
| public String | |
| public int | |
| public String | Returns: the identifier quote string or spaceReturns the identifier quote string or space. |
| public ArrayList | |
| public long | getMaxDataModificationId()
Implements abstract org. Get the last data modification id. |
| public String | |
| public synchronized long | getRowCount(SessionLocal
the session session)Implements abstract org. Get the row count for this table. |
| public long | getRowCountApproximation(SessionLocal
the session session)Implements abstract org. Get the approximated row count for this table. |
| public Index | getScanIndex(SessionLocal
the session session)Implements abstract org. Get the scan index to iterate through all rows. |
| public TableType | |
| public boolean | isDeterministic()
Implements abstract org. Check if the table is deterministic. |
| public boolean | |
| public boolean | |
| private void | |
| private void | |
| private void | |
| private String | |
| public void | removeChildrenAndResources(SessionLocal
the session session)Overrides org. Delete all dependent children objects and resources of this object. |
| public void | removeRow(SessionLocal
the session session, Row the row row)Implements abstract org. Remove a row from the table and all indexes. |
| public void | reusePreparedStatement(PreparedStatement
the prepared statement prep, String the SQL statement sql)Add this prepared statement to the list of cached statements. |
| public void | |
| public void | |
| public void | |
| public void | |
| public long | truncate(SessionLocal
the session session)Implements abstract org. Remove all rows from the table and indexes. |
| public void | updateRows(Prepared
the prepared statement prepared, SessionLocal the session session, LocalResult a list of row pairs of the form old row, new row, old row,
new row,... rows)Overrides org. Update a list of rows in this table. |
| public static DbException | Returns: the wrapped exceptionthe SQL statement sql, Exception the exception from the remote database ex)Wrap a SQL exception that occurred while accessing a linked table. |
| autocommit | back to summary |
|---|---|
| private boolean autocommit | |
| conn | back to summary |
|---|---|
| private TableLinkConnection conn | |
| connectException | back to summary |
|---|---|
| private DbException connectException | |
| driver | back to summary |
|---|---|
| private String driver | |
| emitUpdates | back to summary |
|---|---|
| private final boolean emitUpdates | |
| fetchSize | back to summary |
|---|---|
| private int fetchSize | |
| globalTemporary | back to summary |
|---|---|
| private boolean globalTemporary | |
| identifierQuoteString | back to summary |
|---|---|
| private String identifierQuoteString | |
| indexes | back to summary |
|---|---|
| private final ArrayList<Index> indexes | |
| linkedIndex | back to summary |
|---|---|
| private LinkedIndex linkedIndex | |
| MAX_RETRY | back to summary |
|---|---|
| private static final int MAX_RETRY | |
| originalSchema | back to summary |
|---|---|
| private final String originalSchema | |
| originalTable | back to summary |
|---|---|
| private String originalTable | |
| password | back to summary |
|---|---|
| private String password | |
| preparedMap | back to summary |
|---|---|
| private HashMap<String, PreparedStatement> preparedMap | |
| qualifiedTableName | back to summary |
|---|---|
| private String qualifiedTableName | |
| readOnly | back to summary |
|---|---|
| private boolean readOnly | |
| ROW_COUNT_APPROXIMATION | back to summary |
|---|---|
| private static final long ROW_COUNT_APPROXIMATION | |
| url | back to summary |
|---|---|
| private String url | |
| user | back to summary |
|---|---|
| private String user | |
| TableLink | back to summary |
|---|---|
| public TableLink(Schema schema, int id, String name, String driver, String url, String user, String password, String originalSchema, String originalTable, boolean emitUpdates, boolean force) | |
| addIndex | back to summary |
|---|---|
| private void addIndex(List<Column> list, int uniqueColumnCount, IndexType indexType) | |
| addIndex | back to summary |
|---|---|
| public Index addIndex(SessionLocal session, String indexName, int indexId, IndexColumn[] cols, int uniqueColumnCount, IndexType indexType, boolean create, String indexComment) Implements abstract org. Doc from org. Create an index for this table
| |
| addRow | back to summary |
|---|---|
| public void addRow(SessionLocal session, Row row) Implements abstract org. Doc from org. Add a row to the table and all indexes.
| |
| canDrop | back to summary |
|---|---|
| public boolean canDrop() Implements abstract org. Doc from org. Check if this table can be dropped.
| |
| canGetRowCount | back to summary |
|---|---|
| public boolean canGetRowCount(SessionLocal session) Implements abstract org. Doc from org. Check if the row count can be retrieved quickly.
| |
| checkReadOnly | back to summary |
|---|---|
| private void checkReadOnly() | |
| checkSupportAlter | back to summary |
|---|---|
| public void checkSupportAlter() Implements abstract org. Doc from org. Check if this table supports ALTER TABLE.
| |
| checkWritingAllowed | back to summary |
|---|---|
| public void checkWritingAllowed() Overrides org. Linked tables don't know if they are readonly. This overwrites the default handling.
| |
| close | back to summary |
|---|---|
| public void close(SessionLocal session) Implements abstract org. Doc from org. Close the table object and flush changes.
| |
| connect | back to summary |
|---|---|
| private void connect() | |
| convertInsertRow | back to summary |
|---|---|
| public void convertInsertRow(SessionLocal session, Row row, Boolean overridingSystem) Overrides org. Doc from org. Prepares the specified row for INSERT operation. Identity, default, and generated values are evaluated, all values are converted to target data types and validated. Base value of identity column is updated when required by compatibility mode.
| |
| convertPrecision | back to summary |
|---|---|
| private static long convertPrecision(int sqlType, long precision) | |
| convertRow | back to summary |
|---|---|
| private void convertRow(SessionLocal session, Row row) | |
| convertScale | back to summary |
|---|---|
| private static int convertScale(int sqlType, int scale) | |
| convertUpdateRow | back to summary |
|---|---|
| public void convertUpdateRow(SessionLocal session, Row row, boolean fromTrigger) Overrides org. Doc from org. Prepares the specified row for UPDATE operation. Default and generated values are evaluated, all values are converted to target data types and validated. Base value of identity column is updated when required by compatibility mode.
| |
| execute | back to summary |
|---|---|
| public PreparedStatement execute(String sql, ArrayList<Value> params, boolean reusePrepared, SessionLocal session) Execute a SQL statement using the given parameters. Prepared statements are kept in a hash map to avoid re-creating them.
| |
| getAutocommit | back to summary |
|---|---|
| public boolean getAutocommit() The autocommit mode
| |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Implements abstract org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getDropSQL | back to summary |
|---|---|
| public String getDropSQL() Overrides org. Doc from org. Construct a DROP ... SQL statement for this object. | |
| getFetchSize | back to summary |
|---|---|
| public int getFetchSize() The number of rows to fetch default is 0
| |
| getIdentifierQuoteString | back to summary |
|---|---|
| public String getIdentifierQuoteString() Returns the identifier quote string or space.
| |
| getIndexes | back to summary |
|---|---|
| public ArrayList Implements abstract org. Doc from org. Get all indexes for this table. | |
| getMaxDataModificationId | back to summary |
|---|---|
| public long getMaxDataModificationId() Implements abstract org. Doc from org. Get the last data modification id.
| |
| getQualifiedTable | back to summary |
|---|---|
| public String getQualifiedTable() | |
| getRowCount | back to summary |
|---|---|
| public synchronized long getRowCount(SessionLocal session) Implements abstract org. Doc from org. Get the row count for this table.
| |
| getRowCountApproximation | back to summary |
|---|---|
| public long getRowCountApproximation(SessionLocal session) Implements abstract org. Doc from org. Get the approximated row count for this table.
| |
| getScanIndex | back to summary |
|---|---|
| public Index getScanIndex(SessionLocal session) Implements abstract org. Doc from org. Get the scan index to iterate through all rows.
| |
| getTableType | back to summary |
|---|---|
| public TableType getTableType() Implements abstract org. Doc from org. Get the table type name | |
| isDeterministic | back to summary |
|---|---|
| public boolean isDeterministic() Implements abstract org. Doc from org. Check if the table is deterministic.
| |
| isInsertable | back to summary |
|---|---|
| public boolean isInsertable() Overrides org. Doc from org. Returns whether this table is insertable.
| |
| isOracle | back to summary |
|---|---|
| public boolean isOracle() | |
| readIndexes | back to summary |
|---|---|
| private void readIndexes(DatabaseMetaData meta, HashMap<String, Column> columnMap) | |
| readIndexes | back to summary |
|---|---|
| private void readIndexes(ResultSet rs, HashMap<String, Column> columnMap, String pkName) throws SQLException | |
| readMetaData | back to summary |
|---|---|
| private void readMetaData() throws SQLException | |
| readPrimaryKey | back to summary |
|---|---|
| private String readPrimaryKey(ResultSet rs, HashMap<String, Column> columnMap) throws SQLException | |
| removeChildrenAndResources | back to summary |
|---|---|
| public void removeChildrenAndResources(SessionLocal session) Overrides org. Doc from org. Delete all dependent children objects and resources of this object.
| |
| removeRow | back to summary |
|---|---|
| public void removeRow(SessionLocal session, Row row) Implements abstract org. Doc from org. Remove a row from the table and all indexes.
| |
| reusePreparedStatement | back to summary |
|---|---|
| public void reusePreparedStatement(PreparedStatement prep, String sql) Add this prepared statement to the list of cached statements.
| |
| setAutoCommit | back to summary |
|---|---|
| public void setAutoCommit(boolean mode) Specify if the autocommit mode is activated or not
| |
| setFetchSize | back to summary |
|---|---|
| public void setFetchSize(int fetchSize) Specify the number of rows fetched by the linked table command
| |
| setGlobalTemporary | back to summary |
|---|---|
| public void setGlobalTemporary(boolean globalTemporary) | |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnly) | |
| truncate | back to summary |
|---|---|
| public long truncate(SessionLocal session) Implements abstract org. Doc from org. Remove all rows from the table and indexes.
| |
| updateRows | back to summary |
|---|---|
| public void updateRows(Prepared prepared, SessionLocal session, LocalResult rows) Overrides org. Doc from org. Update a list of rows in this table.
| |
| wrapException | back to summary |
|---|---|
| public static DbException wrapException(String sql, Exception ex) Wrap a SQL exception that occurred while accessing a linked table.
| |