com.ziclix.python.sql.handler
Class OracleDataHandler
- java.lang.Object
-
- com.ziclix.python.sql.DataHandler
-
- com.ziclix.python.sql.FilterDataHandler
-
- com.ziclix.python.sql.handler.OracleDataHandler
-
public class OracleDataHandler extends FilterDataHandler
Oracle specific data handling.
-
-
Constructor Summary
Constructors Constructor and Description OracleDataHandler(DataHandler datahandler)Default constructor for DataHandler filtering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetMetaDataName(PyObject name)Method getMetaDataNamePyObjectgetPyObject(java.sql.ResultSet set, int col, int type)Provide functionality for Oracle specific types, such as ROWID.voidregisterOut(java.sql.CallableStatement statement, int index, int colType, int dataType, java.lang.String dataTypeName)Called when a stored procedure or function is executed and OUT parameters need to be registered with the statement.voidsetJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type)Provide functionality for Oracle specific types, such as ROWID.-
Methods inherited from class com.ziclix.python.sql.FilterDataHandler
__chain__, getRowId, postExecute, preExecute, setJDBCObject
-
Methods inherited from class com.ziclix.python.sql.DataHandler
checkNull, getProcedure, getPyObject, getSystemDataHandler, read, read, toString
-
-
-
-
Constructor Detail
-
OracleDataHandler
public OracleDataHandler(DataHandler datahandler)
Default constructor for DataHandler filtering.
-
-
Method Detail
-
getMetaDataName
public java.lang.String getMetaDataName(PyObject name)
Method getMetaDataName- Overrides:
getMetaDataNamein classDataHandler- Parameters:
name-- Returns:
- String
-
setJDBCObject
public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type) throws java.sql.SQLExceptionProvide functionality for Oracle specific types, such as ROWID.- Overrides:
setJDBCObjectin classFilterDataHandler- Parameters:
stmt- the current PreparedStatementindex- the index for which this object is boundobject- the PyObject in questiontype- the java.sql.Types for which this PyObject should be bound- Throws:
java.sql.SQLException
-
getPyObject
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
Provide functionality for Oracle specific types, such as ROWID.- Overrides:
getPyObjectin classFilterDataHandler- Parameters:
set- the current ResultSet set to the current rowcol- the column number (adjusted properly for JDBC)type- the column type- Returns:
- PyObject
- Throws:
java.sql.SQLException- if the type is unmappable
-
registerOut
public void registerOut(java.sql.CallableStatement statement, int index, int colType, int dataType, java.lang.String dataTypeName) throws java.sql.SQLExceptionCalled when a stored procedure or function is executed and OUT parameters need to be registered with the statement.- Overrides:
registerOutin classDataHandler- Parameters:
statement-index- the JDBC offset column numbercolType- the column as from DatabaseMetaData (eg, procedureColumnOut)dataType- the JDBC datatype from TypesdataTypeName- the JDBC datatype name- Throws:
java.sql.SQLException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG