com.ge.research.utils.db
Class SQLStatement

java.lang.Object
  extended bycom.ge.research.utils.db.SQLStatement
All Implemented Interfaces:
DatabaseStatement
Direct Known Subclasses:
ModifyStatement, SelectStatement

public abstract class SQLStatement
extends java.lang.Object
implements DatabaseStatement

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:26 $
Author:
garbiras
Created on:
April 4, 2005

Constructor Summary
SQLStatement(java.sql.Connection connection, java.lang.String preparedStatementText, java.util.List arguments)
           
SQLStatement(javax.sql.DataSource datasource, java.lang.String preparedStatementText, java.util.List arguments)
           
SQLStatement(java.lang.String datasourceName, java.lang.String preparedStatementText, java.util.List arguments)
           
 
Method Summary
 java.util.List execute()
           
protected abstract  java.sql.ResultSet executeStatement(java.sql.PreparedStatement statement)
           
protected  void freeConnection()
           
protected abstract  java.util.List parseResults(java.sql.ResultSet resultSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLStatement

public SQLStatement(javax.sql.DataSource datasource,
                    java.lang.String preparedStatementText,
                    java.util.List arguments)

SQLStatement

public SQLStatement(java.lang.String datasourceName,
                    java.lang.String preparedStatementText,
                    java.util.List arguments)
             throws javax.naming.NamingException

SQLStatement

public SQLStatement(java.sql.Connection connection,
                    java.lang.String preparedStatementText,
                    java.util.List arguments)
Method Detail

execute

public final java.util.List execute()
                             throws DAOException
Specified by:
execute in interface DatabaseStatement
Throws:
DAOException

executeStatement

protected abstract java.sql.ResultSet executeStatement(java.sql.PreparedStatement statement)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

freeConnection

protected void freeConnection()

parseResults

protected abstract java.util.List parseResults(java.sql.ResultSet resultSet)
                                        throws java.lang.Exception
Throws:
java.lang.Exception