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


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.

Method Detail

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