com.ziclix.python.sql.handler
Class SQLServerDataHandler
- java.lang.Object
-
- com.ziclix.python.sql.DataHandler
-
- com.ziclix.python.sql.FilterDataHandler
-
- com.ziclix.python.sql.handler.SQLServerDataHandler
-
public class SQLServerDataHandler extends FilterDataHandler
SQLServer specific data handling.
-
-
Field Summary
Fields Modifier and Type Field and Description static intUNICODE_VARCHARField UNICODE_VARCHAR
-
Constructor Summary
Constructors Constructor and Description SQLServerDataHandler(DataHandler datahandler)Decorator for handling SQLServer specific issues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ProceduregetProcedure(PyCursor cursor, PyObject name)A factory method for determing the correct procedure class to use per the cursor type.PyObjectgetPyObject(java.sql.ResultSet set, int col, int type)Given a ResultSet, column and type, return the appropriate Jython object.-
Methods inherited from class com.ziclix.python.sql.FilterDataHandler
__chain__, getRowId, postExecute, preExecute, setJDBCObject, setJDBCObject
-
Methods inherited from class com.ziclix.python.sql.DataHandler
checkNull, getMetaDataName, getPyObject, getSystemDataHandler, read, read, registerOut, toString
-
-
-
-
Field Detail
-
UNICODE_VARCHAR
public static final int UNICODE_VARCHAR
Field UNICODE_VARCHAR- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLServerDataHandler
public SQLServerDataHandler(DataHandler datahandler)
Decorator for handling SQLServer specific issues.- Parameters:
datahandler- the delegate DataHandler
-
-
Method Detail
-
getProcedure
public Procedure getProcedure(PyCursor cursor, PyObject name) throws java.sql.SQLException
Description copied from class:DataHandlerA factory method for determing the correct procedure class to use per the cursor type.- Overrides:
getProcedurein classDataHandler- Parameters:
cursor- an open cursorname- the name of the procedure to invoke- Returns:
- an instance of a Procedure
- Throws:
java.sql.SQLException
-
getPyObject
public PyObject getPyObject(java.sql.ResultSet set, int col, int type) throws java.sql.SQLException
Given a ResultSet, column and type, return the appropriate Jython object.Note: DO NOT iterate the ResultSet.
- 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG