com.elogico.xbound.jdbc
Class SQLManager

java.lang.Object
  extended by com.elogico.xbound.jdbc.SQLManager
Direct Known Subclasses:
SQLManagerImpl

public abstract class SQLManager
extends java.lang.Object

An instance of this abstract class can transform an SQL Source into a SQL Result.

The instance can be obtained with the newInstance() method. Actually only the default implementation is available.

Version:
$Revision: 1.2 $
Author:
Marco Sarti

Field Summary
protected  java.sql.Connection connection
          The connection to be used.
 
Constructor Summary
protected SQLManager()
          Defalut constructor.
 
Method Summary
abstract  void executeQuery(Source stm, Result result)
           
 java.sql.Connection getConnection()
           
static SQLManager newInstance()
           Obtain a new instance of a SQLManager.
 void setConnection(java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected java.sql.Connection connection
The connection to be used.

Constructor Detail

SQLManager

protected SQLManager()
Defalut constructor.

Method Detail

newInstance

public static SQLManager newInstance()
                              throws XBoundConfigurationError

Obtain a new instance of a SQLManager.

Actually only create the default implementation com.elogico.xbound.jdbc.impl.SQLManagerImpl.

Returns:
a new instance of SQLManager
Throws:
XBoundConfigurationError

executeQuery

public abstract void executeQuery(Source stm,
                                  Result result)
                           throws java.sql.SQLException,
                                  XBoundException
Throws:
java.sql.SQLException
XBoundException

getConnection

public java.sql.Connection getConnection()
Returns:
Returns the connection.

setConnection

public void setConnection(java.sql.Connection connection)
Parameters:
connection - The connection to set.