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

public Class PostgresqlDataHandler

extends RowIdHandler
Class Inheritance
Imports
com.ziclix.python.sql.DataHandler, org.python.core.Py, .PyFile, .PyObject, java.math.BigDecimal, .BigInteger, java.sql.PreparedStatement, .ResultSet, .SQLException, .Types

Postgresql specific data handling.
Author
brian zimmer

Constructor Summary

AccessConstructor and Description
public
PostgresqlDataHandler(DataHandler
the delegate DataHandler
datahandler
)

Decorator for handling Postgresql specific issues.

Method Summary

Modifier and TypeMethod and Description
public PyObject

Returns:

the mapped Python object
getPyObject
(ResultSet
the result set
set
,
int
the column number
col
,
int
the SQL type
type
)

Overrides com.ziclix.python.sql.FilterDataHandler.getPyObject.

Override to handle Postgresql related issues.

protected String
getRowIdMethodName()

Implements abstract com.ziclix.python.sql.handler.RowIdHandler.getRowIdMethodName.

Return the name of the method that returns the last row id. The method can take no arguments but the return type is flexible and will be figured out by the Jython runtime system.

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

Overrides com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Provide fixes for Postgresql driver.

public void
Inherited from com.ziclix.python.sql.handler.RowIdHandler:
getRowId

Constructor Detail

PostgresqlDataHandlerback to summary
public PostgresqlDataHandler(DataHandler datahandler)

Decorator for handling Postgresql specific issues.

Parameters
datahandler:DataHandler

the delegate DataHandler

Method Detail

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

Overrides com.ziclix.python.sql.FilterDataHandler.getPyObject.

Override to handle Postgresql related issues.

Parameters
set:ResultSet

the result set

col:int

the column number

type:int

the SQL type

Returns:PyObject

the mapped Python object

Annotations
@Override
Exceptions
SQLException:
thrown for a sql exception

getRowIdMethodNameback to summary
protected String getRowIdMethodName()

Implements abstract com.ziclix.python.sql.handler.RowIdHandler.getRowIdMethodName.

Doc from com.ziclix.python.sql.handler.RowIdHandler.getRowIdMethodName.

Return the name of the method that returns the last row id. The method can take no arguments but the return type is flexible and will be figured out by the Jython runtime system.

Returns:String

name of the method that returns the last row id

Annotations
@Override

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

Overrides com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Provide fixes for Postgresql driver.

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

Overrides com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Doc from com.ziclix.python.sql.FilterDataHandler.setJDBCObject.

Method setJDBCObject

Annotations
@Override