com.jdbwc.core
Class WCConnectionInfo

java.lang.Object
  extended by com.jdbwc.core.WCConnectionTransaction
      extended by com.jdbwc.core.WCConnectionInfo
Direct Known Subclasses:
WCConnection

public abstract class WCConnectionInfo
extends WCConnectionTransaction


Field Summary
protected  java.lang.String myActiveDatabase
           
protected  int myCaseSensitivity
          -1 = lowercase, 0 = mixed-case, 1 = uppercase
protected  java.lang.String myDatabaseVersion
           
protected  java.lang.String myDBName
           
protected  int myDbType
          The Database type this class is designed to work with
protected  java.lang.String myDBVersion
           
protected  java.lang.String myJDBWCScriptVersion
           
protected  java.lang.String myScriptingVersion
           
protected  java.lang.String myServerProtocol
           
protected  java.lang.String myTimeZone
           
 
Fields inherited from class com.jdbwc.core.WCConnectionTransaction
myConnection
 
Constructor Summary
protected WCConnectionInfo()
           
 
Method Summary
 int getCaseSensitivity()
           
 java.lang.String getDatabase()
           
protected  void getDatabaseInfo()
           
 int getDatabaseMajorVersion()
           
protected  int getDatabaseMicroVersion()
           
 int getDatabaseMinorVersion()
           
 java.lang.String getDatabaseProductName()
           
 java.lang.String getDatabaseProductVersion()
           
 int getDbType()
           
 int getDriverMajorVersion()
           
 int getDriverMinorVersion()
           
 java.lang.String getDriverName()
           
 java.lang.String getDriverVersion()
           
protected  java.util.TimeZone getMyTimeZone()
           
 java.lang.String getVersion(int versionType)
           
 boolean versionMeetsMinimum(int majorVersion, int minorVersion, int microVersion)
           
 
Methods inherited from class com.jdbwc.core.WCConnectionTransaction
commit, getTransactionIsolation, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setSavepoint, setSavepoint, setTransactionIsolation, setTransConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myActiveDatabase

protected transient java.lang.String myActiveDatabase

myDatabaseVersion

protected transient java.lang.String myDatabaseVersion

myScriptingVersion

protected transient java.lang.String myScriptingVersion

myJDBWCScriptVersion

protected transient java.lang.String myJDBWCScriptVersion

myTimeZone

protected transient java.lang.String myTimeZone

myServerProtocol

protected transient java.lang.String myServerProtocol

myDbType

protected transient int myDbType
The Database type this class is designed to work with


myDBName

protected transient java.lang.String myDBName

myDBVersion

protected transient java.lang.String myDBVersion

myCaseSensitivity

protected transient int myCaseSensitivity
-1 = lowercase, 0 = mixed-case, 1 = uppercase

Constructor Detail

WCConnectionInfo

protected WCConnectionInfo()
Method Detail

getDatabaseInfo

protected void getDatabaseInfo()
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getDatabaseMicroVersion

protected int getDatabaseMicroVersion()
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getCaseSensitivity

public int getCaseSensitivity()
Returns:
int. One of:
  • -1 = lowercase
  • 0 = mixed-case
  • 1 = uppercase

getDatabase

public java.lang.String getDatabase()

getDatabaseMajorVersion

public int getDatabaseMajorVersion()
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getDatabaseMinorVersion

public int getDatabaseMinorVersion()
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getDatabaseProductName

public java.lang.String getDatabaseProductName()
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getDatabaseProductVersion

public java.lang.String getDatabaseProductVersion()
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getDbType

public int getDbType()

getDriverMajorVersion

public int getDriverMajorVersion()

getDriverMinorVersion

public int getDriverMinorVersion()

getDriverName

public java.lang.String getDriverName()
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getDriverVersion

public java.lang.String getDriverVersion()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getVersion

public java.lang.String getVersion(int versionType)
Parameters:
versionType - - int, can be 0 (ALL), 1 (database), 2 (scripting engine) or 3 (jdbwc script bundle)
Returns:
The requested version String.

versionMeetsMinimum

public boolean versionMeetsMinimum(int majorVersion,
                                   int minorVersion,
                                   int microVersion)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getMyTimeZone

protected java.util.TimeZone getMyTimeZone()
Returns:
the myTimeZone