Class Hierarchy Index
Class COM.cloudscape.tools.databasePreloader
java.lang.Object
|
+----COM.cloudscape.tools.databasePreloader
- public class databasePreloader
- extends Object
Copyright © 1999, Cloudscape, Inc. All rights reserved.
This is a utility class for working with databases. Currently, it allows you
to inject a database with the Cloudview stored prepared statements (all, or only
non-synchronization stored prepared statements).
tools.jar must be in class path.
"Injecting" a database with these statements makes a first use of the database
with Cloudview faster.
You can use this class from the command line, or use its static methods within a Java program.
On the command line, use it like this:
java COM.cloudscape.tools.databasePreloader { BasicCviewQueries | AllCviewQueries } JDBCconnectionURL
-
addSysVisualStatements(Connection)
- Adds the non-synchronization SysVisual stored prepared statements.
-
addSysVisualSyncStatements(Connection)
-
Adds the SysVisual synchronization stored prepared statements.
-
main(String[])
- Allows you to run the program from the command line.
main
public static void main(String args[]) throws Exception
- Allows you to run the program from the command line. Supply the command and the database connection URL.
- Throws: Exception
- if usage or url is incorrect, if driver cannot be found, or connection cannot be established.
addSysVisualStatements
public static void addSysVisualStatements(Connection conn) throws IOException, SQLException
- Adds the non-synchronization SysVisual stored prepared statements.
- Throws: IOException
- if resource not found.
- Throws: SQLException
- if database error encountered.
addSysVisualSyncStatements
public static void addSysVisualSyncStatements(Connection conn) throws IOException, SQLException, Exception
- Adds the SysVisual synchronization stored prepared statements. Use only on synchronization databases.
- Throws: Exception
- if database error encountered or resource not found.
Class Hierarchy Index