org.axiondb.jdbc
Class AxionDataSource

java.lang.Object
  extended by org.axiondb.jdbc.ConnectionFactory
      extended by org.axiondb.jdbc.AxionDataSource
All Implemented Interfaces:
java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource

public class AxionDataSource
extends ConnectionFactory
implements javax.sql.DataSource

A DataSource implementation.

Version:
$Revision: 1.6 $ $Date: 2007/11/13 19:04:01 $

Field Summary
 
Fields inherited from class org.axiondb.jdbc.ConnectionFactory
URL_PREFIX
 
Constructor Summary
AxionDataSource(java.lang.String connectString)
           
 
Method Summary
 java.sql.Connection getConnection()
           
 java.sql.Connection getConnection(java.lang.String uname, java.lang.String passwd)
           
 int getLoginTimeout()
           
 java.io.PrintWriter getLogWriter()
           
 boolean isWrapperFor(java.lang.Class<?> arg0)
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(java.io.PrintWriter log)
           
<T> T
unwrap(java.lang.Class<T> arg0)
           
 
Methods inherited from class org.axiondb.jdbc.ConnectionFactory
createConnection, isValidConnectString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxionDataSource

public AxionDataSource(java.lang.String connectString)
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection(java.lang.String uname,
                                         java.lang.String passwd)
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLoginTimeout

public int getLoginTimeout()
Specified by:
getLoginTimeout in interface javax.sql.CommonDataSource

setLoginTimeout

public void setLoginTimeout(int seconds)
Specified by:
setLoginTimeout in interface javax.sql.CommonDataSource

getLogWriter

public java.io.PrintWriter getLogWriter()
Specified by:
getLogWriter in interface javax.sql.CommonDataSource

setLogWriter

public void setLogWriter(java.io.PrintWriter log)
Specified by:
setLogWriter in interface javax.sql.CommonDataSource

isWrapperFor

public boolean isWrapperFor(java.lang.Class<?> arg0)
                     throws java.sql.SQLException
Specified by:
isWrapperFor in interface java.sql.Wrapper
Throws:
java.sql.SQLException

unwrap

public <T> T unwrap(java.lang.Class<T> arg0)
         throws java.sql.SQLException
Specified by:
unwrap in interface java.sql.Wrapper
Throws:
java.sql.SQLException