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 $

Author: brian zimmer last revised by $Author: fwierzbicki $

Constructor Summary
JDBC20DataHandler(DataHandler datahandler)
Handle JDBC 2.0 datatypes.
Method Summary
PyObjectgetPyObject(ResultSet set, int col, int type)
Get the object from the result set.
voidsetJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)
Handle CLOBs and BLOBs.

Constructor Detail

JDBC20DataHandler

public JDBC20DataHandler(DataHandler datahandler)
Handle JDBC 2.0 datatypes.

Method Detail

getPyObject

public PyObject getPyObject(ResultSet set, int col, int type)
Get the object from the result set.

Parameters: set col type

Returns: a Python object

Throws: SQLException

setJDBCObject

public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)
Handle CLOBs and BLOBs.

Parameters: stmt index object type

Throws: SQLException