This class can only be used within an SQL-J statement, a Java procedure or a server side Java method.
This class can be accessed using the class alias CONSISTENCYCHECKER in SQL-J statements.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true, if the table is consistent, exception thrown if inconsistentThe schema name of the table. schemaName, String The name of the table tableName)Check the named table, ensuring that all of its indexes are consistent with the base table. |
| ConsistencyChecker | back to summary |
|---|---|
| private ConsistencyChecker() no requirement for a constructor | |
| checkTable | back to summary |
|---|---|
| public static boolean checkTable(String schemaName, String tableName) throws SQLException Check the named table, ensuring that all of its indexes are consistent with the base table. Use this method only within an SQL-J statement; do not call it directly. When tables are consistent, the method returns true. Otherwise, the method throws an exception. To check the consistency of a single table:
For example, to check the consistency of the table APP.Flights:
To check the consistency of all of the tables in the 'APP' schema, stopping at the first failure:
To check the consistency of an entire database, stopping at the first failure:
| |