Package com.ziclix.python.sql
Class FilterDataHandler
- java.lang.Object
-
- com.ziclix.python.sql.DataHandler
-
- com.ziclix.python.sql.FilterDataHandler
-
- Direct Known 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 $
- Author:
- brian zimmer, last revised by $Author: bzimmer $
-
-
Constructor Summary
Constructors Constructor Description FilterDataHandler(DataHandler delegate)Constructor FilterDataHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PyObject__chain__()Returns a list of datahandlers chained together through the use of delegation.PyObjectgetPyObject(java.sql.ResultSet set, int col, int type)Method getPyObjectPyObjectgetRowId(java.sql.Statement stmt)Returns the row id of the last executed statement.voidpostExecute(java.sql.Statement stmt)Method postExecutevoidpreExecute(java.sql.Statement stmt)Method preExecutevoidsetJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object)Method setJDBCObjectvoidsetJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type)Method setJDBCObject-
Methods inherited from class com.ziclix.python.sql.DataHandler
checkNull, getMetaDataName, getProcedure, getPyObject, getSystemDataHandler, read, read, registerOut, toString
-
-
-
-
Constructor Detail
-
FilterDataHandler
public FilterDataHandler(DataHandler delegate)
Constructor FilterDataHandler- Parameters:
delegate-
-
-
Method Detail
-
getRowId
public PyObject getRowId(java.sql.Statement stmt) throws java.sql.SQLException
Returns the row id of the last executed statement.- Overrides:
getRowIdin classDataHandler- Parameters:
stmt-- Returns:
- PyObject
- Throws:
java.sql.SQLException
-
preExecute
public void preExecute(java.sql.Statement stmt) throws java.sql.SQLExceptionMethod preExecute- Overrides:
preExecutein classDataHandler- Parameters:
stmt-- Throws:
java.sql.SQLException
-
postExecute
public void postExecute(java.sql.Statement stmt) throws java.sql.SQLExceptionMethod postExecute- Overrides:
postExecutein classDataHandler- Parameters:
stmt-- Throws:
java.sql.SQLException
-
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object) throws java.sql.SQLExceptionMethod setJDBCObject- Overrides:
setJDBCObjectin classDataHandler- Parameters:
stmt-index-object-- Throws:
java.sql.SQLException
-
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type) throws java.sql.SQLExceptionMethod setJDBCObject- Overrides:
setJDBCObjectin classDataHandler- 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
Method getPyObject- Overrides:
getPyObjectin classDataHandler- Parameters:
set-col-type-- Returns:
- PyObject
- Throws:
java.sql.SQLException
-
__chain__
public PyObject __chain__()
Returns a list of datahandlers chained together through the use of delegation.- Overrides:
__chain__in classDataHandler- Returns:
- a list of datahandlers chained together through the use of delegation
-
-