org.firebirdsql.gds
Class GDSType

java.lang.Object
  extended byorg.firebirdsql.gds.GDSType
All Implemented Interfaces:
java.io.Serializable

public final class GDSType
extends java.lang.Object
implements java.io.Serializable

Type of GDS: pure java, native (or type 2), or embedded.

See Also:
Serialized Form

Field Summary
static java.lang.String EMBEDDED_STR
           
static java.lang.String LOCAL_STR
           
static GDSType NATIVE
           
static GDSType NATIVE_EMBEDDED
           
static GDSType NATIVE_LOCAL
           
static java.lang.String NATIVE_STR
           
static GDSType ORACLE_MODE
           
static java.lang.String ORACLE_MODE_STR
           
static GDSType PURE_JAVA
           
static java.lang.String PURE_JAVA_STR
           
static java.lang.String TYPE2_STR
           
static java.lang.String TYPE4_STR
           
 
Method Summary
static GDSType getType(java.lang.String type)
          Factory method for instances of this class.
 java.lang.Object readResolve()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PURE_JAVA_STR

public static final java.lang.String PURE_JAVA_STR
See Also:
Constant Field Values

TYPE4_STR

public static final java.lang.String TYPE4_STR
See Also:
Constant Field Values

NATIVE_STR

public static final java.lang.String NATIVE_STR
See Also:
Constant Field Values

TYPE2_STR

public static final java.lang.String TYPE2_STR
See Also:
Constant Field Values

EMBEDDED_STR

public static final java.lang.String EMBEDDED_STR
See Also:
Constant Field Values

LOCAL_STR

public static final java.lang.String LOCAL_STR
See Also:
Constant Field Values

ORACLE_MODE_STR

public static final java.lang.String ORACLE_MODE_STR
See Also:
Constant Field Values

PURE_JAVA

public static final GDSType PURE_JAVA

NATIVE

public static final GDSType NATIVE

NATIVE_EMBEDDED

public static final GDSType NATIVE_EMBEDDED

NATIVE_LOCAL

public static final GDSType NATIVE_LOCAL

ORACLE_MODE

public static final GDSType ORACLE_MODE
Method Detail

getType

public static GDSType getType(java.lang.String type)
Factory method for instances of this class. There's only three possible instances of this class, however linking to them directly is not always possible and desirable (for example when type is specified in configuration). This method gives the possibility to translate string representation of the type into correct type instance.

Parameters:
type - string representation of the type to match (matching is case insensitive). Possible values are:
  • "PURE_JAVA" or "TYPE4" for pure Java (type 4) driver version;
  • "NATIVE" or "TYPE2" for type 2 JDBC driver that will use Firebird client library to access the database using JNI link.
  • "EMBEDDED" for type 2 JDBC driver that will use embedded version of the server to perform database-related operations.
    Returns:
    instance of GDSType corresponding to the specified string representation or null if no match could be found.

readResolve

public java.lang.Object readResolve()

toString

public java.lang.String toString()


Copyright © 2001 David Jencks and other authors. All rights reserved.