com.ge.research.utils.db
Class StoredProcedureStatement

java.lang.Object
  extended bycom.ge.research.utils.db.StoredProcedureStatement
All Implemented Interfaces:
DatabaseStatement

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

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

Field Summary
static java.lang.String INPUT_AND_OUTPUT_PARAMETER
           
static java.lang.String INPUT_PARAMETER
           
static java.lang.String OUTPUT_PARAMETER
           
 
Constructor Summary
StoredProcedureStatement(java.sql.Connection connection, java.lang.String callableStatementText, java.util.List arguments)
           
StoredProcedureStatement(javax.sql.DataSource datasource, java.lang.String callableStatementText, java.util.List arguments)
           
StoredProcedureStatement(java.lang.String datasourceName, java.lang.String callableStatementText, java.util.List arguments)
           
 
Method Summary
 java.util.List execute()
           
protected  void freeConnection()
           
protected abstract  java.util.List parseResults(java.util.List results)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_PARAMETER

public static final java.lang.String INPUT_PARAMETER
See Also:
Constant Field Values

OUTPUT_PARAMETER

public static final java.lang.String OUTPUT_PARAMETER
See Also:
Constant Field Values

INPUT_AND_OUTPUT_PARAMETER

public static final java.lang.String INPUT_AND_OUTPUT_PARAMETER
See Also:
Constant Field Values
Constructor Detail

StoredProcedureStatement

public StoredProcedureStatement(javax.sql.DataSource datasource,
                                java.lang.String callableStatementText,
                                java.util.List arguments)

StoredProcedureStatement

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

StoredProcedureStatement

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

execute

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

freeConnection

protected void freeConnection()

parseResults

protected abstract java.util.List parseResults(java.util.List results)
                                        throws java.lang.Exception
Throws:
java.lang.Exception