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


java.lang.Object
   com.sun.data.provider.impl.AbstractDataProvider

All known Subclasses:   com.sun.data.provider.impl.AbstractTableDataProvider,  com.sun.data.provider.impl.MapDataProvider,  com.sun.data.provider.impl.TableRowDataProvider,  com.sun.data.provider.impl.ObjectDataProvider,  com.sun.data.provider.impl.BasicTransactionalDataProvider,
AbstractDataProvider
abstract public class AbstractDataProvider implements DataProvider,Serializable(Code)
Abstract base implementation of DataProvider . This class is a convenient base class to use when creating a new DataProvider implementation.
author:
   Joe Nuxoll


Field Summary
protected  DataListenerdpListeners
    
protected  FieldKey[]fieldKeys
    


Method Summary
public  voidaddDataListener(DataListener listener)
    
protected  voidaddFieldKey(FieldKey fieldKey)
    
protected  voidaddFieldKeys(FieldKey[] fieldKeys)
    
protected  voidclearFieldKeys()
    
protected  voidfireProviderChanged()
    
protected  voidfireValueChanged(FieldKey fieldKey, Object oldValue, Object newValue)
    
public  DataListener[]getDataListeners()
    
public static  ObjectgetFakeData(Class dataType)
     This helper method defers to AbstractDataProvider.getFakeData(Class,Class) passing null as the collectionElementType.
public static  ObjectgetFakeData(Class dataType, Class collectionElementType)
    

This helper method produces fake data for use during design-time. This allows a DataProvider implementation class to avoid a costly call to a database, web service, or EJB method at design-time.

public  FieldKeygetFieldKey(String fieldId)
    
public  FieldKey[]getFieldKeys()
    
abstract public  ClassgetType(FieldKey fieldKey)
    
public  ClassgetType(String fieldId)
    
abstract public  ObjectgetValue(FieldKey fieldKey)
    
public  ObjectgetValue(String fieldId)
    
abstract public  booleanisReadOnly(FieldKey fieldKey)
    
public  booleanisReadOnly(String fieldId)
    
public  voidremoveDataListener(DataListener listener)
    
protected  voidremoveFieldKey(FieldKey fieldKey)
    
protected  voidremoveFieldKeys(FieldKey[] fieldKeys)
    
abstract public  voidsetValue(FieldKey fieldKey, Object value)
    
public  voidsetValue(String fieldId, Object value)
    
protected  voidsortFieldKeys()
    

Field Detail
dpListeners
protected DataListener dpListeners(Code)

Array of DataListener instances registered for this DataProvider .




fieldKeys
protected FieldKey[] fieldKeys(Code)
storage for the list of FieldKey s in this DataProvider





Method Detail
addDataListener
public void addDataListener(DataListener listener)(Code)



addFieldKey
protected void addFieldKey(FieldKey fieldKey)(Code)
Adds a FieldKey to the list of keys
Parameters:
  fieldKey - FieldKey to add to the list of keys



addFieldKeys
protected void addFieldKeys(FieldKey[] fieldKeys)(Code)
Adds a list of FieldKey s to the list of keys
Parameters:
  fieldKeys - FieldKey[] to add to the list of keys



clearFieldKeys
protected void clearFieldKeys()(Code)
Empties the list of FieldKey s



fireProviderChanged
protected void fireProviderChanged()(Code)
Fires a providerChanged event to each registered DataListener
See Also:   DataListener.providerChanged(DataProvider)



fireValueChanged
protected void fireValueChanged(FieldKey fieldKey, Object oldValue, Object newValue)(Code)
Fires a valueChanged event to each registered DataListener
Parameters:
  fieldKey - FieldKey identifying the changed value
Parameters:
  oldValue - The old value (before the change)
Parameters:
  newValue - The new value (after the change)
See Also:   DataListener.valueChanged(DataProviderFieldKeyObjectObject)



getDataListeners
public DataListener[] getDataListeners()(Code)



getFakeData
public static Object getFakeData(Class dataType)(Code)
This helper method defers to AbstractDataProvider.getFakeData(Class,Class) passing null as the collectionElementType. This is used for design-time only rendering of fake data.
Parameters:
  dataType - The Class representing the type of data to fake The fake data object



getFakeData
public static Object getFakeData(Class dataType, Class collectionElementType)(Code)

This helper method produces fake data for use during design-time. This allows a DataProvider implementation class to avoid a costly call to a database, web service, or EJB method at design-time. This will handle array and collection types as well as object types.

If the underlying type is other than a primitive type or java.lang common type, it is constructed by attempting to use the default constructor for the class, if it exists. The method will then recurse to populate the properties and fields of the nested object (avoiding recursion). If no default constructor exists, this method will return null for the value.


Parameters:
  dataType - The Class representing the type of data to fake. Thismight be a native array, Collection, or any Object subtype
Parameters:
  collectionElementType - If the 'dataType' is a Collection type, thisparameter specifies the type of element stored in the Collection The fake data object



getFieldKey
public FieldKey getFieldKey(String fieldId) throws DataProviderException(Code)



getFieldKeys
public FieldKey[] getFieldKeys() throws DataProviderException(Code)



getType
abstract public Class getType(FieldKey fieldKey) throws DataProviderException(Code)



getType
public Class getType(String fieldId) throws DataProviderException(Code)



getValue
abstract public Object getValue(FieldKey fieldKey) throws DataProviderException(Code)



getValue
public Object getValue(String fieldId) throws DataProviderException(Code)



isReadOnly
abstract public boolean isReadOnly(FieldKey fieldKey) throws DataProviderException(Code)



isReadOnly
public boolean isReadOnly(String fieldId) throws DataProviderException(Code)



removeDataListener
public void removeDataListener(DataListener listener)(Code)



removeFieldKey
protected void removeFieldKey(FieldKey fieldKey)(Code)
Removes a FieldKey from the list of keys
Parameters:
  fieldKey - FieldKey to remove from the list



removeFieldKeys
protected void removeFieldKeys(FieldKey[] fieldKeys)(Code)
Removes an array of FieldKey s from the list
Parameters:
  fieldKeys - FieldKey[] to remove from the list



setValue
abstract public void setValue(FieldKey fieldKey, Object value) throws DataProviderException(Code)



setValue
public void setValue(String fieldId, Object value) throws DataProviderException(Code)



sortFieldKeys
protected void sortFieldKeys()(Code)
Sorts the FieldKey s (using Arrays.sort)



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.