Top Description Fields Constructors Methods
com.ziclix.python.sql

public abstract Class FilterDataHandler

extends DataHandler
Class Inheritance
Known Direct Subclasses
com.ziclix.python.sql.JDBC20DataHandler, com.ziclix.python.sql.JDBC30DataHandler, com.ziclix.python.sql.handler.InformixDataHandler, com.ziclix.python.sql.handler.OracleDataHandler, com.ziclix.python.sql.handler.RowIdHandler, com.ziclix.python.sql.handler.SQLServerDataHandler, com.ziclix.python.sql.handler.UpdateCountDataHandler
Imports
org.python.core.Py, .PyList, .PyObject, java.sql.PreparedStatement, .ResultSet, .SQLException, .Statement

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.
Author
brian zimmer

Field Summary

Modifier and TypeField and Description
private DataHandler

Constructor Summary

AccessConstructor and Description
public
FilterDataHandler(DataHandler delegate)

Constructor FilterDataHandler

Method Summary

Modifier and TypeMethod and Description
public PyObject

Returns:

a list of datahandlers chained together through the use of delegation
__chain__
()

Overrides com.ziclix.python.sql.DataHandler.__chain__.

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

public PyObject

Returns:

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

Overrides com.ziclix.python.sql.DataHandler.getPyObject.

Method getPyObject

public PyObject

Returns:

PyObject
getRowId
(Statement stmt)

Overrides com.ziclix.python.sql.DataHandler.getRowId.

Returns the row id of the last executed statement.

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

Overrides com.ziclix.python.sql.DataHandler.setJDBCObject.

Method setJDBCObject

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

Overrides com.ziclix.python.sql.DataHandler.setJDBCObject.

Method setJDBCObject

Inherited from com.ziclix.python.sql.DataHandler:
checkNullcreateUnsupportedTypeSQLExceptiongetMetaDataNamegetProceduregetPyObjectgetSystemDataHandlerreadreadregisterOuttoString

Field Detail

delegateback to summary
private DataHandler delegate

Constructor Detail

FilterDataHandlerback to summary
public FilterDataHandler(DataHandler delegate)

Constructor FilterDataHandler

Method Detail

__chain__back to summary
public PyObject __chain__()

Overrides com.ziclix.python.sql.DataHandler.__chain__.

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

Returns:PyObject

a list of datahandlers chained together through the use of delegation

getPyObjectback to summary
public PyObject getPyObject(ResultSet set, int col, int type) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.getPyObject.

Method getPyObject

Returns:PyObject

PyObject

Exceptions
SQLException:

Doc from com.ziclix.python.sql.DataHandler.getPyObject.

if the type is unmappable

getRowIdback to summary
public PyObject getRowId(Statement stmt) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.getRowId.

Returns the row id of the last executed statement.

Returns:PyObject

PyObject

Exceptions
SQLException:

Doc from com.ziclix.python.sql.DataHandler.getRowId.

thrown if an exception occurs

postExecuteback to summary
public void postExecute(Statement stmt) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.postExecute.

Method postExecute

preExecuteback to summary
public void preExecute(Statement stmt) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.preExecute.

Method preExecute

setJDBCObjectback to summary
public void setJDBCObject(PreparedStatement stmt, int index, PyObject object) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.setJDBCObject.

Method setJDBCObject

setJDBCObjectback to summary
public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException

Overrides com.ziclix.python.sql.DataHandler.setJDBCObject.

Method setJDBCObject