Java Doc for CachedRowSetDataModel.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » faces » data » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.faces.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.faces.data.CachedRowSetDataModel

All known Subclasses:   com.sun.jsfcl.data.CachedRowSetDataModel,
CachedRowSetDataModel
public class CachedRowSetDataModel extends DataModel (Code)

CachedRowSetDataModel is a convenience implementation of DataModel that wraps a CachedRowSet of Java objects. Note that the specified CachedRowSet MUST be scrollable. In addition, if input components (that will be updating model values) reference this object in value binding expressions, the specified CachedRowSet MUST be updatable.




Constructor Summary
public  CachedRowSetDataModel()
    
public  CachedRowSetDataModel(CachedRowSet cachedRowSet)
    

Method Summary
public  CachedRowSetgetCachedRowSet()
    

Return the CachedRowSet we are connected with, if any; otherwise, return null.

public  intgetRowCount()
    
public  ObjectgetRowData()
    

If row data is available, return a Map representing the values of the columns for the row specified by rowIndex, keyed by the corresponding column names.

public  intgetRowIndex()
    
public  ObjectgetWrappedData()
    
public  booleanisRowAvailable()
    

Return true if there is wrappedData available, and the result of calling absolute() on the underlying CachedRowSet, passing the current value of rowIndex plus one (to account for the fact that CachedRowSet uses one-relative indexing), returns true.

public  voidsetCachedRowSet(CachedRowSet rowSet)
    

Set the CachedRowSet we are connected with, or pass null to disconnect.

public  voidsetRowIndex(int rowIndex)
    
public  voidsetWrappedData(Object data)
    


Constructor Detail
CachedRowSetDataModel
public CachedRowSetDataModel()(Code)

Construct a new CachedRowSetDataModel with no specified wrapped data.




CachedRowSetDataModel
public CachedRowSetDataModel(CachedRowSet cachedRowSet)(Code)

Construct a new CachedRowSetDataModel wrapping the specified CachedRowSet.


Parameters:
  cachedRowSet - CachedRowSet to be wrapped (if any)




Method Detail
getCachedRowSet
public CachedRowSet getCachedRowSet()(Code)

Return the CachedRowSet we are connected with, if any; otherwise, return null. This is a type=safe alias for getWrappedData().




getRowCount
public int getRowCount()(Code)

Return -1, since CachedRowSet does not provide a standard way to determine the number of available rows without scrolling through the entire CachedRowSet, and this can be very expensive if the number of rows is large.


exception:
  FacesException - if an error occurs getting the row count



getRowData
public Object getRowData()(Code)

If row data is available, return a Map representing the values of the columns for the row specified by rowIndex, keyed by the corresponding column names. If no wrapped data is available, return null.

If a non-null Map is returned, its behavior must correspond to the contract for a mutable Map as described in the JavaDocs for AbstractMap, with the following exceptions and specialized behavior:

  • The Map, and any supporting objects it returns, must perform all column name comparisons in a case-insensitive manner. This case-insensitivity must be implemented using a case-insensitive Comparator, such as String.CASE_INSENSITIVE_ORDER.
  • The following methods must throw UnsupportedOperationException: clear(), remove().
  • The entrySet() method must return a Set that has the following behavior:
    • Throw UnsupportedOperationException for any attempt to add or remove entries from the Set, either directly or indirectly through an Iterator returned by the Set.
    • Updates to the value of an entry in this set must write through to the corresponding column value in the underlying CachedRowSet.
  • The keySet() method must return a Set that throws UnsupportedOperationException on any attempt to add or remove keys, either directly or through an Iterator returned by the Set.
  • The put() method must throw IllegalArgumentException if a key value for which containsKey() returns false is specified. However, if a key already present in the Map is specified, the specified value must write through to the corresponding column value in the underlying CachedRowSet.
  • The values() method must return a Collection that throws UnsupportedOperationException on any attempt to add or remove values, either directly or through an Iterator returned by the Collection.

exception:
  FacesException - if an error occurs getting the row data
exception:
  IllegalArgumentException - if now row data is availableat the currently specified row index



getRowIndex
public int getRowIndex()(Code)

exception:
  FacesException -



getWrappedData
public Object getWrappedData()(Code)



isRowAvailable
public boolean isRowAvailable()(Code)

Return true if there is wrappedData available, and the result of calling absolute() on the underlying CachedRowSet, passing the current value of rowIndex plus one (to account for the fact that CachedRowSet uses one-relative indexing), returns true. Otherwise, return false.


exception:
  FacesException - if an error occurs getting the row availability



setCachedRowSet
public void setCachedRowSet(CachedRowSet rowSet)(Code)

Set the CachedRowSet we are connected with, or pass null to disconnect. This is a type-safe alias for setWrappedData().


Parameters:
  rowSet - The CachedRowSet we are connected to,or null to disconnect



setRowIndex
public void setRowIndex(int rowIndex)(Code)

exception:
  FacesException -
exception:
  IllegalArgumentException -



setWrappedData
public void setWrappedData(Object data)(Code)

exception:
  ClassCastException -



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