com.jfw.examples
Class MySP

java.lang.Object
  extended by com.jfw.database.StoredProcedureGateway
      extended by com.jfw.examples.MySP

public class MySP
extends StoredProcedureGateway


Field Summary
 
Fields inherited from class com.jfw.database.StoredProcedureGateway
className, inputParams, profiler, RESULT_KEY
 
Constructor Summary
MySP(java.util.HashMap inputParams)
           
 
Method Summary
 void myExecute(java.util.HashMap outputdata)
          The method called by the other classes for execute the stored procedure.
protected  void setInput()
          Default implementation if no input parameters must be set.
protected  void setOutput()
          Default implementation if no output parameters must be set.
protected  void setStoredProcedure()
          Set attribute StoredProcedureGateway.storedProcedure.
 
Methods inherited from class com.jfw.database.StoredProcedureGateway
close, close, commit, exec, execute, execute, finalize, getAllData, getAllData, getCallableStatement, getConnection, getInputParam, getInputParam, getStoredProcedure, initialize, isClosed, rollback, setStoredProcedure, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MySP

public MySP(java.util.HashMap inputParams)
Method Detail

setStoredProcedure

protected void setStoredProcedure()
Description copied from class: StoredProcedureGateway
Set attribute StoredProcedureGateway.storedProcedure. Must be implement by subclass.

Specified by:
setStoredProcedure in class StoredProcedureGateway

setInput

protected void setInput()
                 throws DatabaseException
Description copied from class: StoredProcedureGateway
Default implementation if no input parameters must be set.

Overrides:
setInput in class StoredProcedureGateway
Throws:
DatabaseException

setOutput

protected void setOutput()
                  throws DatabaseException
Description copied from class: StoredProcedureGateway
Default implementation if no output parameters must be set.

Overrides:
setOutput in class StoredProcedureGateway
Throws:
DatabaseException

myExecute

public void myExecute(java.util.HashMap outputdata)
               throws DatabaseException
Description copied from class: StoredProcedureGateway
The method called by the other classes for execute the stored procedure. One of the methods StoredProcedureGateway.execute(java.util.HashMap, boolean) or StoredProcedureGateway.exec(boolean) must be called for execute the stored procedure and get the data.

Specified by:
myExecute in class StoredProcedureGateway
Parameters:
outputdata - contains the data returned by the stored procedure and other informations relative the database interrogation.
Throws:
DatabaseException