GigaSpaces XAP 10.0.1 API

com.j_spaces.jdbc.driver
Class GDriver

java.lang.Object
  extended by com.j_spaces.jdbc.driver.GDriver
All Implemented Interfaces:
Driver

public class GDriver
extends Object
implements Driver

GigaSpaces JDBC driver implementation.

Author:
Michael Mitrani

Field Summary
static String DRIVER_NAME
           
static int MAJOR_VERSION
           
static int MINOR_VERSION
           
static boolean registered
           
 
Constructor Summary
GDriver()
           
 
Method Summary
 boolean acceptsURL(String url)
          Only urls that start with jdbc:gigaspaces: are compliant
 Connection connect(String url, Properties info)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 Logger getParentLogger()
           
static HashMap getProcTable()
           
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
           
 boolean jdbcCompliant()
          This one is not fully compliant.
static void registerDriver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_VERSION

public static final int MAJOR_VERSION
See Also:
Constant Field Values

MINOR_VERSION

public static final int MINOR_VERSION
See Also:
Constant Field Values

DRIVER_NAME

public static final String DRIVER_NAME
See Also:
Constant Field Values

registered

public static boolean registered
Constructor Detail

GDriver

public GDriver()
Method Detail

registerDriver

public static void registerDriver()

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver
See Also:
Driver.getMajorVersion()

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver
See Also:
Driver.getMinorVersion()

jdbcCompliant

public boolean jdbcCompliant()
This one is not fully compliant.

Specified by:
jdbcCompliant in interface Driver
See Also:
Driver.jdbcCompliant()

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
Only urls that start with jdbc:gigaspaces: are compliant

Specified by:
acceptsURL in interface Driver
Throws:
SQLException
See Also:
Driver.acceptsURL(java.lang.String)

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect in interface Driver
Returns:
Connection, the new GConnection or null in case of invalid url.
Throws:
SQLException
See Also:
Driver.connect(java.lang.String, java.util.Properties)

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
Specified by:
getPropertyInfo in interface Driver
Throws:
SQLException
See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)

getProcTable

public static HashMap getProcTable()

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Throws:
SQLFeatureNotSupportedException

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.