
dataDesc.prepareChildSchemaFiles();
WBIMetadataDiscoveryImpl.getLogUtils().trace(Level.FINER,
CLASSNAME,
"preparingChildSchemaFiles",
"Preparing SchemaFile for " + bo.getDisplayName());
dataDesc.prepareSchemaFiles();
SchemaDefinition[] schemaFiles = dataDesc.getSchemaDefinitions();
for (int j = 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
Содержание WebSphere Adapter Toolkit
Страница 1: ...WebSphere Adapters WebSphere Adapter Toolkit User Guide Version 6 Release 2 Version 6 Release 2...
Страница 2: ......
Страница 3: ...WebSphere Adapters WebSphere Adapter Toolkit User Guide Version 6 Release 2 Version 6 Release 2...
Страница 6: ...iv WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 211: ...7 Start UTC using the Run universal test client option WebSphere Adapter development overview 205...
Страница 220: ...214 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 224: ...218 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 225: ......
Страница 226: ...Printed in USA...