public class Factory
extends java.lang.Object
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.
| Constructor | Description |
|---|---|
Factory() |
| Modifier and Type | Method | Description |
|---|---|---|
static Database |
getDatabaseOfConnection() |
Returns the Database object associated with the current connection.
|
static TriggerExecutionContext |
getTriggerExecutionContext() |
Get the TriggerExecutionContext for the current connection
of the connection.
|
public static Database getDatabaseOfConnection() throws java.sql.SQLException
Returns the Database object associated with the current connection.
java.sql.SQLException - Not in a connection context.public static TriggerExecutionContext getTriggerExecutionContext() throws java.sql.SQLException
java.sql.SQLException - Not in a connection or trigger context.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.