Callers of these methods must be within the context of a
Derby statement execution otherwise a SQLException will be thrown.
There are two basic ways to call these methods.
-- checkpoint the database CALL org.apache.derby.iapi.db.Factory:: getDatabaseOfConnection().checkpoint();
import org.apache.derby.iapi.db.*; ... // checkpoint the database Database db = Factory.getDatabaseOfConnection(); db.checkpoint();
This class can be accessed using the class alias FACTORY in SQL-J statements.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Database | Returns: the Database object associated with the current connectionReturns the Database object associated with the current connection. |
| public static TriggerExecutionContext | Returns: the TriggerExecutionContext if called from the context of a trigger; otherwise, null.Get the TriggerExecutionContext for the current connection of the connection. |
| Factory | back to summary |
|---|---|
| public Factory() | |
| getDatabaseOfConnection | back to summary |
|---|---|
| public static Database getDatabaseOfConnection() throws SQLException Returns the Database object associated with the current connection.
| |
| getTriggerExecutionContext | back to summary |
|---|---|
| public static TriggerExecutionContext getTriggerExecutionContext() throws SQLException Get the TriggerExecutionContext for the current connection of the connection.
| |