The <ObjectFeatures> section specifies a list of one or more features supported by this object type, where each object feature is directly tied to the implementation of the associated object type method in the resource adapter.
Each ObjectFeature definition must contain the name attribute, which specifies a feature name. The create and update features can specify a form attribute, which defines the resource form used to process create and update features. If you do not specify a form attribute, Waveset processes the create and update features with the same form used by all resources of a given type.
The following table describes the object feature mappings.
Table 10–28 Object Feature Mappings
Object Feature |
Method |
Supports Form Attribute? |
---|---|---|
create |
createObject |
Yes |
delete |
deleteObject |
No |
find |
listObjects |
No |
list |
listObjects |
No |
rename |
updateObject |
No |
saveas |
createObject |
No |
update |
updateObject |
Yes |
view |
getObject |
No |
In the following example, the <ObjectFeatures> section includes all supported object features. Your resource adapter can support all of these features or just a subset of features. The more object features your adapter supports, the richer the object management function within Waveset.
<ObjectFeatures>\n"+ <ObjectFeature name=’create’ form=’My Create Position Form’/> <ObjectFeature name=’update’ form=’My Update Position Form’/> <ObjectFeature name=’create’/>\n"+ <ObjectFeature name=’delete’/>\n"+ <ObjectFeature name=’rename’/>\n"+ <ObjectFeature name=’saveas’/>\n"+ <ObjectFeature name=’find’/>\n"+ <ObjectFeature name=’list’/>\n"+ <ObjectFeature name=’view’/>\n"+ </ObjectFeatures>\n"+ |