Java Doc for DRDAStatement.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » drda » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.impl.drda 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.drda.DRDAStatement

DRDAStatement
class DRDAStatement (Code)
DRDAStatement stores information about the statement being executed


Field Summary
protected static  intNOT_OUTPUT_PARAM
    
protected  intblksize
    
protected  intbyteOrder
    
protected  intccsidDBC
    
protected  StringccsidDBCEncoding
    
protected  intccsidMBC
    
protected  StringccsidMBCEncoding
    
protected  intccsidSBC
    
protected  StringccsidSBCEncoding
    
protected  VectorcliParamDrdaTypes
    
protected  ArrayListcliParamExtPositions
    
protected  VectorcliParamLens
    
protected  intconcurType
    
protected  StringcursorName
    
protected  Databasedatabase
    
 booleanexplicitlyPrepared
    
protected  booleanisCall
    
protected  intisolationLevel
    
protected  intmaxblkext
    
protected  intmaxrslcnt
    
protected  intnbrrow
    
 booleanneedsToSendParamData
    
protected  intoutovropt
    
protected  booleanoutputExpected
    
protected  ConsistencyTokenpkgcnstkn
    
protected  Stringpkgid
    
protected  intpkgsn
    
protected  StringprocName
    
protected  PreparedStatementps
    
protected  booleanqryrfrtbl
    
protected  intqryrowset
    
protected  longrowCount
    
protected  byte[]rslsetflg
    
protected  intscrollType
    
protected  EngineParameterMetaDatastmtPmeta
    
protected  StringtypDefNam
    
 intwithHoldCursor
    

Constructor Summary
 DRDAStatement(Database database)
    

Method Summary
protected  voidCLSQRY()
     Explicitly close the result set by CLSQRY needed to check for double close.
protected  voidaddExtDtaObject(Object o, int jdbcIndex)
    
protected  ConsistencyTokenaddResultSet(ResultSet value, int holdValue)
     Add a new resultSet to this statement.
protected  ConsistencyTokencalculateResultSetPkgcnstkn(int rsNum)
     For a single result set, just echo the consistency token that the client sent us.
protected  voidclearExtDtaObjects()
    
protected  voidclose()
     This method closes the JDBC objects and frees up all references held by this object.
protected  booleanexecute()
     Executes the prepared statement and populates the resultSetTable.
protected  PreparedStatementexplicitPrepare(String sqlStmt)
    
protected  voidfinishParams()
     clear out type data for parameters.
protected  intgetBlksize()
    
protected  intgetConcurType()
    
protected  DRDAResultSetgetCurrentDrdaResultSet()
    
protected  ArrayListgetExtDtaObjects()
    
protected  intgetNumParams()
    
protected  intgetNumResultSets()
    
protected  intgetNumRsCols()
    
protected  int[]getOutovr_drdaType()
    
 intgetOutputParamType(int paramNum)
     get type for output parameter.
protected static  intgetOutputParameterTypeFromClassName(String objectName)
     Given an object class name get the paramameter type if the parameter mode is unknown.
protected  intgetParamDRDAType(int index)
    
protected  intgetParamLen(int index)
     returns drda length of parameter as sent by client.
protected  intgetParamPrecision(int index)
    
protected  intgetParamScale(int index)
    
protected  EngineParameterMetaDatagetParameterMetaData()
     Retrieve the ParameterMetaData for the prepared statement.
protected  PkgnamcsngetPkgnamcsn()
    
protected  PreparedStatementgetPreparedStatement()
    
protected  intgetQryprctyp()
    
protected  longgetQryrownbr()
    
protected  intgetQryrowset()
    
protected  booleangetQryrtndta()
    
protected  intgetQryscrorn()
    
protected  ResultSetgetResultSet()
    
public  StringgetResultSetCursorName(int rsNum)
    
protected  intgetResultSetHoldability()
     get resultSetHoldability.
 intgetResultSetHoldability(ResultSet rs)
     get resultSetHoldability.
protected  ConsistencyTokengetResultSetPkgcnstkn(int rsNum)
    
protected  intgetRsDRDAType(int index)
    
protected  int[]getRsDRDATypes()
    
protected  intgetRsLen(int index)
    
protected  int[]getRsLens()
    
protected  intgetRsPrecision(int index)
    
protected  intgetRsScale(int index)
    
protected  intgetScrollType()
    
public  byte[]getSplitQRYDTA()
    
protected  StatementgetStatement()
    
protected  booleanhasOutputParams()
    
protected  booleanhasdata()
    
protected  voidinitialize()
     This method is used to initialize the default statement of the database for re-use.
protected  booleanisCallableStatement()
    
protected  booleanisExtDtaValueNullable(int index)
    
 booleanisOutputParam(int paramNum)
    
 booleanisRSCloseImplicit(boolean lmtblkprcOK)
     Method to decide whether the ResultSet should be closed implicitly based on the QRYCLSIMP value sent from the client.
protected  booleanisScrollable()
    
protected  PreparedStatementprepare(String sqlStmt)
    
public  voidregisterAllOutParams()
    
public  voidregisterOutParam(int paramNum)
    
protected  voidreset()
     This method resets the state of this DRDAStatement object so that it can be re-used.
protected  voidrsClose()
    
protected  booleanrsIsClosed()
    
protected  voidrsSuspend()
    
protected  voidsetConcurType(int scrollType)
    
protected  voidsetCurrentDrdaResultSet(int rsNum)
    
protected  voidsetCurrentDrdaResultSet(Pkgnamcsn pkgnamcsn)
    
protected  voidsetDatabase(Database database)
    
protected  voidsetExtDtaObjects(ArrayList a)
    
protected  voidsetHasdata(boolean hasdata)
    
protected  voidsetOPNQRYOptions(int blksize, int qryblkctl, int maxblkext, int outovropt, int qryrowset, int qryclsimpl)
     Set query options sent on OPNQRY and pass options down to the current DRDAResultSet object.
protected  voidsetOutovr_drdaType(int[] outovr_drdaType)
    
protected  voidsetParamDRDAType(int index, byte type)
    
protected  voidsetParamLen(int index, int value)
    
protected  voidsetPkgnamcsn(Pkgnamcsn pkgnamcsn)
     Set the pkgid sec num for this statement and the consistency token that will be used for the first resultSet. For dyamic packages The package name is encoded as follows SYS(S/L)(H/N)xyy where 'S' represents Small package and 'L' large (ignored by cloudscape) Where 'H' represents WITH HOLD, and 'N' represents NO WITH HOLD.
protected  voidsetQryprctyp(int qryprctyp)
    
protected  voidsetQryrownbr(long qryrownbr)
    
protected  voidsetQryrtndta(boolean qryrtndta)
    
protected  voidsetQryscrorn(int qryscrorn)
    
protected  voidsetQueryOptions(int blksize, boolean qryrelscr, long qryrownbr, boolean qryfrtbl, int nbrrow, int maxblkext, int qryscrorn, boolean qryrowsns, boolean qryblkrst, boolean qryrtndta, int qryrowset, int rtnextdta)
    
protected  voidsetResultSet(ResultSet value)
    
protected  voidsetRsDRDAType(int index, int type)
    
protected  voidsetRsDRDATypes(int[] value)
    
protected  voidsetRsDefaultOptions(DRDAResultSet drs)
    
protected  voidsetRsLen(int index, int value)
    
protected  voidsetRsLens(int[] value)
    
protected  voidsetRsPrecision(int index, int precision)
    
protected  voidsetRsScale(int index, int scale)
    
protected  voidsetScrollType(int scrollType)
    
public  voidsetSplitQRYDTA(byte[] data)
    
protected  voidsetStatement(Connection conn)
    
protected  voidsetTypDefValues()
    
protected  StringtoDebugString(String indent)
    
protected  booleanwasExplicitlyClosed()
    
protected  booleanwasExplicitlyPrepared()
    

Field Detail
NOT_OUTPUT_PARAM
protected static int NOT_OUTPUT_PARAM(Code)



blksize
protected int blksize(Code)



byteOrder
protected int byteOrder(Code)



ccsidDBC
protected int ccsidDBC(Code)



ccsidDBCEncoding
protected String ccsidDBCEncoding(Code)



ccsidMBC
protected int ccsidMBC(Code)



ccsidMBCEncoding
protected String ccsidMBCEncoding(Code)



ccsidSBC
protected int ccsidSBC(Code)



ccsidSBCEncoding
protected String ccsidSBCEncoding(Code)



cliParamDrdaTypes
protected Vector cliParamDrdaTypes(Code)



cliParamExtPositions
protected ArrayList cliParamExtPositions(Code)



cliParamLens
protected Vector cliParamLens(Code)



concurType
protected int concurType(Code)



cursorName
protected String cursorName(Code)



database
protected Database database(Code)



explicitlyPrepared
boolean explicitlyPrepared(Code)



isCall
protected boolean isCall(Code)



isolationLevel
protected int isolationLevel(Code)



maxblkext
protected int maxblkext(Code)



maxrslcnt
protected int maxrslcnt(Code)



nbrrow
protected int nbrrow(Code)



needsToSendParamData
boolean needsToSendParamData(Code)



outovropt
protected int outovropt(Code)



outputExpected
protected boolean outputExpected(Code)



pkgcnstkn
protected ConsistencyToken pkgcnstkn(Code)



pkgid
protected String pkgid(Code)



pkgsn
protected int pkgsn(Code)



procName
protected String procName(Code)



ps
protected PreparedStatement ps(Code)



qryrfrtbl
protected boolean qryrfrtbl(Code)



qryrowset
protected int qryrowset(Code)



rowCount
protected long rowCount(Code)



rslsetflg
protected byte[] rslsetflg(Code)



scrollType
protected int scrollType(Code)



stmtPmeta
protected EngineParameterMetaData stmtPmeta(Code)



typDefNam
protected String typDefNam(Code)



withHoldCursor
int withHoldCursor(Code)




Constructor Detail
DRDAStatement
DRDAStatement(Database database)(Code)
DRDAStatement constructor
Parameters:
  database -




Method Detail
CLSQRY
protected void CLSQRY()(Code)
Explicitly close the result set by CLSQRY needed to check for double close.



addExtDtaObject
protected void addExtDtaObject(Object o, int jdbcIndex)(Code)
Add extDtaObject
Parameters:
  o - - object to add
Parameters:
  jdbcIndex - - jdbc index for parameter



addResultSet
protected ConsistencyToken addResultSet(ResultSet value, int holdValue) throws SQLException(Code)
Add a new resultSet to this statement. Set as the current result set if there is not an existing current resultset.
Parameters:
  value - - ResultSet to add
Parameters:
  holdValue - - Holdability of the ResultSet Consistency token for this resultSetFor a single resultSet that is the same as the statement's For multiple resultSets just the consistency token is changed



calculateResultSetPkgcnstkn
protected ConsistencyToken calculateResultSetPkgcnstkn(int rsNum)(Code)
For a single result set, just echo the consistency token that the client sent us. For subsequent resultSets, just subtract the resultset number from the consistency token and that will differentiate the result sets. This seems to be what DB2 does
Parameters:
  rsNum - - result set # starting with 0 Consistency token for result set



clearExtDtaObjects
protected void clearExtDtaObjects()(Code)
Clear externalized lob objects in current result set



close
protected void close() throws SQLException(Code)
This method closes the JDBC objects and frees up all references held by this object.
throws:
  SQLException -



execute
protected boolean execute() throws SQLException(Code)
Executes the prepared statement and populates the resultSetTable. Access to the various resultSets is then possible by using setCurrentDrdaResultSet(String pkgnamcsn) to set the current resultSet and then calling getResultSet() or the other access methods to get resultset data. true if the execution has resultSets



explicitPrepare
protected PreparedStatement explicitPrepare(String sqlStmt) throws SQLException(Code)



finishParams
protected void finishParams()(Code)
clear out type data for parameters. Unfortunately we currently overload the resultSet type info rsDRDATypes et al with parameter info. RESOLVE: Need to separate this



getBlksize
protected int getBlksize()(Code)



getConcurType
protected int getConcurType()(Code)



getCurrentDrdaResultSet
protected DRDAResultSet getCurrentDrdaResultSet()(Code)
Gets the current DRDA ResultSet DRDAResultSet



getExtDtaObjects
protected ArrayList getExtDtaObjects()(Code)
Get the extData Objects ArrayList with extdta



getNumParams
protected int getNumParams()(Code)
get the number of parameters for this statement number of parameters



getNumResultSets
protected int getNumResultSets()(Code)
number of result sets



getNumRsCols
protected int getNumRsCols()(Code)
get the number of result set columns for the current resultSet number of columns



getOutovr_drdaType
protected int[] getOutovr_drdaType()(Code)



getOutputParamType
int getOutputParamType(int paramNum)(Code)
get type for output parameter.
Parameters:
  paramNum - - parameter number starting with 1 jdbcType or NOT_OUTPUT_PARAM if this is not an output parameter



getOutputParameterTypeFromClassName
protected static int getOutputParameterTypeFromClassName(String objectName)(Code)
Given an object class name get the paramameter type if the parameter mode is unknown. Arrays except for byte arrrays are assumed to be output parameters TINYINT output parameters are going to be broken because there is no way to differentiate them from binary input parameters.
Parameters:
  objectName - Class name of object being evaluated.indicating if this an output parameter type from java.sql.Types



getParamDRDAType
protected int getParamDRDAType(int index)(Code)
get parameter DRDAType
Parameters:
  index - - starting with 1 DRDA Type of column



getParamLen
protected int getParamLen(int index)(Code)
returns drda length of parameter as sent by client.
Parameters:
  index - data length



getParamPrecision
protected int getParamPrecision(int index) throws SQLException(Code)
get parameter precision or DB2 max (31)
Parameters:
  index - parameter index starting with 1 precision



getParamScale
protected int getParamScale(int index) throws SQLException(Code)
get parameter scale or DB2 max (31)
Parameters:
  index - parameter index starting with 1 scale



getParameterMetaData
protected EngineParameterMetaData getParameterMetaData() throws SQLException(Code)
Retrieve the ParameterMetaData for the prepared statement. To do so, use the engine defined interfaces:
See Also:   org.apache.derby.iapi.jdbc.EnginePreparedStatement
See Also:   org.apache.derby.iapi.jdbc.EngineParameterMetaData
See Also:    EngineParameterMetaData for the prepared statement. Note: there is no separate BrokeredParameterSetMetaData.



getPkgnamcsn
protected Pkgnamcsn getPkgnamcsn()(Code)
Get pkgnamcsn pkgnamcsn



getPreparedStatement
protected PreparedStatement getPreparedStatement() throws SQLException(Code)
Get prepared statement prepared statement



getQryprctyp
protected int getQryprctyp() throws SQLException(Code)



getQryrownbr
protected long getQryrownbr()(Code)



getQryrowset
protected int getQryrowset()(Code)



getQryrtndta
protected boolean getQryrtndta()(Code)



getQryscrorn
protected int getQryscrorn()(Code)



getResultSet
protected ResultSet getResultSet()(Code)
Get result set result set



getResultSetCursorName
public String getResultSetCursorName(int rsNum) throws SQLException(Code)

Parameters:
  rsNum - - result set # starting with 0



getResultSetHoldability
protected int getResultSetHoldability() throws SQLException(Code)
get resultSetHoldability. the resultSet holdability for the prepared statement



getResultSetHoldability
int getResultSetHoldability(ResultSet rs) throws SQLException(Code)
get resultSetHoldability.
Parameters:
  rs - ResultSet the resultSet holdability for the prepared statement



getResultSetPkgcnstkn
protected ConsistencyToken getResultSetPkgcnstkn(int rsNum)(Code)

Parameters:
  rsNum - result set starting with 0 consistency token (key) for the result set



getRsDRDAType
protected int getRsDRDAType(int index)(Code)
get resultset/out parameter DRDAType
Parameters:
  index - - starting with 1 DRDA Type of column



getRsDRDATypes
protected int[] getRsDRDATypes()(Code)
ResultSet DRDA DataTypes



getRsLen
protected int getRsLen(int index)(Code)
get resultset/out parameter DRDALen
Parameters:
  index - starting with 1 length of drda data



getRsLens
protected int[] getRsLens()(Code)
ResultSet DRDA DataTypes Lengths



getRsPrecision
protected int getRsPrecision(int index)(Code)
get resultset /out paramter precision
Parameters:
  index - -starting with 1 precision of column



getRsScale
protected int getRsScale(int index)(Code)
get resultset /out paramter scale
Parameters:
  index - -starting with 1 scale of column



getScrollType
protected int getScrollType()(Code)



getSplitQRYDTA
public byte[] getSplitQRYDTA()(Code)



getStatement
protected Statement getStatement() throws SQLException(Code)
Get the statement statement
exception:
  SQLException -



hasOutputParams
protected boolean hasOutputParams()(Code)



hasdata
protected boolean hasdata()(Code)



initialize
protected void initialize()(Code)
This method is used to initialize the default statement of the database for re-use. It is different from reset() method since default statements get initiliazed differently. e.g: stmt variable used in default statement is created only once in Database.makeConnection. TODO: Need to see what exactly it means to initialize the default statement. (DERBY-1002)



isCallableStatement
protected boolean isCallableStatement()(Code)



isExtDtaValueNullable
protected boolean isExtDtaValueNullable(int index)(Code)



isOutputParam
boolean isOutputParam(int paramNum)(Code)
is parameter an ouput parameter
Parameters:
  paramNum - parameter number starting with 1.return true if this is an output parameter.



isRSCloseImplicit
boolean isRSCloseImplicit(boolean lmtblkprcOK) throws SQLException(Code)
Method to decide whether the ResultSet should be closed implicitly based on the QRYCLSIMP value sent from the client. Only forward-only result sets should be implicitly closed. Some clients do not expect result sets to be closed implicitly if the protocol is LMTBLKPRC.
Parameters:
  lmtblkprcOK - true if the client expectsQRYCLSIMP to be respected for the LMTBLKPRC protocol implicit close boolean
exception:
  SQLException -



isScrollable
protected boolean isScrollable()(Code)
is this a scrollable cursor? return true if this is not a forward only cursor



prepare
protected PreparedStatement prepare(String sqlStmt) throws SQLException(Code)
Create a prepared statement
Parameters:
  sqlStmt - - SQL statement
exception:
  SQLException -



registerAllOutParams
public void registerAllOutParams() throws SQLException(Code)



registerOutParam
public void registerOutParam(int paramNum) throws SQLException(Code)



reset
protected void reset()(Code)
This method resets the state of this DRDAStatement object so that it can be re-used. This method should reset all variables of this class except the following: 1. database - This variable gets initialized in the constructor and by call to setDatabase. 2. members which get initialized in setPkgnamcsn (pkgnamcsn, pkgcnstkn, pkgid, pkgsn, isolationLevel, cursorName). pkgnamcsn is the key used to find if the DRDAStatement can be re-used. Hence its value will not change when the object is re-used.



rsClose
protected void rsClose() throws SQLException(Code)
Close the current resultSet



rsIsClosed
protected boolean rsIsClosed()(Code)
is Statement closed whether the statement is closed



rsSuspend
protected void rsSuspend()(Code)
Set state to SUSPENDED (result set is opened)



setConcurType
protected void setConcurType(int scrollType)(Code)



setCurrentDrdaResultSet
protected void setCurrentDrdaResultSet(int rsNum)(Code)
Set currentDrdaResultSet
Parameters:
  rsNum - The result set number starting with 0



setCurrentDrdaResultSet
protected void setCurrentDrdaResultSet(Pkgnamcsn pkgnamcsn)(Code)
Set currentDrdaResultSet
Parameters:
  pkgnamcsn - The pkgid section number and unique resultsetconsistency token



setDatabase
protected void setDatabase(Database database)(Code)
Set database
Parameters:
  database -



setExtDtaObjects
protected void setExtDtaObjects(ArrayList a)(Code)
Set the extData Objects



setHasdata
protected void setHasdata(boolean hasdata)(Code)



setOPNQRYOptions
protected void setOPNQRYOptions(int blksize, int qryblkctl, int maxblkext, int outovropt, int qryrowset, int qryclsimpl)(Code)
Set query options sent on OPNQRY and pass options down to the current DRDAResultSet object.
Parameters:
  blksize - QRYBLKSZ (Query Block Size)
Parameters:
  qryblkctl - QRYPRCTYP (Query Protocol Type)
Parameters:
  maxblkext - MAXBLKEXT (Maximum Number of Extra Blocks)
Parameters:
  outovropt - OUTOVROPT (Output Override Option)
Parameters:
  qryrowset - QRYROWSET (Query Rowset Size)
Parameters:
  qryclsimpl - QRYCLSIMP (Query Close Implicit)
See Also:   DRDAResultSet.setOPNQRYOptions(intintintintintint)



setOutovr_drdaType
protected void setOutovr_drdaType(int[] outovr_drdaType)(Code)



setParamDRDAType
protected void setParamDRDAType(int index, byte type)(Code)
set param DRDAType
Parameters:
  index - - starting with 1
Parameters:
  type -



setParamLen
protected void setParamLen(int index, int value)(Code)
save parameter len sent by client
Parameters:
  index - parameter index starting with 1
Parameters:
  value - length of data value



setPkgnamcsn
protected void setPkgnamcsn(Pkgnamcsn pkgnamcsn)(Code)
Set the pkgid sec num for this statement and the consistency token that will be used for the first resultSet. For dyamic packages The package name is encoded as follows SYS(S/L)(H/N)xyy where 'S' represents Small package and 'L' large (ignored by cloudscape) Where 'H' represents WITH HOLD, and 'N' represents NO WITH HOLD. (May be overridden by SQLATTR for WITH HOLD") Where 'www' is the package iteration (ignored by cloudcape) Where 'x' is the isolation level: 0=NC, 1=UR, 2=CS, 3=RS, 4=RR Where 'yy' is the package iteration 00 through FF Where 'zz' is unique for each platform Happilly, these values correspond precisely to the internal cloudscape isolation levels in ExecutionContext.java x Isolation Level -- --------------------- 0 NC (java.sql.Connection.TRANSACTION_NONE) 1 UR (java.sql.Connection.TRANACTION_READ_UNCOMMITTED) 2 CS (java.sql.Connection.TRANSACTION_READ_COMMITTED) 3 RS (java.sql.Connection.TRANSACTION_REPEATABLE_READ) 4 RR (java.sql.Connection.TRANSACTION_SERIALIZABLE) static packages have preset isolation levels (see getStaticPackageIsolation)
Parameters:
  pkgnamcsn - package id section number and token from the client



setQryprctyp
protected void setQryprctyp(int qryprctyp)(Code)



setQryrownbr
protected void setQryrownbr(long qryrownbr)(Code)



setQryrtndta
protected void setQryrtndta(boolean qryrtndta)(Code)



setQryscrorn
protected void setQryscrorn(int qryscrorn)(Code)



setQueryOptions
protected void setQueryOptions(int blksize, boolean qryrelscr, long qryrownbr, boolean qryfrtbl, int nbrrow, int maxblkext, int qryscrorn, boolean qryrowsns, boolean qryblkrst, boolean qryrtndta, int qryrowset, int rtnextdta)(Code)



setResultSet
protected void setResultSet(ResultSet value) throws SQLException(Code)
Set result set
Parameters:
  value -



setRsDRDAType
protected void setRsDRDAType(int index, int type)(Code)
set result DRDAType
Parameters:
  index - - starting with 1
Parameters:
  type -



setRsDRDATypes
protected void setRsDRDATypes(int[] value)(Code)
Set ResultSet DRDA DataTypes
Parameters:
  value - drdaTypes for columns.



setRsDefaultOptions
protected void setRsDefaultOptions(DRDAResultSet drs)(Code)
Set resultSet defaults to match the statement defaults sent on EXCSQLSTT This might be overridden on OPNQRY or CNTQRY



setRsLen
protected void setRsLen(int index, int value)(Code)
set resultset column data length
Parameters:
  index - starting with 1
Parameters:
  value - length



setRsLens
protected void setRsLens(int[] value)(Code)
Set ResultSet DRDA DataTypes Lengths
Parameters:
  value - drdaTypes for columns.



setRsPrecision
protected void setRsPrecision(int index, int precision)(Code)
set resultset/out parameter precision
Parameters:
  index - - starting with 1
Parameters:
  precision -



setRsScale
protected void setRsScale(int index, int scale)(Code)
set resultset/out parameter scale
Parameters:
  index - - starting with 1
Parameters:
  scale -



setScrollType
protected void setScrollType(int scrollType)(Code)



setSplitQRYDTA
public void setSplitQRYDTA(byte[] data)(Code)



setStatement
protected void setStatement(Connection conn) throws SQLException(Code)
Set statement
Parameters:
  conn - Connection
exception:
  SQLException -



setTypDefValues
protected void setTypDefValues()(Code)
set TypDef values



toDebugString
protected String toDebugString(String indent)(Code)



wasExplicitlyClosed
protected boolean wasExplicitlyClosed()(Code)



wasExplicitlyPrepared
protected boolean wasExplicitlyPrepared()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.