com.ziclix.python.sql
Class DefaultDataHandler

java.lang.Object
  |
  +--com.ziclix.python.sql.DefaultDataHandler
All Implemented Interfaces:
DataHandler
Direct Known Subclasses:
JDBC20DataHandler

public class DefaultDataHandler
extends java.lang.Object
implements DataHandler

The default type handler. It supports all JDBC 1.x type mappings.

Version:
$Revision: 1.4 $
Author:
brian zimmer, last revised by $Author: bzimmer $

Constructor Summary
DefaultDataHandler()
          $CONSTRUCTOR_DESCRIPTION$
 
Method Summary
 org.python.core.PyObject getPyObject(java.sql.ResultSet set, int col, int type)
          $METHOD_DESCRIPTION$
 void setJDBCObject(java.sql.PreparedStatement stmt, int index, org.python.core.PyObject object)
          $METHOD_DESCRIPTION$
 void setJDBCObject(java.sql.PreparedStatement stmt, int index, org.python.core.PyObject object, int type)
          $METHOD_DESCRIPTION$
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataHandler

public DefaultDataHandler()
$CONSTRUCTOR_DESCRIPTION$
Method Detail

setJDBCObject

public void setJDBCObject(java.sql.PreparedStatement stmt,
                          int index,
                          org.python.core.PyObject object)
                   throws java.sql.SQLException
$METHOD_DESCRIPTION$
Specified by:
setJDBCObject in interface DataHandler
Parameters:
stmt -  
index -  
object -  
Throws:
java.sql.SQLException -  

setJDBCObject

public void setJDBCObject(java.sql.PreparedStatement stmt,
                          int index,
                          org.python.core.PyObject object,
                          int type)
                   throws java.sql.SQLException
$METHOD_DESCRIPTION$
Specified by:
setJDBCObject in interface DataHandler
Parameters:
stmt -  
index -  
object -  
type -  
Throws:
java.sql.SQLException -  

getPyObject

public org.python.core.PyObject getPyObject(java.sql.ResultSet set,
                                            int col,
                                            int type)
                                     throws java.sql.SQLException
$METHOD_DESCRIPTION$
Specified by:
getPyObject in interface DataHandler
Parameters:
set -  
col -  
type -  
Returns:
 
Throws:
java.sql.SQLException -  


Copyright (c) 2000 brian zimmer. All Rights Reserved.