public class SQLServerDataHandler extends FilterDataHandler
Modifier and Type | Field and Description |
---|---|
static int |
UNICODE_VARCHAR
Field UNICODE_VARCHAR
|
Constructor and Description |
---|
SQLServerDataHandler(DataHandler datahandler)
Decorator for handling SQLServer specific issues.
|
Modifier and Type | Method and Description |
---|---|
Procedure |
getProcedure(PyCursor cursor,
PyObject name)
A factory method for determing the correct procedure class to use
per the cursor type.
|
PyObject |
getPyObject(java.sql.ResultSet set,
int col,
int type)
Given a ResultSet, column and type, return the appropriate
Jython object.
|
__chain__, getRowId, postExecute, preExecute, setJDBCObject, setJDBCObject
checkNull, createUnsupportedTypeSQLException, getMetaDataName, getPyObject, getSystemDataHandler, read, read, registerOut, toString
public static final int UNICODE_VARCHAR
public SQLServerDataHandler(DataHandler datahandler)
datahandler
- the delegate DataHandlerpublic Procedure getProcedure(PyCursor cursor, PyObject name) throws java.sql.SQLException
DataHandler
getProcedure
in class DataHandler
cursor
- an open cursorname
- the name of the procedure to invokejava.sql.SQLException
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
Note: DO NOT iterate the ResultSet.
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 unmappable