2.1.3.30 Method

Target namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog

Referenced by: Methods

A complex type that specifies a Method.

Child Elements:

LocalizedDisplayNames: A LocalizedDisplayNames element (section 2.1.3.28) that specifies the localized names of the Model.

Properties: A Properties element (section 2.1.3.39) that specifies the Properties of the Model.

AccessControlList: An AccessControlList element (section 2.1.3.2) that specifies the access control list (ACL) of the Model.

FilterDescriptors: A FilterDescriptors element (section 2.1.3.18) that specifies the FilterDescriptors of the Method.

Parameters: A Parameters element (section 2.1.3.38) that specifies the Parameters of the Method. A Method MUST NOT have more than one Parameter that has the value of the Direction attribute equal to "Return".

MethodInstances: A MethodInstances element (section 2.1.3.32) that specifies the MethodInstances of the Method.

Attributes:

IsStatic: An xs:boolean attribute that specifies whether an implementation-specific execution of the Method requires an EntityInstance to serve as the context for execution.<28> The value MUST be in the following table:

Value

Description

False

The Method represents an instance Method and requires an EntityInstance to provide the context for execution.

True

The Method represents a static Method and does not require a specific EntityInstance to provide context for execution.

LobName: A NameString attribute (section 2.1.4.9) that specifies the name of the operation defined in the line-of-business (LOB) system that is represented by this Method. For example, an operation in an LOB system named "CN1A" can be represented by a Method with Name attribute equal to "GetCustomerByName". The LobName attribute of this Method can<29> be "CN1A".

Name: A NameString attribute (section 2.1.4.9) that specifies the name of the Model.

DefaultDisplayName: A NameString attribute that specifies the default display name of the Model.

IsCached: An xs:boolean attribute that specifies whether the Model is used frequently. This MAY<30> be used as a recommendation as to whether to cache the Model. This attribute MUST be set to one of the values listed in the following table.

Value

Description

False

The Model is infrequently used.

True

The Model is frequently used.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="Method">
   <xs:complexContent>
     <xs:extension base="bdc:IndividuallySecurableMetadataObject">
       <xs:sequence>
         <xs:element name="FilterDescriptors" type="bdc:FilterDescriptors" minOccurs="0" maxOccurs="1">
           <xs:unique name="FilterDescriptorNameKey">
             <xs:selector xpath="*"/>
             <xs:field xpath="@Name"/>
           </xs:unique>
         </xs:element>
         <xs:element name="Parameters" type="bdc:Parameters" minOccurs="0" maxOccurs="1"/>
         <xs:element name="MethodInstances" type="bdc:MethodInstances" minOccurs="0" maxOccurs="1"/>
       </xs:sequence>
       <xs:attribute name="IsStatic" type="xs:boolean" default="true"/>
       <xs:attribute name="LobName" type="bdc:NameString" use="optional"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).