|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.jdbc.FBProcedureCall
Represents procedure call.
Constructor Summary | |
FBProcedureCall()
|
Method Summary | |
void |
addInputParam(FBProcedureParam param)
|
void |
addOutputParam(FBProcedureParam param)
|
FBProcedureParam |
addParam(int position,
java.lang.String param)
Add call parameter. |
boolean |
equals(java.lang.Object obj)
Check if obj is equal to this instance. |
FBProcedureParam |
getInputParam(int index)
Get input parameter by the specified index. |
java.util.List |
getInputParams()
|
java.lang.String |
getName()
|
FBProcedureParam |
getOutputParam(int index)
|
java.util.List |
getOutputParams()
|
java.lang.String |
getSQL(boolean select)
Get native SQL for the specified procedure call. |
int |
mapOutParamIndexToPosition(int index)
Map output parameter index to a column number of corresponding result set. |
void |
registerOutParam(int index,
int type)
Register output parameter. |
void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FBProcedureCall()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public FBProcedureParam getInputParam(int index)
index
- index for which parameter has to be returned.
FBProcedureParam
.public FBProcedureParam getOutputParam(int index)
public int mapOutParamIndexToPosition(int index) throws FBSQLException
index
- index to map.
-1
if no output parameter
with the specified index found.
FBSQLException
public java.util.List getInputParams()
public java.util.List getOutputParams()
public void addInputParam(FBProcedureParam param)
public void addOutputParam(FBProcedureParam param)
public FBProcedureParam addParam(int position, java.lang.String param)
position
- position of the parameter in the procedure call.param
- contents of the parameter.
FBProcedureParam
that was created to
represent this parameter.public void registerOutParam(int index, int type) throws java.sql.SQLException
index
- index of the parameter to mark as output.type
- SQL type of the parameter.
java.sql.SQLException
- if something went wrong.public java.lang.String getSQL(boolean select) throws FBSQLException
FBSQLException
public boolean equals(java.lang.Object obj)
obj
is equal to this instance.
true
iff obj
is instance of this class
representing the same procedure with the same parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |