|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--j3.mssql.SpParmSQL
JDBC database access class
Procedure Name : spParm
Catalog : J3Demo
Schema : dbo
All JDBC calls to the procedure are in this class
Generated by JDatabase Wizard build 1466, 24-Oct-02 16:53:49
| Field Summary | |
private java.sql.CallableStatement |
myCall
Class wide CallableStatement used to extract data |
protected java.lang.String |
myEmailIn
stored procedure parameter EmailIn |
protected java.lang.String |
myEmailOut
stored procedure parameter EmailOut |
protected java.lang.String |
myFirstName
stored procedure parameter FirstName |
protected java.lang.String |
myLastName
stored procedure parameter LastName |
protected java.lang.Integer |
myReturnValue
stored procedure return value |
| Constructor Summary | |
SpParmSQL()
|
|
| Method Summary | |
void |
callSpParmSQL(java.sql.Connection theConnection)
Call this method to execute the stored procedure |
void |
clearProperties()
Sets this object's properties to null |
void |
close()
Close any open ResultSets and Statements |
void |
closeCall()
Closes the myCall member |
protected void |
finalize()
close open statement and resultset |
private java.lang.Integer |
getCallInteger(java.sql.CallableStatement theCallableStatement,
int theIndex)
Utility function used to get the procedure's parameter or return value as a Integer |
java.lang.String |
getEmailIn()
Retrieve the stored procedure parameter EmailIn |
java.lang.String |
getEmailOut()
Retrieve the stored procedure parameter EmailOut |
java.lang.String |
getFirstName()
Retrieve the stored procedure parameter FirstName |
java.lang.String |
getLastName()
Retrieve the stored procedure parameter LastName |
java.lang.Integer |
getReturnValue()
Retrieve the stored procedure return value |
void |
postCall()
This is called when all resultset rows have been retrieved This method retrieves the stored procedure's return value and any INOUT / OUT parameter values |
void |
setEmailIn(java.lang.String theEmailIn)
set the stored procedure parameter EmailIn |
void |
setEmailOut(java.lang.String theEmailOut)
set the stored procedure parameter EmailOut |
void |
setFirstName(java.lang.String theFirstName)
set the stored procedure parameter FirstName |
void |
setLastName(java.lang.String theLastName)
set the stored procedure parameter LastName |
void |
setReturnValue(java.lang.Integer theReturnValue)
set the stored procedure return value here for completeness |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.sql.CallableStatement myCall
protected java.lang.String myEmailIn
protected java.lang.String myEmailOut
protected java.lang.String myFirstName
protected java.lang.String myLastName
protected java.lang.Integer myReturnValue
| Constructor Detail |
public SpParmSQL()
| Method Detail |
public void callSpParmSQL(java.sql.Connection theConnection)
throws java.sql.SQLException
theConnection - The OPEN JDBC connection to usejava.sql.SQLException - An unexpected JDBC event occurredpublic void clearProperties()
public void close()
public void closeCall()
throws java.sql.SQLException
java.sql.SQLException - An unexpected JDBC event occurred
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - superclass could throw this
private java.lang.Integer getCallInteger(java.sql.CallableStatement theCallableStatement,
int theIndex)
throws java.sql.SQLException
theCallableStatement - Used to get the procedure parameters and return valuetheIndex - The parameter index to getjava.sql.SQLException - An unexpected JDBC event occurredpublic java.lang.String getEmailIn()
public java.lang.String getEmailOut()
public java.lang.String getFirstName()
public java.lang.String getLastName()
public java.lang.Integer getReturnValue()
public void postCall()
throws java.sql.SQLException
java.sql.SQLException - An unexpected JDBC event occurredpublic void setEmailIn(java.lang.String theEmailIn)
theEmailIn - Value to assign to the property @EmailInpublic void setEmailOut(java.lang.String theEmailOut)
theEmailOut - Value to assign to the property @EmailOutpublic void setFirstName(java.lang.String theFirstName)
theFirstName - Value to assign to the property @FirstNamepublic void setLastName(java.lang.String theLastName)
theLastName - Value to assign to the property @LastNamepublic void setReturnValue(java.lang.Integer theReturnValue)
theReturnValue - Value to assign to the property @RETURN_VALUE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||