| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | Returns: a list of datahandlersOverrides com. Returns a list of datahandlers chained together through the use of delegation. |
| public String | getMetaDataName(PyObject name)
Overrides com. Some database vendors are case sensitive on calls to DatabaseMetaData, most notably Oracle. |
| public Procedure | Returns: an instance of a Procedurean open cursor cursor, PyObject the name of the procedure to invoke name)Overrides com. A factory method for determing the correct procedure class to use per the cursor type. |
| public PyObject | getPyObject(ResultSet
the current ResultSet set to the current row set, int the column number (adjusted properly for JDBC) col, int the column type type)Overrides com. Given a ResultSet, column and type, return the appropriate Jython object. |
| public PyObject | getPyObject(CallableStatement
the CallableStatement stmt, int the column number (adjusted properly for JDBC) col, int the column type type)Overrides com. Given a CallableStatement, column and type, return the appropriate Jython object. |
| public PyObject | Returns: the row id of the last executed statement or Nonethe current statement stmt)Overrides com. Returns the row id of the last executed statement. |
| public void | postExecute(Statement stmt)
Overrides com. A callback after successfully executing the statement. |
| public void | preExecute(Statement stmt)
Overrides com. A callback prior to each execution of the statement. |
| public void | registerOut(CallableStatement statement, int
the JDBC offset column number index, int the column as from DatabaseMetaData (eg, procedureColumnOut) colType, int the JDBC datatype from Types dataType, String the JDBC datatype name dataTypeName)Overrides com. Called when a stored procedure or function is executed and OUT parameters need to be registered with the statement. |
| public void | setJDBCObject(PreparedStatement
the current PreparedStatement stmt, int the index for which this object is bound index, PyObject the PyObject in question object)Overrides com. Any .execute() which uses prepared statements will receive a callback for deciding how to map the PyObject to the appropriate JDBC type. |
| public void | setJDBCObject(PreparedStatement
the current PreparedStatement stmt, int the index for which this object is bound index, PyObject the PyObject in question object, int the java.sql.Types for which this PyObject should be bound type)Overrides com. Any .execute() which uses prepared statements will receive a callback for deciding how to map the PyObject to the appropriate JDBC type. |
| Jython22DataHandler | back to summary |
|---|---|
| public Jython22DataHandler() Handle most generic Java data types. | |
| __chain__ | back to summary |
|---|---|
| public PyObject __chain__() Overrides com. Returns a list of datahandlers chained together through the use of delegation. | |
| getMetaDataName | back to summary |
|---|---|
| public String getMetaDataName(PyObject name) Overrides com. Some database vendors are case sensitive on calls to DatabaseMetaData, most notably Oracle. This callback allows a DataHandler to affect the name.
| |
| getProcedure | back to summary |
|---|---|
| public Procedure getProcedure(PyCursor cursor, PyObject name) throws SQLException Overrides com. A factory method for determing the correct procedure class to use per the cursor type. an instance of a Procedure | |
| getPyObject | back to summary |
|---|---|
| public PyObject getPyObject(ResultSet set, int col, int type) throws SQLException Overrides com. Given a ResultSet, column and type, return the appropriate Jython object. Note DO NOT iterate the ResultSet.
| |
| getPyObject | back to summary |
|---|---|
| public PyObject getPyObject(CallableStatement stmt, int col, int type) throws SQLException Overrides com. Given a CallableStatement, column and type, return the appropriate Jython object.
| |
| getRowId | back to summary |
|---|---|
| public PyObject getRowId(Statement stmt) throws SQLException Overrides com. Returns the row id of the last executed statement.
| |
| postExecute | back to summary |
|---|---|
| public void postExecute(Statement stmt) throws SQLException Overrides com. A callback after successfully executing the statement.
| |
| preExecute | back to summary |
|---|---|
| public void preExecute(Statement stmt) throws SQLException Overrides com. A callback prior to each execution of the statement. If the statement is a PreparedStatement, all the parameters will have been set.
| |
| registerOut | back to summary |
|---|---|
| public void registerOut(CallableStatement statement, int index, int colType, int dataType, String dataTypeName) throws SQLException Overrides com. Called when a stored procedure or function is executed and OUT parameters need to be registered with the statement.
| |
| setJDBCObject | back to summary |
|---|---|
| public void setJDBCObject(PreparedStatement stmt, int index, PyObject object) throws SQLException Overrides com. Any .execute() which uses prepared statements will receive a callback for deciding how to map the PyObject to the appropriate JDBC type.
| |
| setJDBCObject | back to summary |
|---|---|
| public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException Overrides com. Any .execute() which uses prepared statements will receive a callback for deciding how to map the PyObject to the appropriate JDBC type. The type is the JDBC type as obtained from java.sql.Types.
| |