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 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 FACTORY in SQL-J statements.
|