|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.derby.iapi.db.Factory
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.
-- 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.
IBM Corp. reserves the right to change, rename, or remove this interface at any time.
| Constructor Summary | |
Factory()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Factory()
| Method Detail |
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.
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||