org.apache.cassandra.cql.jdbc
Class CassandraDriver

java.lang.Object
  extended by org.apache.cassandra.cql.jdbc.CassandraDriver
All Implemented Interfaces:
java.sql.Driver

public class CassandraDriver
extends java.lang.Object
implements java.sql.Driver

The Class CassandraDriver.


Constructor Summary
CassandraDriver()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          Method to validate whether provided connection url matches with pattern or not.
 java.sql.Connection connect(java.lang.String url, java.util.Properties props)
          Method to return connection instance for given connection url and connection props.
 int getMajorVersion()
          Returns default major version.
 int getMinorVersion()
          Returns default minor version.
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0, java.util.Properties arg1)
          Returns default driver property info object.
 boolean jdbcCompliant()
          Returns true, if it is jdbc compliant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CassandraDriver

public CassandraDriver()
Method Detail

acceptsURL

public boolean acceptsURL(java.lang.String url)
                   throws java.sql.SQLException
Method to validate whether provided connection url matches with pattern or not.

Specified by:
acceptsURL in interface java.sql.Driver
Parameters:
url - connection url.
Returns:
true, if successful
Throws:
java.sql.SQLException - the sQL exception

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties props)
                            throws java.sql.SQLException
Method to return connection instance for given connection url and connection props.

Specified by:
connect in interface java.sql.Driver
Parameters:
url - connection url.
props - connection properties.
Returns:
connection connection instance.
Throws:
java.sql.SQLException - the sQL exception

getMajorVersion

public int getMajorVersion()
Returns default major version.

Specified by:
getMajorVersion in interface java.sql.Driver
Returns:
MAJOR_VERSION major version.

getMinorVersion

public int getMinorVersion()
Returns default minor version.

Specified by:
getMinorVersion in interface java.sql.Driver
Returns:
MINOR_VERSION minor version.

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0,
                                                     java.util.Properties arg1)
                                              throws java.sql.SQLException
Returns default driver property info object.

Specified by:
getPropertyInfo in interface java.sql.Driver
Parameters:
arg0 - the arg0
arg1 - the arg1
Returns:
driverPropertyInfo
Throws:
java.sql.SQLException - the sQL exception

jdbcCompliant

public boolean jdbcCompliant()
Returns true, if it is jdbc compliant.

Specified by:
jdbcCompliant in interface java.sql.Driver
Returns:
value true, if it is jdbc compliant.


Copyright © 2011 The Apache Software Foundation