com.ziclix.python.sql

Class FilterDataHandler

Known Direct Subclasses:
JDBC20DataHandler, JDBC30DataHandler

public abstract class FilterDataHandler
extends DataHandler

A FilterDataHandler contains some other DataHandler, which it uses as its basic source of functionality, possibly transforming the calls along the way or providing additional functionality. The class FilterDataHandler itself simply overrides all methods of DataHandler with versions that pass all requests to the contained data handler.
Version:
$Revision: 2414 $
Authors:
brian zimmer
last revised by $Author: bzimmer $

Constructor Summary

FilterDataHandler(DataHandler delegate)
Constructor FilterDataHandler

Method Summary

PyObject
__chain__()
Returns a list of datahandlers chained together through the use of delegation.
PyObject
getPyObject(ResultSet set, int col, int type)
Method getPyObject
PyObject
getRowId(Statement stmt)
Returns the row id of the last executed statement.
void
postExecute(Statement stmt)
Method postExecute
void
preExecute(Statement stmt)
Method preExecute
void
setJDBCObject(PreparedStatement stmt, int index, PyObject object)
Method setJDBCObject
void
setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)
Method setJDBCObject

Methods inherited from class com.ziclix.python.sql.DataHandler

__chain__, checkNull, getMetaDataName, getProcedure, getPyObject, getPyObject, getRowId, getSystemDataHandler, postExecute, preExecute, read, read, registerOut, setJDBCObject, setJDBCObject, toString

Constructor Details

FilterDataHandler

public FilterDataHandler(DataHandler delegate)
Constructor FilterDataHandler
Parameters:
delegate -

Method Details

__chain__

public PyObject __chain__()
Returns a list of datahandlers chained together through the use of delegation.
Overrides:
__chain__ in interface DataHandler
Returns:
a list of datahandlers chained together through the use of delegation

getPyObject

public PyObject getPyObject(ResultSet set,
                            int col,
                            int type)
            throws SQLException
Method getPyObject
Overrides:
getPyObject in interface DataHandler
Parameters:
set -
col -
type -
Returns:
PyObject

getRowId

public PyObject getRowId(Statement stmt)
            throws SQLException
Returns the row id of the last executed statement.
Overrides:
getRowId in interface DataHandler
Parameters:
stmt -
Returns:
PyObject

postExecute

public void postExecute(Statement stmt)
            throws SQLException
Method postExecute
Overrides:
postExecute in interface DataHandler
Parameters:
stmt -

preExecute

public void preExecute(Statement stmt)
            throws SQLException
Method preExecute
Overrides:
preExecute in interface DataHandler
Parameters:
stmt -

setJDBCObject

public void setJDBCObject(PreparedStatement stmt,
                          int index,
                          PyObject object)
            throws SQLException
Method setJDBCObject
Overrides:
setJDBCObject in interface DataHandler
Parameters:
stmt -
index -
object -

setJDBCObject

public void setJDBCObject(PreparedStatement stmt,
                          int index,
                          PyObject object,
                          int type)
            throws SQLException
Method setJDBCObject
Overrides:
setJDBCObject in interface DataHandler
Parameters:
stmt -
index -
object -
type -

Jython homepage