Ibm WebSphere Adapters Manual de usuario Pagina 158

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 226
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 157
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
Vista de pagina 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 225 226

Comentarios a estos manuales

Sin comentarios