Java Doc for SqlRowSet.java in  » J2EE » spring-framework-2.5 » org » springframework » jdbc » support » rowset » 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 » J2EE » spring framework 2.5 » org.springframework.jdbc.support.rowset 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.jdbc.support.rowset.SqlRowSet

All known Subclasses:   org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSet,
SqlRowSet
public interface SqlRowSet extends Serializable(Code)
Mirror interface for javax.sql.RowSet, representing disconnected java.sql.ResultSet data.

The main difference to the standard JDBC RowSet is that an SQLException is never thrown here. This allows a SqlRowSet to be used without having to deal with checked exceptions. A SqlRowSet will throw Spring's org.springframework.jdbc.InvalidResultSetAccessException instead (when appropriate).

Note: This interface extends the java.io.Serializable marker interface. Implementations, which typically hold disconnected data, are encouraged to be actually serializable (as far as possible).
author:
   Thomas Risberg
author:
   Juergen Hoeller
since:
   1.2
See Also:   javax.sql.RowSet
See Also:   java.sql.ResultSet
See Also:   org.springframework.jdbc.InvalidResultSetAccessException
See Also:   org.springframework.jdbc.core.JdbcTemplate.queryForRowSet





Method Summary
 booleanabsolute(int row)
     Moves the cursor to the given row number in the RowSet, just after the last row.
 voidafterLast()
     Moves the cursor to the end of this RowSet.
 voidbeforeFirst()
     Moves the cursor to the front of this RowSet, just before the first row.
 intfindColumn(String columnName)
     Maps the given column name to its column index.
 booleanfirst()
     Moves the cursor to the first row of this RowSet.
 BigDecimalgetBigDecimal(int columnIndex)
     Retrieves the value of the indicated column in the current row as an BigDecimal object.
 BigDecimalgetBigDecimal(String columnName)
     Retrieves the value of the indicated column in the current row as an BigDecimal object.
 booleangetBoolean(int columnIndex)
     Retrieves the value of the indicated column in the current row as a boolean.
 booleangetBoolean(String columnName)
     Retrieves the value of the indicated column in the current row as a boolean.
 bytegetByte(int columnIndex)
     Retrieves the value of the indicated column in the current row as a byte.
 bytegetByte(String columnName)
     Retrieves the value of the indicated column in the current row as a byte.
 DategetDate(int columnIndex, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Date object.
 DategetDate(int columnIndex)
     Retrieves the value of the indicated column in the current row as a Date object.
 DategetDate(String columnName, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Date object.
 DategetDate(String columnName)
     Retrieves the value of the indicated column in the current row as a Date object.
 doublegetDouble(int columnIndex)
     Retrieves the value of the indicated column in the current row as a Double object.
 doublegetDouble(String columnName)
     Retrieves the value of the indicated column in the current row as a Double object.
 floatgetFloat(int columnIndex)
     Retrieves the value of the indicated column in the current row as a float.
 floatgetFloat(String columnName)
     Retrieves the value of the indicated column in the current row as a float.
 intgetInt(int columnIndex)
     Retrieves the value of the indicated column in the current row as an int.
 intgetInt(String columnName)
     Retrieves the value of the indicated column in the current row as an int.
 longgetLong(int columnIndex)
     Retrieves the value of the indicated column in the current row as a long.
 longgetLong(String columnName)
     Retrieves the value of the indicated column in the current row as a long.
 SqlRowSetMetaDatagetMetaData()
     Retrieves the meta data (number, types and properties for the columns) of this row set.
 ObjectgetObject(int columnIndex, Map map)
     Retrieves the value of the indicated column in the current row as an Object.
 ObjectgetObject(int columnIndex)
     Retrieves the value of the indicated column in the current row as an Object.
 ObjectgetObject(String columnName, Map map)
     Retrieves the value of the indicated column in the current row as an Object.
 ObjectgetObject(String columnName)
     Retrieves the value of the indicated column in the current row as an Object.
 intgetRow()
     Retrieves the current row number.
 shortgetShort(int columnIndex)
     Retrieves the value of the indicated column in the current row as a short.
 shortgetShort(String columnName)
     Retrieves the value of the indicated column in the current row as a short.
 StringgetString(int columnIndex)
     Retrieves the value of the indicated column in the current row as a String.
 StringgetString(String columnName)
     Retrieves the value of the indicated column in the current row as a String.
 TimegetTime(int columnIndex, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Time object.
 TimegetTime(int columnIndex)
     Retrieves the value of the indicated column in the current row as a Time object.
 TimegetTime(String columnName, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Time object.
 TimegetTime(String columnName)
     Retrieves the value of the indicated column in the current row as a Time object.
 TimestampgetTimestamp(int columnIndex, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Timestamp object.
 TimestampgetTimestamp(int columnIndex)
     Retrieves the value of the indicated column in the current row as a Timestamp object.
 TimestampgetTimestamp(String columnName, Calendar cal)
     Retrieves the value of the indicated column in the current row as a Timestamp object.
 TimestampgetTimestamp(String columnName)
     Retrieves the value of the indicated column in the current row as a Timestamp object.
 booleanisAfterLast()
     Retrieves whether the cursor is after the last row of this RowSet.
 booleanisBeforeFirst()
     Retrieves whether the cursor is after the first row of this RowSet.
 booleanisFirst()
     Retrieves whether the cursor is on the first row of this RowSet.
 booleanisLast()
     Retrieves whether the cursor is on the last row of this RowSet.
 booleanlast()
     Moves the cursor to the last row of this RowSet.
 booleannext()
     Moves the cursor to the next row.
 booleanprevious()
     Moves the cursor to the previous row.
 booleanrelative(int rows)
     Moves the cursor a relative number f rows, either positive or negative.
 booleanwasNull()
     Reports whether the last column read had a value of SQL NULL.



Method Detail
absolute
boolean absolute(int row) throws InvalidResultSetAccessException(Code)
Moves the cursor to the given row number in the RowSet, just after the last row.
Parameters:
  row - the number of the row where the cursor should move true if the cursor is on the RowSet, false otherwise
See Also:   java.sql.ResultSet.absolute(int)



afterLast
void afterLast() throws InvalidResultSetAccessException(Code)
Moves the cursor to the end of this RowSet.
See Also:   java.sql.ResultSet.afterLast



beforeFirst
void beforeFirst() throws InvalidResultSetAccessException(Code)
Moves the cursor to the front of this RowSet, just before the first row.
See Also:   java.sql.ResultSet.beforeFirst



findColumn
int findColumn(String columnName) throws InvalidResultSetAccessException(Code)
Maps the given column name to its column index.
Parameters:
  columnName - the name of the column the column index for the given column name
See Also:   java.sql.ResultSet.findColumn(String)



first
boolean first() throws InvalidResultSetAccessException(Code)
Moves the cursor to the first row of this RowSet. true if the cursor is on a valid row, false otherwise
See Also:   java.sql.ResultSet.first



getBigDecimal
BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an BigDecimal object.
Parameters:
  columnIndex - the column index an BigDecimal object representing the column value
See Also:   java.sql.ResultSet.getBigDecimal(int)



getBigDecimal
BigDecimal getBigDecimal(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an BigDecimal object.
Parameters:
  columnName - the column name an BigDecimal object representing the column value
See Also:   java.sql.ResultSet.getBigDecimal(java.lang.String)



getBoolean
boolean getBoolean(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a boolean.
Parameters:
  columnIndex - the column index a boolean representing the column value
See Also:   java.sql.ResultSet.getBoolean(int)



getBoolean
boolean getBoolean(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a boolean.
Parameters:
  columnName - the column name a boolean representing the column value
See Also:   java.sql.ResultSet.getBoolean(java.lang.String)



getByte
byte getByte(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a byte.
Parameters:
  columnIndex - the column index a byte representing the column value
See Also:   java.sql.ResultSet.getByte(int)



getByte
byte getByte(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a byte.
Parameters:
  columnName - the column name a byte representing the column value
See Also:   java.sql.ResultSet.getByte(java.lang.String)



getDate
Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Date object.
Parameters:
  columnIndex - the column index
Parameters:
  cal - the Calendar to use in constructing the Date a Date object representing the column value
See Also:   java.sql.ResultSet.getDate(intjava.util.Calendar)



getDate
Date getDate(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Date object.
Parameters:
  columnIndex - the column index a Date object representing the column value
See Also:   java.sql.ResultSet.getDate(int)



getDate
Date getDate(String columnName, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Date object.
Parameters:
  columnName - the column name
Parameters:
  cal - the Calendar to use in constructing the Date a Date object representing the column value
See Also:   java.sql.ResultSet.getDate(java.lang.Stringjava.util.Calendar)



getDate
Date getDate(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Date object.
Parameters:
  columnName - the column name a Date object representing the column value
See Also:   java.sql.ResultSet.getDate(java.lang.String)



getDouble
double getDouble(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Double object.
Parameters:
  columnIndex - the column index a Double object representing the column value
See Also:   java.sql.ResultSet.getDouble(int)



getDouble
double getDouble(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Double object.
Parameters:
  columnName - the column name a Double object representing the column value
See Also:   java.sql.ResultSet.getDouble(java.lang.String)



getFloat
float getFloat(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a float.
Parameters:
  columnIndex - the column index a float representing the column value
See Also:   java.sql.ResultSet.getFloat(int)



getFloat
float getFloat(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a float.
Parameters:
  columnName - the column name a float representing the column value
See Also:   java.sql.ResultSet.getFloat(java.lang.String)



getInt
int getInt(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an int.
Parameters:
  columnIndex - the column index an int representing the column value
See Also:   java.sql.ResultSet.getInt(int)



getInt
int getInt(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an int.
Parameters:
  columnName - the column name an int representing the column value
See Also:   java.sql.ResultSet.getInt(java.lang.String)



getLong
long getLong(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a long.
Parameters:
  columnIndex - the column index a long representing the column value
See Also:   java.sql.ResultSet.getLong(int)



getLong
long getLong(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a long.
Parameters:
  columnName - the column name a long representing the column value
See Also:   java.sql.ResultSet.getLong(java.lang.String)



getMetaData
SqlRowSetMetaData getMetaData()(Code)
Retrieves the meta data (number, types and properties for the columns) of this row set. a corresponding SqlRowSetMetaData instance
See Also:   java.sql.ResultSet.getMetaData



getObject
Object getObject(int columnIndex, Map map) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an Object.
Parameters:
  columnIndex - the column index
Parameters:
  map - a Map object containing the mapping from SQL types to Java types a Object representing the column value
See Also:   java.sql.ResultSet.getObject(intjava.util.Map)



getObject
Object getObject(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an Object.
Parameters:
  columnIndex - the column index a Object representing the column value
See Also:   java.sql.ResultSet.getObject(int)



getObject
Object getObject(String columnName, Map map) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an Object.
Parameters:
  columnName - the column name
Parameters:
  map - a Map object containing the mapping from SQL types to Java types a Object representing the column value
See Also:   java.sql.ResultSet.getObject(java.lang.Stringjava.util.Map)



getObject
Object getObject(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as an Object.
Parameters:
  columnName - the column name a Object representing the column value
See Also:   java.sql.ResultSet.getObject(java.lang.String)



getRow
int getRow() throws InvalidResultSetAccessException(Code)
Retrieves the current row number. the current row number
See Also:   java.sql.ResultSet.getRow



getShort
short getShort(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a short.
Parameters:
  columnIndex - the column index a short representing the column value
See Also:   java.sql.ResultSet.getShort(int)



getShort
short getShort(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a short.
Parameters:
  columnName - the column name a short representing the column value
See Also:   java.sql.ResultSet.getShort(java.lang.String)



getString
String getString(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a String.
Parameters:
  columnIndex - the column index a String representing the column value
See Also:   java.sql.ResultSet.getString(int)



getString
String getString(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a String.
Parameters:
  columnName - the column name a String representing the column value
See Also:   java.sql.ResultSet.getString(java.lang.String)



getTime
Time getTime(int columnIndex, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Time object.
Parameters:
  columnIndex - the column index
Parameters:
  cal - the Calendar to use in constructing the Date a Time object representing the column value
See Also:   java.sql.ResultSet.getTime(intjava.util.Calendar)



getTime
Time getTime(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Time object.
Parameters:
  columnIndex - the column index a Time object representing the column value
See Also:   java.sql.ResultSet.getTime(int)



getTime
Time getTime(String columnName, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Time object.
Parameters:
  columnName - the column name
Parameters:
  cal - the Calendar to use in constructing the Date a Time object representing the column value
See Also:   java.sql.ResultSet.getTime(java.lang.Stringjava.util.Calendar)



getTime
Time getTime(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Time object.
Parameters:
  columnName - the column name a Time object representing the column value
See Also:   java.sql.ResultSet.getTime(java.lang.String)



getTimestamp
Timestamp getTimestamp(int columnIndex, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Timestamp object.
Parameters:
  columnIndex - the column index
Parameters:
  cal - the Calendar to use in constructing the Date a Timestamp object representing the column value
See Also:   java.sql.ResultSet.getTimestamp(intjava.util.Calendar)



getTimestamp
Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Timestamp object.
Parameters:
  columnIndex - the column index a Timestamp object representing the column value
See Also:   java.sql.ResultSet.getTimestamp(int)



getTimestamp
Timestamp getTimestamp(String columnName, Calendar cal) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Timestamp object.
Parameters:
  columnName - the column name
Parameters:
  cal - the Calendar to use in constructing the Date a Timestamp object representing the column value
See Also:   java.sql.ResultSet.getTimestamp(java.lang.Stringjava.util.Calendar)



getTimestamp
Timestamp getTimestamp(String columnName) throws InvalidResultSetAccessException(Code)
Retrieves the value of the indicated column in the current row as a Timestamp object.
Parameters:
  columnName - the column name a Timestamp object representing the column value
See Also:   java.sql.ResultSet.getTimestamp(java.lang.String)



isAfterLast
boolean isAfterLast() throws InvalidResultSetAccessException(Code)
Retrieves whether the cursor is after the last row of this RowSet. true if the cursor is after the last row, false otherwise
See Also:   java.sql.ResultSet.isAfterLast



isBeforeFirst
boolean isBeforeFirst() throws InvalidResultSetAccessException(Code)
Retrieves whether the cursor is after the first row of this RowSet. true if the cursor is after the first row, false otherwise
See Also:   java.sql.ResultSet.isBeforeFirst



isFirst
boolean isFirst() throws InvalidResultSetAccessException(Code)
Retrieves whether the cursor is on the first row of this RowSet. true if the cursor is after the first row, false otherwise
See Also:   java.sql.ResultSet.isFirst



isLast
boolean isLast() throws InvalidResultSetAccessException(Code)
Retrieves whether the cursor is on the last row of this RowSet. true if the cursor is after the last row, false otherwise
See Also:   java.sql.ResultSet.isLast



last
boolean last() throws InvalidResultSetAccessException(Code)
Moves the cursor to the last row of this RowSet. true if the cursor is on a valid row, false otherwise
See Also:   java.sql.ResultSet.last



next
boolean next() throws InvalidResultSetAccessException(Code)
Moves the cursor to the next row. true if the new row is valid, false if there are no more rows
See Also:   java.sql.ResultSet.next



previous
boolean previous() throws InvalidResultSetAccessException(Code)
Moves the cursor to the previous row. true if the new row is valid, false if it is off the RowSet
See Also:   java.sql.ResultSet.previous



relative
boolean relative(int rows) throws InvalidResultSetAccessException(Code)
Moves the cursor a relative number f rows, either positive or negative. true if the cursor is on a row, false otherwise
See Also:   java.sql.ResultSet.relative(int)



wasNull
boolean wasNull() throws InvalidResultSetAccessException(Code)
Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods and then call the wasNull method. true if the most recent coumn retrieved was SQL NULL,false otherwise
See Also:   java.sql.ResultSet.wasNull



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