org.apache.lucene.store.jdbc.datasource
Class AbstractDataSource

java.lang.Object
  extended by org.apache.lucene.store.jdbc.datasource.AbstractDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
DriverManagerDataSource

public abstract class AbstractDataSource
extends Object
implements DataSource

Abstract base class for Spring's DataSource implementations, taking care of the "uninteresting" glue.

Author:
kimchy

Constructor Summary
AbstractDataSource()
           
 
Method Summary
 int getLoginTimeout()
          Returns 0: means use default system timeout.
 PrintWriter getLogWriter()
          LogWriter methods are unsupported.
 boolean isWrapperFor(Class iface)
           
 void setLoginTimeout(int timeout)
           
 void setLogWriter(PrintWriter pw)
          LogWriter methods are unsupported.
 Object unwrap(Class iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection
 

Constructor Detail

AbstractDataSource

public AbstractDataSource()
Method Detail

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Returns 0: means use default system timeout.

Specified by:
getLoginTimeout in interface DataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int timeout)
                     throws SQLException
Specified by:
setLoginTimeout in interface DataSource
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
LogWriter methods are unsupported.

Specified by:
getLogWriter in interface DataSource

setLogWriter

public void setLogWriter(PrintWriter pw)
                  throws SQLException
LogWriter methods are unsupported.

Specified by:
setLogWriter in interface DataSource
Throws:
SQLException

unwrap

public Object unwrap(Class iface)
              throws SQLException
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class iface)
                     throws SQLException
Throws:
SQLException


Copyright (c) 2004-2008 The Compass Project.