com.ziclix.python.sql

Class JDBC20DataHandler


public class JDBC20DataHandler
extends FilterDataHandler

Support for JDBC 2.x type mappings, including Arrays, CLOBs and BLOBs.
Version:
$Revision: 2467 $
Authors:
brian zimmer
last revised by $Author: fwierzbicki $

Constructor Summary

JDBC20DataHandler(DataHandler datahandler)
Handle JDBC 2.0 datatypes.

Method Summary

PyObject
getPyObject(ResultSet set, int col, int type)
Get the object from the result set.
void
setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)
Handle CLOBs and BLOBs.

Methods inherited from class com.ziclix.python.sql.FilterDataHandler

__chain__, getPyObject, getRowId, postExecute, preExecute, setJDBCObject, setJDBCObject

Methods inherited from class com.ziclix.python.sql.DataHandler

__chain__, checkNull, getMetaDataName, getProcedure, getPyObject, getPyObject, getRowId, getSystemDataHandler, postExecute, preExecute, read, read, registerOut, setJDBCObject, setJDBCObject, toString

Constructor Details

JDBC20DataHandler

public JDBC20DataHandler(DataHandler datahandler)
Handle JDBC 2.0 datatypes.

Method Details

getPyObject

public PyObject getPyObject(ResultSet set,
                            int col,
                            int type)
            throws SQLException
Get the object from the result set.
Overrides:
getPyObject in interface FilterDataHandler
Parameters:
set -
col -
type -
Returns:
a Python object

setJDBCObject

public void setJDBCObject(PreparedStatement stmt,
                          int index,
                          PyObject object,
                          int type)
            throws SQLException
Handle CLOBs and BLOBs.
Overrides:
setJDBCObject in interface FilterDataHandler
Parameters:
stmt -
index -
object -
type -

Jython homepage