| 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,
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
|
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 |
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 |
sortFieldKeys | protected void sortFieldKeys()(Code) | | Sorts the
FieldKey s (using Arrays.sort)
|
|
|