Java Doc for NetCursor.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » net » 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.client.net 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.client.am.Cursor
      org.apache.derby.client.net.NetCursor

All known Subclasses:   org.apache.derby.client.net.NetSqldta,
NetCursor
public class NetCursor extends org.apache.derby.client.am.Cursor (Code)


Field Summary
 booleanblocking_
    
 java.util.ArrayListextdtaData_
    
 java.util.HashMapextdtaPositions_
    
 boolean[]isGraphic_
    
 intmaximumRowSize_
    
 NetAgentnetAgent_
    
 NetResultSetnetResultSet_
    
 intnumMddOverrides_
    
 TypdefqrydscTypdef_
    
 booleanrtnextrow_
    
 inttargetSqlamForTypdef_
    
 int[]typeToUseForComputingDataLength_
    

Constructor Summary
 NetCursor(NetAgent netAgent)
    
 NetCursor(NetAgent netAgent, int qryprctyp)
    

Method Summary
 voidallocateColumnOffsetAndLengthArrays()
    
protected  voidallocateDataBuffer()
    
protected  voidallocateDataBuffer(int length)
    
protected  booleancalculateColumnOffsetsForRow_(int rowIndex, boolean allowServerFetch)
     Calculate the column offsets for a row.

Pseudo-code:

  1. parse thru the current row in dataBuffer computing column offsets
  2. if (we hit the super.lastValidBytePosition, ie.
 voidcalculateLobColumnPositionsForRow()
    
protected  voidclearLobData_()
    
 intensureSpaceForDataBuffer(int ddmLength)
    
protected  byte[]findExtdtaData(int column)
    
public  BlobgetBlobColumn_(int column, Agent agent)
    
public  byte[]getClobBytes_(int column, int[] dataOffset)
    
public  ClobgetClobColumn_(int column, Agent agent)
    
protected  intgetDecimalLength(int index)
    
protected  voidgetMoreData_()
    
final  booleangetQryclsimpEnabled()
     Check whether QRYCLSIMP is enabled on this cursor.
 voidinitializeColumnInfoArrays(Typdef typdef, int columnCount, int targetSqlamForTypdef)
    
protected  booleanisDataBufferNull()
    
 booleanisNonTrivialDataLob(int index)
    
public  voidnullDataForGC()
    
 NetSqlca[]parseSQLCARD(Typdef typdef)
    
 voidparseSQLDCTOKS()
    
 voidscanDataBufferForEndOfData()
     Scan the data buffer to see if end of data (SQL state 02000) has been received.
final public  voidsetAllRowsReceivedFromServer(boolean b)
     Set the value of value of allRowsReceivedFromServer_.
 voidsetBlocking(int queryProtocolType)
    
final  voidsetQryclsimpEnabled(boolean flag)
     Set a flag indicating whether QRYCLSIMP is enabled.

Field Detail
blocking_
boolean blocking_(Code)



extdtaData_
java.util.ArrayList extdtaData_(Code)



extdtaPositions_
java.util.HashMap extdtaPositions_(Code)



isGraphic_
boolean[] isGraphic_(Code)



maximumRowSize_
int maximumRowSize_(Code)



netAgent_
NetAgent netAgent_(Code)



netResultSet_
NetResultSet netResultSet_(Code)



numMddOverrides_
int numMddOverrides_(Code)



qrydscTypdef_
Typdef qrydscTypdef_(Code)



rtnextrow_
boolean rtnextrow_(Code)



targetSqlamForTypdef_
int targetSqlamForTypdef_(Code)



typeToUseForComputingDataLength_
int[] typeToUseForComputingDataLength_(Code)




Constructor Detail
NetCursor
NetCursor(NetAgent netAgent)(Code)



NetCursor
NetCursor(NetAgent netAgent, int qryprctyp)(Code)




Method Detail
allocateColumnOffsetAndLengthArrays
void allocateColumnOffsetAndLengthArrays()(Code)



allocateDataBuffer
protected void allocateDataBuffer()(Code)



allocateDataBuffer
protected void allocateDataBuffer(int length)(Code)



calculateColumnOffsetsForRow_
protected boolean calculateColumnOffsetsForRow_(int rowIndex, boolean allowServerFetch) throws SqlException, DisconnectException(Code)
Calculate the column offsets for a row.

Pseudo-code:

  1. parse thru the current row in dataBuffer computing column offsets
  2. if (we hit the super.lastValidBytePosition, ie. encounter partial row)
    1. shift partial row bytes to beginning of dataBuffer (this.shiftPartialRowToBeginning())
    2. reset current row position (also done by this.shiftPartialRowToBeginning())
    3. send and recv continue-query into commBuffer (rs.flowContinueQuery())
    4. parse commBuffer up to QRYDTA (rs.flowContinueQuery())
    5. copy query data from reply's commBuffer to our dataBuffer (this.copyQrydta())

Parameters:
  rowIndex - row index
Parameters:
  allowServerFetch - if true, allow fetching more data fromserver true if the current row position is avalid row position.
exception:
  SqlException -
exception:
  DisconnectException -



calculateLobColumnPositionsForRow
void calculateLobColumnPositionsForRow()(Code)



clearLobData_
protected void clearLobData_()(Code)



ensureSpaceForDataBuffer
int ensureSpaceForDataBuffer(int ddmLength)(Code)



findExtdtaData
protected byte[] findExtdtaData(int column)(Code)



getBlobColumn_
public Blob getBlobColumn_(int column, Agent agent) throws SqlException(Code)



getClobBytes_
public byte[] getClobBytes_(int column, int[] dataOffset) throws SqlException(Code)



getClobColumn_
public Clob getClobColumn_(int column, Agent agent) throws SqlException(Code)



getDecimalLength
protected int getDecimalLength(int index)(Code)



getMoreData_
protected void getMoreData_() throws SqlException(Code)



getQryclsimpEnabled
final boolean getQryclsimpEnabled()(Code)
Check whether QRYCLSIMP is enabled on this cursor. true if QRYCLSIMP is enabled



initializeColumnInfoArrays
void initializeColumnInfoArrays(Typdef typdef, int columnCount, int targetSqlamForTypdef) throws DisconnectException(Code)



isDataBufferNull
protected boolean isDataBufferNull()(Code)



isNonTrivialDataLob
boolean isNonTrivialDataLob(int index)(Code)



nullDataForGC
public void nullDataForGC()(Code)



parseSQLCARD
NetSqlca[] parseSQLCARD(Typdef typdef) throws org.apache.derby.client.am.DisconnectException, SqlException(Code)



parseSQLDCTOKS
void parseSQLDCTOKS() throws DisconnectException, SqlException(Code)



scanDataBufferForEndOfData
void scanDataBufferForEndOfData() throws SqlException(Code)
Scan the data buffer to see if end of data (SQL state 02000) has been received. This method should only be called when the cursor is being closed since the pointer to the current row can be modified.
exception:
  SqlException -



setAllRowsReceivedFromServer
final public void setAllRowsReceivedFromServer(boolean b)(Code)
Set the value of value of allRowsReceivedFromServer_.
Parameters:
  b - a boolean value indicating whether allrows are received from the server



setBlocking
void setBlocking(int queryProtocolType)(Code)



setQryclsimpEnabled
final void setQryclsimpEnabled(boolean flag)(Code)
Set a flag indicating whether QRYCLSIMP is enabled.
Parameters:
  flag - true if QRYCLSIMP is enabled



Fields inherited from org.apache.derby.client.am.Cursor
final public static int BYTES(Code)(Java Doc)
final public static int DBCS_CLOB(Code)(Java Doc)
final public static int MBCS_CLOB(Code)(Java Doc)
final public static int NULL_TERMINATED_BYTES(Code)(Java Doc)
final public static int NULL_TERMINATED_STRING(Code)(Java Doc)
final public static java.lang.Boolean ROW_IS_NOT_NULL(Code)(Java Doc)
final public static java.lang.Boolean ROW_IS_NULL(Code)(Java Doc)
final public static int SBCS_CLOB(Code)(Java Doc)
final public static int STRING(Code)(Java Doc)
final public static int VARIABLE_BYTES(Code)(Java Doc)
final public static int VARIABLE_SHORT_BYTES(Code)(Java Doc)
final public static int VARIABLE_SHORT_STRING(Code)(Java Doc)
final public static int VARIABLE_STRING(Code)(Java Doc)
protected Agent agent_(Code)(Java Doc)
public int[] ccsid_(Code)(Java Doc)
public String[] charsetName_(Code)(Java Doc)
protected int[] columnDataComputedLength_(Code)(Java Doc)
protected java.util.ArrayList columnDataIsNullCache_(Code)(Java Doc)
protected java.util.ArrayList columnDataLengthCache_(Code)(Java Doc)
protected java.util.ArrayList columnDataPositionCache_(Code)(Java Doc)
protected int[] columnDataPosition_(Code)(Java Doc)
public int columns_(Code)(Java Doc)
protected int currentRowPosition_(Code)(Java Doc)
public java.io.ByteArrayOutputStream dataBufferStream_(Code)(Java Doc)
public byte[] dataBuffer_(Code)(Java Doc)
public int[] fdocaLength_(Code)(Java Doc)
public boolean hasLobs_(Code)(Java Doc)
public boolean[] isNull_(Code)(Java Doc)
public java.util.ArrayList isUpdateDeleteHoleCache_(Code)(Java Doc)
public boolean isUpdateDeleteHole_(Code)(Java Doc)
public int[] jdbcTypes_(Code)(Java Doc)
public int lastValidBytePosition_(Code)(Java Doc)
public boolean[] nullable_(Code)(Java Doc)
public int position_(Code)(Java Doc)

Methods inherited from org.apache.derby.client.am.Cursor
final public boolean allRowsReceivedFromServer()(Code)(Java Doc)
final public void allocateCharBuffer()(Code)(Java Doc)
abstract protected boolean calculateColumnOffsetsForRow_(int row, boolean allowServerFetch) throws SqlException, DisconnectException(Code)(Java Doc)
abstract protected void clearLobData_()(Code)(Java Doc)
final public boolean currentRowPositionIsEqualToNextRowPosition()(Code)(Java Doc)
final public boolean dataBufferHasUnprocessedData()(Code)(Java Doc)
final public java.sql.Array getArray(int column) throws SqlException(Code)(Java Doc)
final public java.io.InputStream getAsciiStream(int column) throws SqlException(Code)(Java Doc)
final public java.io.InputStream getBinaryStream(int column) throws SqlException(Code)(Java Doc)
final public java.sql.Blob getBlob(int column) throws SqlException(Code)(Java Doc)
abstract public Blob getBlobColumn_(int column, Agent agent) throws SqlException(Code)(Java Doc)
final public java.io.Reader getCharacterStream(int column) throws SqlException(Code)(Java Doc)
final public java.sql.Clob getClob(int column) throws SqlException(Code)(Java Doc)
abstract public byte[] getClobBytes_(int column, int[] dataOffset) throws SqlException(Code)(Java Doc)
abstract public Clob getClobColumn_(int column, Agent agent) throws SqlException(Code)(Java Doc)
final public byte[] getDataBuffer()(Code)(Java Doc)
final public int getDataBufferLength()(Code)(Java Doc)
final public boolean getIsRowUpdated()(Code)(Java Doc)
final public boolean getIsUpdateDeleteHole()(Code)(Java Doc)
final public int getLastValidBytePosition()(Code)(Java Doc)
abstract protected void getMoreData_() throws SqlException(Code)(Java Doc)
final public Object getObject(int column) throws SqlException(Code)(Java Doc)
final public java.sql.Ref getRef(int column) throws SqlException(Code)(Java Doc)
final public java.io.InputStream getUnicodeStream(int column) throws SqlException(Code)(Java Doc)
final public void incrementRowsReadEvent()(Code)(Java Doc)
final public void makeNextRowPositionCurrent()(Code)(Java Doc)
final public void markCurrentRowPosition()(Code)(Java Doc)
final public void markNextRowPosition()(Code)(Java Doc)
public boolean next() throws SqlException(Code)(Java Doc)
public void nullDataForGC()(Code)(Java Doc)
final public void resetDataBuffer()(Code)(Java Doc)
public void setAllRowsReceivedFromServer(boolean b)(Code)(Java Doc)
final public void setBuffer(byte[] dataBuffer)(Code)(Java Doc)
final public void setIsRowUpdated(boolean isRowUpdated)(Code)(Java Doc)
final public void setIsUpdataDeleteHole(int row, boolean isRowNull)(Code)(Java Doc)
public void setNumberOfColumns(int numberOfColumns)(Code)(Java Doc)
protected boolean stepNext(boolean allowServerFetch) throws SqlException(Code)(Java Doc)

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.