Java Doc for RowDataDynamic.java in  » Database-JDBC-Connection-Pool » mysql-connector-java-5.1.3 » com » mysql » jdbc » 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 JDBC Connection Pool » mysql connector java 5.1.3 » com.mysql.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mysql.jdbc.RowDataDynamic

RowDataDynamic
public class RowDataDynamic implements RowData(Code)
Allows streaming of MySQL data.
author:
   dgan
version:
   $Id: RowDataDynamic.java 6454 2007-06-21 17:03:53Z mmatthews $

Inner Class :class OperationNotSupportedException extends SQLException


Constructor Summary
public  RowDataDynamic(MysqlIO io, int colCount, Field[] fields, boolean isBinaryEncoded)
     Creates a new RowDataDynamic object.

Method Summary
public  voidaddRow(ResultSetRow row)
     Adds a row to this row data.
public  voidafterLast()
     Moves to after last.
public  voidbeforeFirst()
     Moves to before first.
public  voidbeforeLast()
     Moves to before last so next el is the last el.
public  voidclose()
     We're done.
public  ResultSetRowgetAt(int ind)
     Only works on non dynamic result sets.
public  intgetCurrentRowNumber()
     Returns the current position in the result set as a row number.
public  ResultSetInternalMethodsgetOwner()
    
public  booleanhasNext()
     Returns true if another row exsists.
public  booleanisAfterLast()
     Returns true if we got the last element.
public  booleanisBeforeFirst()
     Returns if iteration has not occured yet.
public  booleanisDynamic()
     Returns true if the result set is dynamic.
public  booleanisEmpty()
     Has no records.
public  booleanisFirst()
    
public  booleanisLast()
    
public  voidmoveRowRelative(int rows)
     Moves the current position relative 'rows' from the current position.
public  ResultSetRownext()
     Returns the next row.
public  voidremoveRow(int ind)
     Removes the row at the given index.
public  voidsetCurrentRow(int rowNumber)
     Moves the current position in the result set to the given row number.
public  voidsetMetadata(Field[] metadata)
    
public  voidsetOwner(ResultSetImpl rs)
    
public  intsize()
     Only works on non dynamic result sets.
public  booleanwasEmpty()
    


Constructor Detail
RowDataDynamic
public RowDataDynamic(MysqlIO io, int colCount, Field[] fields, boolean isBinaryEncoded) throws SQLException(Code)
Creates a new RowDataDynamic object.
Parameters:
  io - the connection to MySQL that this data is coming from
Parameters:
  metadata - the metadata that describe this data
Parameters:
  isBinaryEncoded - is this data in native format?
Parameters:
  colCount - the number of columns
throws:
  SQLException - if the next record can not be found




Method Detail
addRow
public void addRow(ResultSetRow row) throws SQLException(Code)
Adds a row to this row data.
Parameters:
  row - the row to add
throws:
  SQLException - if a database error occurs



afterLast
public void afterLast() throws SQLException(Code)
Moves to after last.
throws:
  SQLException - if a database error occurs



beforeFirst
public void beforeFirst() throws SQLException(Code)
Moves to before first.
throws:
  SQLException - if a database error occurs



beforeLast
public void beforeLast() throws SQLException(Code)
Moves to before last so next el is the last el.
throws:
  SQLException - if a database error occurs



close
public void close() throws SQLException(Code)
We're done.
throws:
  SQLException - if a database error occurs



getAt
public ResultSetRow getAt(int ind) throws SQLException(Code)
Only works on non dynamic result sets.
Parameters:
  index - row number to get at row data at index
throws:
  SQLException - if a database error occurs



getCurrentRowNumber
public int getCurrentRowNumber() throws SQLException(Code)
Returns the current position in the result set as a row number. the current row number
throws:
  SQLException - if a database error occurs



getOwner
public ResultSetInternalMethods getOwner()(Code)

See Also:   com.mysql.jdbc.RowData.getOwner



hasNext
public boolean hasNext() throws SQLException(Code)
Returns true if another row exsists. true if more rows
throws:
  SQLException - if a database error occurs



isAfterLast
public boolean isAfterLast() throws SQLException(Code)
Returns true if we got the last element. true if after last row
throws:
  SQLException - if a database error occurs



isBeforeFirst
public boolean isBeforeFirst() throws SQLException(Code)
Returns if iteration has not occured yet. true if before first row
throws:
  SQLException - if a database error occurs



isDynamic
public boolean isDynamic()(Code)
Returns true if the result set is dynamic. This means that move back and move forward won't work because we do not hold on to the records. true if this result set is streaming from the server



isEmpty
public boolean isEmpty() throws SQLException(Code)
Has no records. true if no records
throws:
  SQLException - if a database error occurs



isFirst
public boolean isFirst() throws SQLException(Code)
Are we on the first row of the result set? true if on first row
throws:
  SQLException - if a database error occurs



isLast
public boolean isLast() throws SQLException(Code)
Are we on the last row of the result set? true if on last row
throws:
  SQLException - if a database error occurs



moveRowRelative
public void moveRowRelative(int rows) throws SQLException(Code)
Moves the current position relative 'rows' from the current position.
Parameters:
  rows - the relative number of rows to move
throws:
  SQLException - if a database error occurs



next
public ResultSetRow next() throws SQLException(Code)
Returns the next row. the next row value
throws:
  SQLException - if a database error occurs



removeRow
public void removeRow(int ind) throws SQLException(Code)
Removes the row at the given index.
Parameters:
  index - the row to move to
throws:
  SQLException - if a database error occurs



setCurrentRow
public void setCurrentRow(int rowNumber) throws SQLException(Code)
Moves the current position in the result set to the given row number.
Parameters:
  rowNumber - row to move to
throws:
  SQLException - if a database error occurs



setMetadata
public void setMetadata(Field[] metadata)(Code)



setOwner
public void setOwner(ResultSetImpl rs)(Code)

See Also:   com.mysql.jdbc.RowData.setOwner(com.mysql.jdbc.ResultSetInternalMethods)



size
public int size()(Code)
Only works on non dynamic result sets. the size of this row data



wasEmpty
public boolean wasEmpty()(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.