Class Hierarchy Previous Next Index
Class COM.cloudscape.tools.databasePreloader
java.lang.Object
|
+----COM.cloudscape.tools.databasePreloader
- public class databasePreloader
- extends java.lang.Object
Copyright © 1998-2000, Informix Software, 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(java.lang.String args[]) throws java.lang.Exception
Allows you to run the program from the command line. Supply the command and the database connection URL.
- Throws:
- java.lang.Exception - if usage or url is incorrect, if driver cannot be found, or connection cannot be established.
addSysVisualStatements
public static void addSysVisualStatements(java.sql.Connection conn) throws java.io.IOException, java.sql.SQLException
Adds the non-synchronization SysVisual stored prepared statements.
- Throws:
- java.io.IOException - if resource not found.
- java.sql.SQLException - if database error encountered.
addSysVisualSyncStatements
public static void addSysVisualSyncStatements(java.sql.Connection conn) throws java.io.IOException, java.sql.SQLException, java.lang.Exception
Adds the SysVisual synchronization stored prepared statements. Use only on synchronization databases.
- Throws:
- java.lang.Exception - if database error encountered or resource not found.
Class Hierarchy Previous Next Index