planetj.database.connection
Interface DataEngineDataSource

All Superinterfaces:
javax.sql.DataSource
All Known Implementing Classes:
DataEngineConnectionPool, DataSourceWrapper

public interface DataEngineDataSource
extends javax.sql.DataSource

A DataSource which may be able to determine the appropriate connection to use based on an SQL statement which that connection will execute


Method Summary
 Connection getConnection(String sql)
          Gets a Connection which will be used to execute the specified SQL.
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Method Detail

getConnection

public Connection getConnection(String sql)
                         throws DataEngineException
Gets a Connection which will be used to execute the specified SQL. The returned Connection may be chosen from all of the available connections based on the SQL statement passed in

DataEngineException