public class OracleDataHandler extends FilterDataHandler
Constructor and Description |
---|
OracleDataHandler(DataHandler datahandler)
Default constructor for DataHandler filtering.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMetaDataName(PyObject name)
Method getMetaDataName
|
PyObject |
getPyObject(java.sql.ResultSet set,
int col,
int type)
Provide functionality for Oracle specific types, such as ROWID.
|
void |
registerOut(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.
|
void |
setJDBCObject(java.sql.PreparedStatement stmt,
int index,
PyObject object,
int type)
Provide functionality for Oracle specific types, such as ROWID.
|
__chain__, getRowId, postExecute, preExecute, setJDBCObject
checkNull, createUnsupportedTypeSQLException, getProcedure, getPyObject, getSystemDataHandler, read, read, toString
public OracleDataHandler(DataHandler datahandler)
public java.lang.String getMetaDataName(PyObject name)
getMetaDataName
in class DataHandler
name
- public void setJDBCObject(java.sql.PreparedStatement stmt, int index, PyObject object, int type) throws java.sql.SQLException
setJDBCObject
in class FilterDataHandler
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 boundjava.sql.SQLException
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
getPyObject
in class FilterDataHandler
set
- the current ResultSet set to the current rowcol
- the column number (adjusted properly for JDBC)type
- the column typejava.sql.SQLException
- if the type is unmappablepublic void registerOut(java.sql.CallableStatement statement, int index, int colType, int dataType, java.lang.String dataTypeName) throws java.sql.SQLException
registerOut
in class DataHandler
statement
- index
- the JDBC offset column numbercolType
- the column as from DatabaseMetaData (eg, procedureColumnOut)dataType
- the JDBC datatype from TypesdataTypeName
- the JDBC datatype namejava.sql.SQLException