org.axiondb.jdbc
Class AxionDataSource

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

public class AxionDataSource
extends ConnectionFactory
implements 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(String connectString)
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String uname, String passwd)
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 boolean isWrapperFor(Class<?> arg0)
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter log)
           
<T> T
unwrap(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(String connectString)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getConnection

public Connection getConnection(String uname,
                                String passwd)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
Specified by:
getLoginTimeout in interface CommonDataSource

setLoginTimeout

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

getLogWriter

public PrintWriter getLogWriter()
Specified by:
getLogWriter in interface CommonDataSource

setLogWriter

public void setLogWriter(PrintWriter log)
Specified by:
setLogWriter in interface CommonDataSource

isWrapperFor

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

unwrap

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