IBM WebSphere Adapters Network Card User Manual


 
dataDesc.prepareChildSchemaFiles();
WBIMetadataDiscoveryImpl.getLogUtils().trace(Level.FINER,
CLASSNAME,
"preparingChildSchemaFiles",
"Preparing SchemaFile for " + bo.getDisplayName());
dataDesc.prepareSchemaFiles();
SchemaDefinition[] schemaFiles = dataDesc.getSchemaDefinitions();
for(intj=0;j<schemaFiles.length; j++) {
SchemaDefinition definition = schemaFiles[j];
put(definition.getNamespace(), definition.getLocation(),
definition.getContent());
}
}
WBIMetadataDiscoveryImpl.getLogUtils().trace(Level.FINER, CLASSNAME,
"prepareChildSchemaFiles",
"Exiting Method");
}
getVerbs
The getVerbs() method returns a list of verbs when the data description represents
a top-level object that supports verbs.
public List getVerbs() {
ArrayList list = new ArrayList();
list.add(TopLevelVerbs.CREATE_TLV);
list.add(TopLevelVerbs.UPDATE_TLV);
list.add(TopLevelVerbs.DELETE_TLV);
return list;
}
getMetadataForAttribute
The getMetadataForAttribute() method returns an instance of the WBIMetadata
object and represents application specific information for the element or field in the
object definition. This corresponds to the annotation section for the element
definition.
public WBIMetadata getMetadataForAttribute(String attrName) {
WBIMetadata attributeMetadata = new WBIMetadata();
attributeMetadata.setSource(Constants.ASI_TARGET_NAMESPACE);
attributeMetadata.setObjectNameSpace(Constants.ATTR_APPINFO_ASI_TYPE_TAG);
QName asiNamespace = new QName
(Constants.ASI_TARGET_NAMESPACE, Constants.ASI);
attributeMetadata.setNameSpace(asiNamespace);
attributeMetadata.setASI(Constants.FIELD_NAME, attrName);
if (attrName.equalsIgnoreCase(Constants.PRIMARYKEY)) {
attributeMetadata.setASI(Constants.PRIMARY_KEY, "true");
}
return attributeMetadata;
}
getMetadataForBusinessObject
The getMetadataForBusinessObject() method returns an instance of the
WBIMetadata object and represents application specific information for the object
definition. This corresponds to the annotation section for the complexType
definition.
public WBIMetadata getMetadataForBusinessObject() {
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodEntrance
(CLASSNAME, "getMetadataForBusinessObject");
WBIMetadata bometadata = new WBIMetadata();
bometadata.setSource(Constants.ASI_TARGET_NAMESPACE);
QName namespace = new QName(Constants.ASI_TARGET_NAMESPACE, Constants.ASI);
152 WebSphere Adapters: WebSphere Adapter Toolkit User Guide