Top Description Constructors Methods
com.ziclix.python.sql

public Class JDBC20DataHandler

extends FilterDataHandler
Class Inheritance
Imports
java.io.BufferedInputStream, .ByteArrayInputStream, .InputStream, .Reader, java.math.BigDecimal, java.sql.Array, .Blob, .PreparedStatement, .ResultSet, .SQLException, .Types, org.python.core.Py, .PyFile, .PyObject, org.python.core.util.StringUtil

Support for JDBC 2.x type mappings, including Arrays, CLOBs and BLOBs.
Author
brian zimmer

Constructor Summary

AccessConstructor and Description
public
JDBC20DataHandler(DataHandler datahandler)

Handle JDBC 2.0 datatypes.

Method Summary

Modifier and TypeMethod and Description
public PyObject

Returns:

a Python object
getPyObject
(ResultSet set, int col, int type)

Overrides com.ziclix.python.sql.FilterDataHandler.getPyObject.

Get the object from the result set.

public void
setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)

Overrides com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Handle CLOBs and BLOBs.

Inherited from com.ziclix.python.sql.FilterDataHandler:
__chain__getRowIdpostExecutepreExecutesetJDBCObject

Constructor Detail

JDBC20DataHandlerback to summary
public JDBC20DataHandler(DataHandler datahandler)

Handle JDBC 2.0 datatypes.

Method Detail

getPyObjectback to summary
public PyObject getPyObject(ResultSet set, int col, int type) throws SQLException

Overrides com.ziclix.python.sql.FilterDataHandler.getPyObject.

Get the object from the result set.

Returns:PyObject

a Python object

Annotations
@Override
Exceptions
SQLException:

Doc from com.ziclix.python.sql.DataHandler.getPyObject.

if the type is unmappable

setJDBCObjectback to summary
public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException

Overrides com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Handle CLOBs and BLOBs.

Annotations
@SuppressWarnings:fallthrough
@Override