com.ziclix.python.sql
Class  JDBC20DataHandler
java.lang.Object
  |
  +--com.ziclix.python.sql.DataHandler
        |
        +--com.ziclix.python.sql.FilterDataHandler
              |
              +--com.ziclix.python.sql.JDBC20DataHandler
- public class JDBC20DataHandler- extends FilterDataHandler
Support for JDBC 2.x type mappings, including Arrays, CLOBs and BLOBs.
- Version:
- $Revision: 1.1 $
- Author:
- brian zimmer, last revised by $Author: bzimmer $
 
| Method Summary | 
|  PyObject | getPyObject(java.sql.ResultSet set,
            int col,
            int type)Get the object from the result set.
 | 
|  void | setJDBCObject(java.sql.PreparedStatement stmt,
              int index,
              PyObject object,
              int type)Handle CLOBs and BLOBs.
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JDBC20DataHandler
public JDBC20DataHandler(DataHandler datahandler)
- Handle JDBC 2.0 datatypes.
 
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt,
                          int index,
                          PyObject object,
                          int type)
                   throws java.sql.SQLException
- Handle CLOBs and BLOBs.
 
- 
- Overrides:
- setJDBCObjectin class- FilterDataHandler
 
- 
- Parameters:
- stmt-
- index-
- object-
- type-
- Throws:
- java.sql.SQLException
 
getPyObject
public PyObject getPyObject(java.sql.ResultSet set,
                            int col,
                            int type)
                     throws java.sql.SQLException
- Get the object from the result set.
 
- 
- Overrides:
- getPyObjectin class- FilterDataHandler
 
- 
- Parameters:
- set-
- col-
- type-
- Returns:
- a Python object
- Throws:
- java.sql.SQLException
 
Jython homepage