📄 ejb-jar_2_1.xsd
字号:
can be used to differentiate the create(String, String) method defined in the remote interface from the create(String, String) method defined in the remote home interface, which would be defined as <method> <ejb-name>EmployeeService</ejb-name> <method-intf>Home</method-intf> <method-name>create</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> </method-params> </method> and the create method that is defined in the local home interface which would be defined as <method> <ejb-name>EmployeeService</ejb-name> <method-intf>LocalHome</method-intf> <method-name>create</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> </method-params> </method> The method-intf element can be used with all th ree Styles of the method element usage. For example, the following method element example could be used to refer to all the methods of the EmployeeService bean's remote home interface. <method> <ejb-name>EmployeeService</ejb-name> <method-intf>Home</method-intf> <method-name>*</method-name> </method> ]]> </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ejb-name" type="j2ee:ejb-nameType"/> <xsd:element name="method-intf" type="j2ee:method-intfType" minOccurs="0"> </xsd:element> <xsd:element name="method-name" type="j2ee:method-nameType"/> <xsd:element name="method-params" type="j2ee:method-paramsType" minOccurs="0"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="multiplicityType"> <xsd:annotation> <xsd:documentation> The multiplicityType describes the multiplicity of the role that participates in a relation. The value must be one of the two following: One Many </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="One"/> <xsd:enumeration value="Many"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="persistence-typeType"> <xsd:annotation> <xsd:documentation> The persistence-typeType specifies an entity bean's persistence management type. The persistence-type element must be one of the two following: Bean Container </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="Bean"/> <xsd:enumeration value="Container"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="query-methodType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The query-method specifies the method for a finder or select query. The method-name element specifies the name of a finder or select method in the entity bean's implementation class. Each method-param must be defined for a query-method using the method-params element. It is used by the query-method element. Example: <query> <description>Method finds large orders</description> <query-method> <method-name>findLargeOrders</method-name> <method-params></method-params> </query-method> <ejb-ql> SELECT OBJECT(o) FROM Order o WHERE o.amount > 1000 </ejb-ql> </query> ]]> </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="method-name" type="j2ee:method-nameType"/> <xsd:element name="method-params" type="j2ee:method-paramsType"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="queryType"> <xsd:annotation> <xsd:documentation> The queryType defines a finder or select query. It contains - an optional description of the query - the specification of the finder or select method it is used by - an optional specification of the result type mapping, if the query is for a select method and entity objects are returned. - the EJB QL query string that defines the query. Queries that are expressible in EJB QL must use the ejb-ql element to specify the query. If a query is not expressible in EJB QL, the description element should be used to describe the semantics of the query and the ejb-ql element should be empty. The result-type-mapping is an optional element. It can only be present if the query-method specifies a select method that returns entity objects. The default value for the result-type-mapping element is "Local". </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0"/> <xsd:element name="query-method" type="j2ee:query-methodType"/> <xsd:element name="result-type-mapping" type="j2ee:result-type-mappingType" minOccurs="0"/> <xsd:element name="ejb-ql" type="j2ee:xsdStringType"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="relationship-role-sourceType"> <xsd:annotation> <xsd:documentation> The relationship-role-sourceType designates the source of a role that participates in a relationship. A relationship-role-sourceType is used by relationship-role-source elements to uniquely identify an entity bean. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ejb-name" type="j2ee:ejb-nameType"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="relationshipsType"> <xsd:annotation> <xsd:documentation> The relationshipsType describes the relationships in which entity beans with container-managed persistence participate. The relationshipsType contains an optional description; and a list of ejb-relation elements, which specify the container managed relationships. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ejb-relation" type="j2ee:ejb-relationType" maxOccurs="unbounded"> <xsd:unique name="role-name-uniqueness"> <xsd:annotation> <xsd:documentation> The ejb-relationship-role-name contains the name of a relationship role. The name must be unique within a relationship, but can be reused in different relationships. </xsd:documentation> </xsd:annotation> <xsd:selector xpath=".//j2ee:ejb-relationship-role-name"/> <xsd:field xpath="."/> </xsd:unique> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="result-type-mappingType"> <xsd:annotation> <xsd:documentation> The result-type-mappingType is used in the query element to specify whether an abstract schema type returned by a query for a select method is to be mapped to an EJBLocalObject or EJBObject type. The value must be one of the following: Local Remote </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="Local"/> <xsd:enumeration value="Remote"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="security-identityType"> <xsd:annotation> <xsd:documentation> The security-identityType specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:choice> <xsd:element name="use-caller-identity" type="j2ee:emptyType"> <xsd:annotation> <xsd:documentation> The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="run-as" type="j2ee:run-asType"/> </xsd:choice> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="session-beanType"> <xsd:annotation> <xsd:documentation> The session-beanType declares an session bean. The declaration consists of: - an optional description - an optional display name - an optional icon element that contains a small and a large icon file name - a name assigned to the enterprise bean in the deployment description - the names of the session bean's remote home and remote interfaces, if any - the names of the session bean's local home and local interfaces, if any - the name of the session bean's web service endpoint interface, if any - the session bean's implementation class - the session bean's state management type - the session bean's transaction management type - an optional declaration of the bean's environment entries - an optional declaration of the bean's EJB references - an optional declaration of the bean's local EJB references - an optional declaration of the bean's web service references - an optional declaration of the security role references - an optional declaration of the security identity to be used for the execution of the bean's methods - an optional declaration of the bean's resource manager connection factory references - an optional declaration of the bean's resource environment references. - an optional declaration of the bean's message destination references The elements that are optional are "optional" in the sense that they are omitted when if lists represented by them are empty. Either both the local-home and the local elements or both the home and the remote elements must be specified for the session bean. The service-endpoint element may only be specified if the bean is a stateless session bean. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:group ref="j2ee:descriptionGroup"/> <xsd:element name="ejb-name" type="j2ee:ejb-nameType"/> <xsd:element name="home" type="j2ee:homeType" minOccurs="0"/> <xsd:element name="remote" type="j2ee:remoteType" minOccurs="0"/> <xsd:element name="local-home" type="j2ee:local-homeType" minOccurs="0"/> <xsd:element name="local" type="j2ee:localType" minOccurs="0"/> <xsd:element name="service-endpoint" type="j2ee:fully-qualified-classType" minOccurs="0"> <xsd:annotation> <xsd:documentation> The service-endpoint element contains the fully-qualified name of the enterprise bean's web service endpoint interface. The service-endpoint element may only be specif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -