|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ziclix.python.sql.Procedure
public class Procedure
This class provides the necessary functionality to call stored procedures. It handles managing the database metadata and binding the appropriate parameters.
Constructor Summary | |
---|---|
Procedure(PyCursor cursor,
PyObject name)
Constructor Procedure |
Method Summary | |
---|---|
boolean |
isInput(int index)
This method determines whether the param at the specified index is an IN or INOUT param for a stored procedure. |
void |
normalizeInput(PyObject params,
PyObject bindings)
Prepare the binding dictionary with the correct datatypes. |
CallableStatement |
prepareCall()
Prepares the statement and registers the OUT/INOUT parameters (if any). |
CallableStatement |
prepareCall(PyObject rsType,
PyObject rsConcur)
Prepares the statement and registers the OUT/INOUT parameters (if any). |
String |
toSql()
Returns the call in the syntax: {? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Procedure(PyCursor cursor, PyObject name) throws SQLException
cursor
- cursor an open cursorname
- name a string or tuple representing the name
SQLException
Method Detail |
---|
public CallableStatement prepareCall() throws SQLException
SQLException
public CallableStatement prepareCall(PyObject rsType, PyObject rsConcur) throws SQLException
rsType
- the value of to be created ResultSet typersConcur
- the value of the to be created ResultSet concurrency
SQLException
public void normalizeInput(PyObject params, PyObject bindings) throws SQLException
params
- a non-None list of paramsbindings
- a dictionary of bindings
SQLException
public boolean isInput(int index) throws SQLException
index
- JDBC indexed column index (1, 2, ...)
SQLException
public String toSql() throws SQLException
SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |