org.objectweb.cjdbc.common.util
Class Constants

java.lang.Object
  extended byorg.objectweb.cjdbc.common.util.Constants

public class Constants
extends java.lang.Object

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

Author:
Nicolas Modrzyk , Emmanuel Cecchet

Field Summary
static java.lang.String C_JDBC_DTD_FILE
          C-JDBC DTD file name (must be found in classpath).
static int SHUTDOWN_FORCE
          Shutdown Mode Force: Does not wait for the end of the current transactions and kill all connections.
static int SHUTDOWN_SAFE
          Shutdown Mode Safe: Wait for all current transactions to complete before shutdown
static int SHUTDOWN_WAIT
          Shutdown Mode Wait: Wait for all clients to disconnect
static int SQL_SHORT_FORM_LENGTH
          Maximum number of characters to display when a SQL statement is logged into a Exception.
static java.lang.String VERSION
          C-JDBC version.
 
Constructor Summary
Constants()
           
 
Method Summary
static int getMajorVersion()
          C-JDBC major version
static int getMinorVersion()
          C-JDBC minor version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
C-JDBC version.

See Also:
Constant Field Values

SQL_SHORT_FORM_LENGTH

public static final int SQL_SHORT_FORM_LENGTH
Maximum number of characters to display when a SQL statement is logged into a Exception.

See Also:
Constant Field Values

SHUTDOWN_WAIT

public static final int SHUTDOWN_WAIT
Shutdown Mode Wait: Wait for all clients to disconnect

See Also:
Constant Field Values

SHUTDOWN_SAFE

public static final int SHUTDOWN_SAFE
Shutdown Mode Safe: Wait for all current transactions to complete before shutdown

See Also:
Constant Field Values

SHUTDOWN_FORCE

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

See Also:
Constant Field Values

C_JDBC_DTD_FILE

public static final java.lang.String C_JDBC_DTD_FILE
C-JDBC DTD file name (must be found in classpath).

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

getMajorVersion

public static final int getMajorVersion()
C-JDBC major version

Returns:
major version

getMinorVersion

public static final int getMinorVersion()
C-JDBC minor version

Returns:
minor version


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.