Package com.ziclix.python.sql
Class JDBC20DataHandler
java.lang.Object
com.ziclix.python.sql.DataHandler
com.ziclix.python.sql.FilterDataHandler
com.ziclix.python.sql.JDBC20DataHandler
Support for JDBC 2.x type mappings, including Arrays, CLOBs and BLOBs.
- Author:
- brian zimmer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPyObject
(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__, getRowId, postExecute, preExecute, setJDBCObject
Methods inherited from class com.ziclix.python.sql.DataHandler
checkNull, getMetaDataName, getProcedure, getPyObject, getSystemDataHandler, read, read, registerOut, toString
-
Constructor Details
-
JDBC20DataHandler
Handle JDBC 2.0 datatypes.
-
-
Method Details
-
setJDBCObject
public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException Handle CLOBs and BLOBs.- Overrides:
setJDBCObject
in classFilterDataHandler
- Parameters:
stmt
-index
-object
-type
-- Throws:
SQLException
-
getPyObject
Get the object from the result set.- Overrides:
getPyObject
in classFilterDataHandler
- Parameters:
set
-col
-type
-- Returns:
- a Python object
- Throws:
SQLException
-