Java Doc for RowData.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) 


com.mysql.jdbc.RowData

All known Subclasses:   com.mysql.jdbc.RowDataCursor,  com.mysql.jdbc.RowDataDynamic,  com.mysql.jdbc.RowDataStatic,  com.mysql.jdbc.RowDataKeyset,
RowData
public interface RowData (Code)
This interface abstracts away how row data is accessed by the result set. It is meant to allow a static implementation (Current version), and a streaming one.
author:
   dgan


Field Summary
final public static  intRESULT_SET_SIZE_UNKNOWN
     What's returned for the size of a result set when its size can not be determined.


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

Field Detail
RESULT_SET_SIZE_UNKNOWN
final public static int RESULT_SET_SIZE_UNKNOWN(Code)
What's returned for the size of a result set when its size can not be determined.





Method Detail
addRow
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
void afterLast() throws SQLException(Code)
Moves to after last.
throws:
  SQLException - if a database error occurs



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



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



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



getAt
ResultSetRow getAt(int index) 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
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
ResultSetInternalMethods getOwner()(Code)
Returns the result set that 'owns' this RowData



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



isAfterLast
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
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
boolean isDynamic() throws SQLException(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
throws:
  SQLException - if a database error occurs



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



isFirst
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
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
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
ResultSetRow next() throws SQLException(Code)
Returns the next row. the next row value
throws:
  SQLException - if a database error occurs



removeRow
void removeRow(int index) 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
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
void setMetadata(Field[] metadata)(Code)
Sometimes the driver doesn't have metadata until after the statement has the result set in-hand (because it's cached), so it can call this to set it after the fact.
Parameters:
  metadata - field-level metadata for the result set



setOwner
void setOwner(ResultSetImpl rs)(Code)
Set the result set that 'owns' this RowData
Parameters:
  rs - the result set that 'owns' this RowData



size
int size() throws SQLException(Code)
Only works on non dynamic result sets. the size of this row data
throws:
  SQLException - if a database error occurs



wasEmpty
boolean wasEmpty()(Code)
Did this result set have no rows?



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