com.ziclix.python.sql

Class FilterDataHandler

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 $

Author: brian zimmer last revised by $Author: bzimmer $

Constructor Summary
FilterDataHandler(DataHandler delegate)
Constructor FilterDataHandler
Method Summary
PyObjectgetPyObject(ResultSet set, int col, int type)
Method getPyObject
PyObjectgetRowId(Statement stmt)
Returns the row id of the last executed statement.
voidpostExecute(Statement stmt)
Method postExecute
voidpreExecute(Statement stmt)
Method preExecute
voidsetJDBCObject(PreparedStatement stmt, int index, PyObject object)
Method setJDBCObject
voidsetJDBCObject(PreparedStatement stmt, int index, PyObject object, int type)
Method setJDBCObject
PyObject__chain__()
Returns a list of datahandlers chained together through the use of delegation.

Constructor Detail

FilterDataHandler

public FilterDataHandler(DataHandler delegate)
Constructor FilterDataHandler

Parameters: delegate

Method Detail

getPyObject

public PyObject getPyObject(ResultSet set, int col, int type)
Method getPyObject

Parameters: set col type

Returns: PyObject

Throws: SQLException

getRowId

public PyObject getRowId(Statement stmt)
Returns the row id of the last executed statement.

Parameters: stmt

Returns: PyObject

Throws: SQLException

postExecute

public void postExecute(Statement stmt)
Method postExecute

Parameters: stmt

Throws: SQLException

preExecute

public void preExecute(Statement stmt)
Method preExecute

Parameters: stmt

Throws: SQLException

setJDBCObject

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

Parameters: stmt index object

Throws: SQLException

setJDBCObject

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

Parameters: stmt index object type

Throws: SQLException

__chain__

public PyObject __chain__()
Returns a list of datahandlers chained together through the use of delegation.

Returns: a list of datahandlers chained together through the use of delegation

Jython homepage