Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.util.Constants Class Reference

List of all members.

Static Public Member Functions

final int getMajorVersion ()
final int getMinorVersion ()

Static Public Attributes

final String VERSION = "@VERSION@"
final int SQL_SHORT_FORM_LENGTH = 40
final int SHUTDOWN_WAIT = 1
final int SHUTDOWN_SAFE = 2
final int SHUTDOWN_FORCE = 3
final String ZIP_EXT = ".zip"
final String C_JDBC_DTD_FILE = "c-jdbc.dtd"

Detailed Description

Constants that are common to the console, driver and controller modules

Author:
Nicolas Modrzyk

Emmanuel Cecchet

Definition at line 33 of file Constants.java.


Member Function Documentation

final int org.objectweb.cjdbc.common.util.Constants.getMajorVersion  )  [static]
 

C-JDBC major version

Returns:
major version

Definition at line 43 of file Constants.java.

00044   {
00045     int ind = VERSION.indexOf('.');
00046     if (ind > 0)
00047       return Integer.parseInt(VERSION.substring(0, ind));
00048     else
00049       return 1;
00050   }

final int org.objectweb.cjdbc.common.util.Constants.getMinorVersion  )  [static]
 

C-JDBC minor version

Returns:
minor version

Definition at line 57 of file Constants.java.

00058   {
00059     int ind = VERSION.indexOf('.');
00060     if (ind > 0)
00061       return Integer.parseInt(VERSION.substring(ind + 1, ind + 2));
00062     else
00063       return 0;
00064   }


Member Data Documentation

final String org.objectweb.cjdbc.common.util.Constants.C_JDBC_DTD_FILE = "c-jdbc.dtd" [static]
 

C-JDBC DTD file name (must be found in classpath).

Definition at line 89 of file Constants.java.

final int org.objectweb.cjdbc.common.util.Constants.SHUTDOWN_FORCE = 3 [static]
 

Shutdown Mode Force: Does not wait for the end of the current transactions and kill all connections. Recovery will be needed on restart.

Definition at line 83 of file Constants.java.

final int org.objectweb.cjdbc.common.util.Constants.SHUTDOWN_SAFE = 2 [static]
 

Shutdown Mode Safe: Wait for all current transactions to complete before shutdown

Definition at line 78 of file Constants.java.

final int org.objectweb.cjdbc.common.util.Constants.SHUTDOWN_WAIT = 1 [static]
 

Shutdown Mode Wait: Wait for all clients to disconnect

Definition at line 73 of file Constants.java.

final int org.objectweb.cjdbc.common.util.Constants.SQL_SHORT_FORM_LENGTH = 40 [static]
 

Maximum number of characters to display when a SQL statement is logged into a Exception.

Definition at line 70 of file Constants.java.

final String org.objectweb.cjdbc.common.util.Constants.VERSION = "@VERSION@" [static]
 

C-JDBC version.

Definition at line 36 of file Constants.java.

final String org.objectweb.cjdbc.common.util.Constants.ZIP_EXT = ".zip" [static]
 

CJDBC extension for zipped file names

Definition at line 86 of file Constants.java.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:14 2005 for C-JDBC by  doxygen 1.3.9.1