| Modifier and Type | Field and Description |
|---|---|
| private boolean | checkForeignKeyConstraints
Is foreign key constraint checking enabled for this table. |
| private final HashMap | |
| protected Column[] | columns
The columns of this table. |
| protected CompareMode | compareMode
The compare mode used for this table. |
| private ArrayList | |
| private final CopyOnWriteArrayList | dependentMaterializedViews
materialized views that depend on this table |
| private final CopyOnWriteArrayList | dependentViews
views that depend on this table |
| public static final int | EXCLUSIVE_LOCK
Exclusive lock. |
| private volatile Row | |
| private boolean | |
| private boolean | |
| private final boolean | |
| private final boolean | |
| public static final int | READ_LOCK
Read lock. |
| private RowFactory | |
| private ArrayList | |
| private ArrayList | |
| private ArrayList | |
| public static final int | TYPE_CACHED
The table type that means this table is a regular persistent table. |
| public static final int | TYPE_MEMORY
The table type that means this table is a regular persistent table. |
| public static final int | WRITE_LOCK
Write lock. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> ArrayList | |
| public void | |
| public void | addDependencies(HashSet<DbObject>
the current set of dependencies dependencies)Add all objects that this table depends on to the hash set. |
| public void | addDependentMaterializedView(MaterializedView
the view to add view)Add a materialized view to this table. |
| public void | |
| public abstract Index | Returns: the indexthe 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)Create an index for this table |
| public abstract void | |
| public void | |
| public void | |
| public void | |
| public abstract boolean | |
| public abstract boolean | Returns: true if it canthe session session)Check if the row count can be retrieved quickly. |
| public boolean | |
| public boolean | |
| public ArrayList | Returns: an object array with the sessions involved in the deadlock, or nullthe session to be tested for session, SessionLocal set with sessions already visited, and null when starting
verification clash, Set<SessionLocal> set with sessions already visited, and null when starting
verification visited)Check if a deadlock occurred. |
| public abstract void | |
| public void | |
| public abstract void | |
| public int | Returns: 0 if both values are equal, -1 if the first value is smaller, and 1 otherwisethe cast information provider provider, Value the first value a, Value the second value b)Compare two values with the current comparison mode. |
| 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 specifiedPrepares the specified row for INSERT operation. |
| public void | convertUpdateRow(SessionLocal
the session session, Row the row row, boolean true if row was modified by INSERT or UPDATE triggerPrepares the specified row for UPDATE operation. |
| public Row | |
| public boolean | Returns: true if the column existsthe column name columnName)Does the column with the given name exist? |
| public void | dropMultipleColumnsConstraintsAndIndexes(SessionLocal
the session session, ArrayList<Column> the columns to drop columnsToDrop)Check that these columns are not referenced by a multi-column constraint or multi-column index. |
| private static Column[] | |
| public Column | Returns: the columnthe column name, or columnName)nullGet the column with the given name if it exists. |
| public Index | Returns: the primary key index or nullGet the primary key index if there is one, or null if there is none. |
| public void | fire(SessionLocal
the session session, int the trigger type type, boolean whether 'before' triggers should be called beforeAction)Fire the triggers for this table. |
| public void | fireAfterRow(SessionLocal
the session session, Row the old data or null for an insert oldRow, Row the new data or null for a delete newRow, boolean when the operation occurred within a rollback rollback)Fire all triggers that need to be called after a row is updated. |
| public boolean | Returns: true if no further action is required (for 'instead of' triggers)the session session, Row the old data or null for an insert oldRow, Row the new data or null for a delete newRow)Fire all triggers that need to be called before a row is updated. |
| private void | |
| public boolean | Returns: if there are any triggers or rows definedCheck if row based triggers or constraints are defined. |
| private boolean | |
| public PlanItem | Returns: the plan itemthe session session, int[] per-column comparison bit masks, null means 'always false',
see constants in IndexCondition masks, TableFilter[] all joined table filters filters, int the current table filter index filter, SortOrder the sort order sortOrder, AllColumnsForPlan the set of all columns allColumnsSet)Get the best plan for the given search mask. |
| public boolean | |
| public ArrayList | getChildren()
Overrides org. Get the list of dependent children (for tables, this includes indexes and so on). |
| public Column | Returns: the columnthe column index (0, 1,...) index)Get the column at the given index. |
| public Column | |
| public Column | |
| public final Column[] | |
| public CompareMode | |
| public ArrayList | |
| public CopyOnWriteArrayList | |
| public CopyOnWriteArrayList | |
| public long | |
| public Column | |
| public Index | |
| public abstract ArrayList | |
| public Index | Returns: the index or nullthe column column, boolean if the returned index must be able
to do needGetFirstOrLast, boolean Index#canGetFirstOrLast()if the returned index must be able to do
needFindNext)Index#findNext(SessionLocal, SearchRow, SearchRow)Get the index that has the given column as the first element. |
| private static IndexHints | |
| public int | Returns: ID of main index column, orSearchRow#ROWID_INDEXReturns ID of main index column, or |
| public abstract long | |
| public Row | |
| public boolean | |
| public boolean | |
| public Index | |
| public Row | |
| public abstract long | |
| public abstract long | Returns: the approximated row countthe session session)Get the approximated row count for this table. |
| public RowFactory | |
| public Column | |
| public abstract Index | Returns: the indexthe session session)Get the scan index to iterate through all rows. |
| public Index | Returns: the scan indexthe session session, int[] the search mask masks, TableFilter[] the table filters filters, int the filter index filter, SortOrder the sort order sortOrder, AllColumnsForPlan all columns allColumnsSet)Get the scan index for this table. |
| public String | Returns: SQL table type for INFORMATION_SCHEMAReturn SQL table type for INFORMATION_SCHEMA. |
| public abstract TableType | |
| public Row | |
| public SearchRow | Returns: the simple row objectif only one value need to be stored singleColumn)Get a new simple row object. |
| public ArrayList | |
| public int | |
| public final Column[] | |
| public boolean | |
| public abstract boolean | |
| public boolean | |
| private static boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if it isthe session session)Check if the table is exclusively locked by this session. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the table contains no query-comparable columnCheck whether the table (or view) contains no columns that prevent index conditions to be used. |
| public boolean | Returns: true if table supports row-level locksViews, function tables, links, etc. do not support locks |
| public boolean | |
| public boolean | Returns: true if the table was already exclusively locked by this session.the session session, int the type of lock lockType)Lock the table for the given session. |
| public Row | Returns: locked row, or null if row does not exist anymore or if it was skippedthe session session, Row to lock row, int timeout in milliseconds, timeoutMillis)-1 for default, -2 to
skip locking if row is already locked by another sessionLocks row, preventing any updated to it, except from the session specified. |
| private static void | |
| public void | removeChildrenAndResources(SessionLocal
the session session)Implements abstract org. Delete all dependent children objects and resources of this object. |
| public void | removeColumnExpressionsDependencies(SessionLocal
the session session)Removes dependencies of column expressions, used for tables with circular dependencies. |
| public void | removeConstraint(Constraint
the constraint to remove constraint)Remove the given constraint from the list. |
| public void | removeDependentMaterializedView(MaterializedView
the view to remove view)Remove the given view from the dependent views list. |
| public void | removeDependentView(TableView
the view to remove view)Remove the given view from the dependent views list. |
| public void | |
| public void | removeIndexOrTransferOwnership(SessionLocal
the session session, Index the index that is no longer required index)If the index is still required by a constraint, transfer the ownership to it. |
| public abstract void | removeRow(SessionLocal
the session session, Row the row row)Remove a row from the table and all indexes. |
| public final void | |
| public void | |
| public void | |
| public void | |
| public void | renameColumn(Column
the column to rename column, String the new column name newName)Rename a column of this table. |
| public void | setCheckForeignKeyConstraints(SessionLocal
the session session, boolean true if checking should be enabled enabled, boolean true if existing rows must be checked during this
call checkExisting)Enable or disable foreign key constraint checking for this table. |
| protected void | |
| public void | |
| public void | |
| public abstract long | Returns: number of removed rows, possibly including uncommitted rowsthe session session)Remove all rows from the table and indexes. |
| public void | |
| public void | updateRow(SessionLocal
the session session, Row the row to update oldRow, Row the row with updated values (_rowid_ suppose to be the same) newRow)Update a row to the table and all 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)Update a list of rows in this table. |