public class PostgresqlDataHandler extends RowIdHandler
Constructor and Description |
---|
PostgresqlDataHandler(DataHandler datahandler)
Decorator for handling Postgresql specific issues.
|
Modifier and Type | Method and Description |
---|---|
PyObject |
getPyObject(java.sql.ResultSet set,
int col,
int type)
Override to handle Postgresql related issues.
|
protected java.lang.String |
getRowIdMethodName()
Return the name of the method that returns the last row id.
|
void |
setJDBCObject(java.sql.PreparedStatement stmt,
int index,
PyObject object)
Method setJDBCObject
|
void |
setJDBCObject(java.sql.PreparedStatement stmt,
int index,
PyObject object,
int type)
Provide fixes for Postgresql driver.
|
getRowId
__chain__, postExecute, preExecute
checkNull, createUnsupportedTypeSQLException, getMetaDataName, getProcedure, getPyObject, getSystemDataHandler, read, read, registerOut, toString
public PostgresqlDataHandler(DataHandler datahandler)
datahandler
- the delegate DataHandlerprotected java.lang.String getRowIdMethodName()
RowIdHandler
getRowIdMethodName
in class RowIdHandler
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
getPyObject
in class FilterDataHandler
set
- the result setcol
- the column numbertype
- the SQL typejava.sql.SQLException
- thrown for a sql exceptionpublic void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type) throws java.sql.SQLException
setJDBCObject
in class FilterDataHandler
stmt
- index
- object
- type
- java.sql.SQLException
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object) throws java.sql.SQLException
FilterDataHandler
setJDBCObject
in class FilterDataHandler
stmt
- the current PreparedStatementindex
- the index for which this object is boundobject
- the PyObject in questionjava.sql.SQLException