com.ziclix.python.sql.handler
Class PostgresqlDataHandler
- java.lang.Object
-
- com.ziclix.python.sql.DataHandler
-
- com.ziclix.python.sql.FilterDataHandler
-
- com.ziclix.python.sql.handler.RowIdHandler
-
- com.ziclix.python.sql.handler.PostgresqlDataHandler
-
public class PostgresqlDataHandler extends RowIdHandler
Postgresql specific data handling.
-
-
Constructor Summary
Constructors Constructor and Description PostgresqlDataHandler(DataHandler datahandler)Decorator for handling Postgresql specific issues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PyObjectgetPyObject(java.sql.ResultSet set, int col, int type)Override to handle Postgresql related issues.voidsetJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object)Method setJDBCObjectvoidsetJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type)Provide fixes for Postgresql driver.-
Methods inherited from class com.ziclix.python.sql.handler.RowIdHandler
getRowId
-
Methods inherited from class com.ziclix.python.sql.FilterDataHandler
__chain__, postExecute, preExecute
-
Methods inherited from class com.ziclix.python.sql.DataHandler
checkNull, getMetaDataName, getProcedure, getPyObject, getSystemDataHandler, read, read, registerOut, toString
-
-
-
-
Constructor Detail
-
PostgresqlDataHandler
public PostgresqlDataHandler(DataHandler datahandler)
Decorator for handling Postgresql specific issues.- Parameters:
datahandler- the delegate DataHandler
-
-
Method Detail
-
getPyObject
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
Override to handle Postgresql related issues.- Overrides:
getPyObjectin classFilterDataHandler- Parameters:
set- the result setcol- the column numbertype- the SQL type- Returns:
- the mapped Python object
- Throws:
java.sql.SQLException- thrown for a sql exception
-
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type) throws java.sql.SQLExceptionProvide fixes for Postgresql driver.- Overrides:
setJDBCObjectin classFilterDataHandler- Parameters:
stmt-index-object-type-- Throws:
java.sql.SQLException
-
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object) throws java.sql.SQLExceptionDescription copied from class:FilterDataHandlerMethod setJDBCObject- Overrides:
setJDBCObjectin classFilterDataHandler- Parameters:
stmt- the current PreparedStatementindex- the index for which this object is boundobject- the PyObject in question- Throws:
java.sql.SQLException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG