|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.database.StoredProcedureGateway
com.jfw.examples.MySP
public class MySP
| 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 |
|---|
public MySP(java.util.HashMap inputParams)
| Method Detail |
|---|
protected void setStoredProcedure()
StoredProcedureGatewayStoredProcedureGateway.storedProcedure. Must be implement by subclass.
setStoredProcedure in class StoredProcedureGateway
protected void setInput()
throws DatabaseException
StoredProcedureGateway
setInput in class StoredProcedureGatewayDatabaseException
protected void setOutput()
throws DatabaseException
StoredProcedureGateway
setOutput in class StoredProcedureGatewayDatabaseException
public void myExecute(java.util.HashMap outputdata)
throws DatabaseException
StoredProcedureGatewayStoredProcedureGateway.execute(java.util.HashMap, boolean) or StoredProcedureGateway.exec(boolean) must be called for
execute the stored procedure and get the data.
myExecute in class StoredProcedureGatewayoutputdata - contains the data returned by the stored procedure and
other informations relative the database interrogation.
DatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||