Java Doc for WikiResultSet.java in  » Wiki-Engine » JAMWiki » org » jamwiki » db » 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 » Wiki Engine » JAMWiki » org.jamwiki.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jamwiki.db.WikiResultSet

WikiResultSet
public class WikiResultSet (Code)
This class is a wrapper around the java.sql.ResultSet class, allowing the data from a SQL query to be accessed without requiring that a database connection be held. The main advantage of this approach is that all connection handling can be done by low-level database functions, and the user can process a result set without the need to ensure that the connection is properly closed after the data is processed.



Constructor Summary
public  WikiResultSet()
     Constructor used primarily for building new result sets.
protected  WikiResultSet(ResultSet rs)
     Create a WikiResultSet from a standard ResultSet.

Method Summary
public  booleanabsolute(int row)
    

Moves the cursor to the given row number in this ResultSet object.

If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set.

public  voidaddRow(WikiResultSet rs)
     Method used to create a new WikiResultSet by copying rows of other WikiResultSet objects.
Parameters:
  rs - The SQLResult that is being copied.
public  voidbeforeFirst()
    

Moves the cursor to the front of this WikiResultSet object, just before the first row.

public  booleanfirst()
    
public  chargetChar(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a char value in the Java programming language.


Parameters:
  columnName - The SQL name of the column.
public  DategetDate(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.sql.Date object in the Java programming language.

This method duplicates the java.sql.ResultSet.getDate ResultSet.getDate(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  intgetInt(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as an int in the Java programming language.

This method duplicates the java.sql.ResultSet.getInt ResultSet.getInt(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  longgetLong(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a long in the Java programming language.

This method duplicates the java.sql.ResultSet.getLong ResultSet.getLong(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  ObjectgetObject(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.Object object in the Java programming language.

This method duplicates the java.sql.ResultSet.getObject ResultSet.getObject(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  StringgetString(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.String object in the Java programming language.

This method duplicates the java.sql.ResultSet.getString ResultSet.getString(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  TimestampgetTimestamp(String columnName)
    

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.Timestamp object in the Java programming language.

This method duplicates the java.sql.ResultSet.getTimestamp ResultSet.getTimestamp(String columnName) method.


Parameters:
  columnName - The SQL name of the column.
public  booleanlast()
    
public  booleannext()
    

Moves the cursor down one row from its current position.

public  intsize()
    


Constructor Detail
WikiResultSet
public WikiResultSet()(Code)
Constructor used primarily for building new result sets. Use this constructor to create an empty result set, then fill it using the WikiResultSet.addRow addRow() method.



WikiResultSet
protected WikiResultSet(ResultSet rs) throws Exception(Code)
Create a WikiResultSet from a standard ResultSet.
See Also:   ResultSet
Parameters:
  rs - The ResultSet used to populate this WikiResultSet.




Method Detail
absolute
public boolean absolute(int row)(Code)

Moves the cursor to the given row number in this ResultSet object.

If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on.

If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling the method absolute(-1) positions the cursor on the last row; calling the method absolute(-2) moves the cursor to the next-to-last row, and so on.

An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before the first row or after the last row.

This method duplicates the functionality of the java.sql.ResultSet.absolute ResultSet.absolute(int row) method.


Parameters:
  row - The number of the row to which the cursor should move. A positivenumber indicates the row number counting from the beginning of the resultset; a negative number indicates the row number counting from the end ofthe result set. true if the cursor is on the result set; false otherwise.



addRow
public void addRow(WikiResultSet rs) throws Exception(Code)
Method used to create a new WikiResultSet by copying rows of other WikiResultSet objects.
Parameters:
  rs - The SQLResult that is being copied. Only the current row willbe copied into the new WikiResultSet object.
throws:
  Exception - Thrown if the row pointer of the WikiResultSet beingcopied has passed the end of the WikiResultSet.



beforeFirst
public void beforeFirst()(Code)

Moves the cursor to the front of this WikiResultSet object, just before the first row. This method has no effect if the result set contains no rows.

This method duplicates the java.sql.ResultSet.beforeFirst ResultSet.beforeFirst() method.




first
public boolean first()(Code)

Moves the cursor to the first row in this WikiResultSet object.

This method duplicates the java.sql.ResultSet.first ResultSet.first() method.

true if the cursor is on a valid row; falseif there are no rows in the result set.



getChar
public char getChar(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a char value in the Java programming language.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is 0.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getDate
public Date getDate(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.sql.Date object in the Java programming language.

This method duplicates the java.sql.ResultSet.getDate ResultSet.getDate(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is null.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getInt
public int getInt(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as an int in the Java programming language.

This method duplicates the java.sql.ResultSet.getInt ResultSet.getInt(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is 0.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getLong
public long getLong(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a long in the Java programming language.

This method duplicates the java.sql.ResultSet.getLong ResultSet.getLong(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is 0.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getObject
public Object getObject(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.Object object in the Java programming language.

This method duplicates the java.sql.ResultSet.getObject ResultSet.getObject(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is null.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getString
public String getString(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.String object in the Java programming language.

This method duplicates the java.sql.ResultSet.getString ResultSet.getString(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is null.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



getTimestamp
public Timestamp getTimestamp(String columnName) throws SQLException(Code)

Retrieves the value of the designated column in the current row of this WikiResultSet object as a java.lang.Timestamp object in the Java programming language.

This method duplicates the java.sql.ResultSet.getTimestamp ResultSet.getTimestamp(String columnName) method.


Parameters:
  columnName - The SQL name of the column. The column value; if the value is SQL NULL, the valuereturned is null.
throws:
  SQLException - If the cursor position is invalid or if the column name doesnot exist in the result set.



last
public boolean last()(Code)

Moves the cursor to the last row in this ResultSet object.

This method duplicates the java.sql.ResultSet.last ResultSet.last() method.

true if the cursor is on a valid row; falseif there are no rows in the result set.



next
public boolean next()(Code)

Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.

This method duplicates the java.sql.ResultSet.next ResultSet.next() method.

true if the new current row is valid; falseif there are no more rows.



size
public int size()(Code)

Return the total number of rows that exist in this result set.

The total number of rows that exist in this result set.



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.