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


Method Index

 o addSysVisualStatements(Connection)
Adds the non-synchronization SysVisual stored prepared statements.
 o addSysVisualSyncStatements(Connection)
Adds the SysVisual synchronization stored prepared statements.
 o main(String[])
Allows you to run the program from the command line.

Methods

 o 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.
 o 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.
 o 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