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

Field Summary
static java.lang.String C_JDBC_DTD_FILE
          C-JDBC DTD file name (must be found in classpath).
static int CONTROLLER_SHUTDOWN_FAST
          Shutdown Mode Fast: Finish transaction and shutdown
static int CONTROLLER_SHUTDOWN_IMMEDIATE
          Shutdown Mode Immediate: Does not wait for end of transaction and kill all connections Recovery will be needed
static int CONTROLLER_SHUTDOWN_SMART
          Shutdown Mode Smart: Wait for all clients to disconnect
static int DEFAULT_SHUTDOWN_MODE
          Default shutdown mode
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.
static java.lang.String ZIP_EXT
          CJDBC extension for zipped file names
 
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

CONTROLLER_SHUTDOWN_SMART

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

See Also:
Constant Field Values

CONTROLLER_SHUTDOWN_FAST

public static final int CONTROLLER_SHUTDOWN_FAST
Shutdown Mode Fast: Finish transaction and shutdown

See Also:
Constant Field Values

CONTROLLER_SHUTDOWN_IMMEDIATE

public static final int CONTROLLER_SHUTDOWN_IMMEDIATE
Shutdown Mode Immediate: Does not wait for end of transaction and kill all connections Recovery will be needed

See Also:
Constant Field Values

DEFAULT_SHUTDOWN_MODE

public static final int DEFAULT_SHUTDOWN_MODE
Default shutdown mode

See Also:
Constant Field Values

ZIP_EXT

public static final java.lang.String ZIP_EXT
CJDBC extension for zipped file names

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.