|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.db
Class Factory

java.lang.Objectorg.apache.derby.iapi.db.Factory
- public class Factory
- extends java.lang.Object
Callers of these methods must be within the context of a
Cloudscape statement execution otherwise a SQLException will be thrown.
There are two basic ways to call these methods.
-
Within a SQL statement.
-- checkpoint the database CALL org.apache.derby.iapi.db.Factory:: getDatabaseOfConnection().checkpoint();
-
In a server-side JDBC method.
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.
IBM Corp. reserves the right to change, rename, or remove this interface at any time.
| Constructor Summary | |
Factory()
|
|
| Method Summary | |
static org.apache.derby.database.Database |
getDatabaseOfConnection()
Returns the Database object associated with the current connection. |
static TriggerExecutionContext |
getTriggerExecutionContext()
Get the TriggerExecutionContext for the current connection of the connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
Factory
public Factory()
| Method Detail |
getDatabaseOfConnection
public static org.apache.derby.database.Database getDatabaseOfConnection() throws java.sql.SQLException
Returns the Database object associated with the current connection.
getTriggerExecutionContext
public static TriggerExecutionContext getTriggerExecutionContext() throws java.sql.SQLException
- Get the TriggerExecutionContext for the current connection
of the connection.
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.db.Factory