⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ejb-jar_2_1.xsd

📁 jsp开发 com.objectlearn.jdt.j2ee_3.0.1
💻 XSD
📖 第 1 页 / 共 5 页
字号:
	  <xsd:documentation>	    The primkey-field element is used to specify the	    name of the primary key field for an entity with	    container-managed persistence.	    The primkey-field must be one of the fields declared	    in the cmp-field element, and the type of the field	    must be the same as the primary key type.	    The primkey-field element is not used if the primary	    key maps to multiple container-managed fields	    (i.e. the key is a compound key). In this case, the	    fields of the primary key class must be public, and	    their names must correspond to the field names of	    the entity bean class that comprise the key.	  </xsd:documentation>	</xsd:annotation>      </xsd:element>      <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>      <xsd:element name="security-role-ref"		   type="j2ee:security-role-refType"		   minOccurs="0" maxOccurs="unbounded"/>      <xsd:element name="security-identity"		   type="j2ee:security-identityType"		   minOccurs="0"/>      <xsd:element name="query"		   type="j2ee:queryType"		   minOccurs="0" maxOccurs="unbounded"/>    </xsd:sequence>    <xsd:attribute name="id" type="xsd:ID"/>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="exclude-listType">    <xsd:annotation>      <xsd:documentation>	The exclude-listType specifies one or more methods which	the Assembler marks to be uncallable.	If the method permission relation contains methods that are	in the exclude list, the Deployer should consider those	methods to be uncallable.      </xsd:documentation>    </xsd:annotation>    <xsd:sequence>      <xsd:element name="description"		   type="j2ee:descriptionType"		   minOccurs="0"		   maxOccurs="unbounded"/>      <xsd:element name="method"		   type="j2ee:methodType"		   maxOccurs="unbounded"/>    </xsd:sequence>    <xsd:attribute name="id" type="xsd:ID"/>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="message-driven-beanType">    <xsd:annotation>      <xsd:documentation>	The message-driven element declares a message-driven	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 descriptor	    - the message-driven bean's implementation class	    - an optional declaration of the bean's messaging	      type	    - the message-driven bean's transaction management type	    - an optional declaration of the bean's	      message-destination-type	    - an optional declaration of the bean's	      message-destination-link	    - an optional declaration of the message-driven bean's	      activation configuration properties	    - 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	      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      </xsd:documentation>    </xsd:annotation>    <xsd:sequence>      <xsd:group ref="j2ee:descriptionGroup"/>      <xsd:element name="ejb-name"		   type="j2ee:ejb-nameType"/>      <xsd:element name="ejb-class"		   type="j2ee:ejb-classType"/>      <xsd:element name="messaging-type"		   type="j2ee:fully-qualified-classType"		   minOccurs="0">	<xsd:annotation>	  <xsd:documentation>	    The messaging-type element specifies the message	    listener interface of the message-driven bean. If	    the messaging-type element is not specified, it is	    assumed to be javax.jms.MessageListener.	  </xsd:documentation>	</xsd:annotation>      </xsd:element>      <xsd:element name="transaction-type"		   type="j2ee:transaction-typeType"/>      <xsd:element name="message-destination-type"		   type="j2ee:message-destination-typeType"		   minOccurs="0"/>      <xsd:element name="message-destination-link"		   type="j2ee:message-destination-linkType"		   minOccurs="0"/>      <xsd:element name="activation-config"		   type="j2ee:activation-configType"		   minOccurs="0"/>      <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>      <xsd:element name="security-identity"		   type="j2ee:security-identityType"		   minOccurs="0"/>    </xsd:sequence>    <xsd:attribute name="id" type="xsd:ID"/>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="method-intfType">    <xsd:annotation>      <xsd:documentation>	The method-intf element allows a method element to	differentiate between the methods with the same name and	signature that are multiply defined across the home and	component interfaces (e.g, in both an enterprise bean's	remote and local interfaces or in both an enterprise bean's	home and remote interfaces, etc.); the component and web	service endpoint interfaces, and so on.	The method-intf element must be one of the following:	    Home	    Remote	    LocalHome	    Local	    ServiceEndpoint      </xsd:documentation>    </xsd:annotation>    <xsd:simpleContent>      <xsd:restriction base="j2ee:string">	<xsd:enumeration value="Home"/>	<xsd:enumeration value="Remote"/>	<xsd:enumeration value="LocalHome"/>	<xsd:enumeration value="Local"/>	<xsd:enumeration value="ServiceEndpoint"/>      </xsd:restriction>    </xsd:simpleContent>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="method-nameType">    <xsd:annotation>      <xsd:documentation>	The method-nameType contains a name of an enterprise	bean method or the asterisk (*) character. The asterisk is	used when the element denotes all the methods of an	enterprise bean's client view interfaces.      </xsd:documentation>    </xsd:annotation>    <xsd:simpleContent>      <xsd:restriction base="j2ee:string"/>    </xsd:simpleContent>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="method-paramsType">    <xsd:annotation>      <xsd:documentation>	The method-paramsType defines a list of the	fully-qualified Java type names of the method parameters.      </xsd:documentation>    </xsd:annotation>    <xsd:sequence>      <xsd:element name="method-param"		   type="j2ee:java-typeType"		   minOccurs="0"		   maxOccurs="unbounded">	<xsd:annotation>	  <xsd:documentation>	    The method-param element contains a primitive	    or a fully-qualified Java type name of a method	    parameter.	  </xsd:documentation>	</xsd:annotation>      </xsd:element>    </xsd:sequence>    <xsd:attribute name="id" type="xsd:ID"/>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="method-permissionType">    <xsd:annotation>      <xsd:documentation>	The method-permissionType specifies that one or more	security roles are allowed to invoke one or more enterprise	bean methods. The method-permissionType consists of an	optional description, a list of security role names or an	indicator to state that the method is unchecked for	authorization, and a list of method elements.	The security roles used in the method-permissionType	must be defined in the security-role elements of the	deployment descriptor, and the methods must be methods	defined in the enterprise bean's home, component and/or web	service endpoint interfaces.      </xsd:documentation>    </xsd:annotation>    <xsd:sequence>      <xsd:element name="description"		   type="j2ee:descriptionType"		   minOccurs="0"		   maxOccurs="unbounded"/>      <xsd:choice>	<xsd:element name="role-name"		     type="j2ee:role-nameType"		     maxOccurs="unbounded"/>	<xsd:element name="unchecked"		     type="j2ee:emptyType">	  <xsd:annotation>	    <xsd:documentation>	      The unchecked element specifies that a method is	      not checked for authorization by the container	      prior to invocation of the method.	    </xsd:documentation>	  </xsd:annotation>	</xsd:element>      </xsd:choice>      <xsd:element name="method"		   type="j2ee:methodType"		   maxOccurs="unbounded"/>    </xsd:sequence>    <xsd:attribute name="id" type="xsd:ID"/>  </xsd:complexType><!-- **************************************************** -->  <xsd:complexType name="methodType">    <xsd:annotation>      <xsd:documentation>	<![CDATA[	  The methodType is used to denote a method of an enterprise	  bean's home, component, and/or web service endpoint	  interface, or, in the case of a message-driven bean, the	  bean's message listener method, or a set of such	  methods. The ejb-name element must be the name of one of the	  enterprise beans declared in the deployment descriptor; the	  optional method-intf element allows to distinguish between a	  method with the same signature that is multiply defined	  across the home, component, and/or web service endpoint	  interfaces; the method-name element specifies the method	  name; and the optional method-params elements identify a	  single method among multiple methods with an overloaded	  method name.	  There are three possible styles of using methodType element	  within a method element:	  1.	  <method>	      <ejb-name>EJBNAME</ejb-name>	      <method-name>*</method-name>	  </method>	     This style is used to refer to all the methods of the	     specified enterprise bean's home, component, and/or web	     service endpoint interfaces.	  2.	  <method>	      <ejb-name>EJBNAME</ejb-name>	      <method-name>METHOD</method-name>	  </method>	     This style is used to refer to the specified method of	     the specified enterprise bean. If there are multiple	     methods with the same overloaded name, the element of	     this style refers to all the methods with the overloaded	     name.	  3.	  <method>	      <ejb-name>EJBNAME</ejb-name>	      <method-name>METHOD</method-name>	      <method-params>		  <method-param>PARAM-1</method-param>		  <method-param>PARAM-2</method-param>		  ...		  <method-param>PARAM-n</method-param>	      </method-params>	  </method>	     This style is used to refer to a single method within a	     set of methods with an overloaded name. PARAM-1 through	     PARAM-n are the fully-qualified Java types of the	     method's input parameters (if the method has no input	     arguments, the method-params element contains no	     method-param elements). Arrays are specified by the	     array element's type, followed by one or more pair of	     square brackets (e.g. int[][]). If there are multiple	     methods with the same overloaded name, this style refers	     to all of the overloaded methods.	  Examples:	  Style 1: The following method element refers to all the	  methods of the EmployeeService bean's home, component,	  and/or web service endpoint interfaces:	  <method>	      <ejb-name>EmployeeService</ejb-name>	      <method-name>*</method-name>	  </method>	  Style 2: The following method element refers to all the	  create methods of the EmployeeService bean's home	  interface(s).	  <method>	      <ejb-name>EmployeeService</ejb-name>	      <method-name>create</method-name>	  </method>	  Style 3: The following method element refers to the	  create(String firstName, String LastName) method of the	  EmployeeService bean's home interface(s).	  <method>	      <ejb-name>EmployeeService</ejb-name>	      <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 following example illustrates a Style 3 element with	  more complex parameter types. The method	  foobar(char s, int i, int[] iar, mypackage.MyClass mycl,	  mypackage.MyClass[][] myclaar) would be specified as:	  <method>	      <ejb-name>EmployeeService</ejb-name>	      <method-name>foobar</method-name>	      <method-params>		  <method-param>char</method-param>		  <method-param>int</method-param>		  <method-param>int[]</method-param>		  <method-param>mypackage.MyClass</method-param>		  <method-param>mypackage.MyClass[][]</method-param>	      </method-params>	  </method>	  The optional method-intf element can be used when it becomes	  necessary to differentiate between a method that is multiply	  defined across the enterprise bean's home, component, and/or	  web service endpoint interfaces with the same name and	  signature.	  For example, the method element	  <method>	      <ejb-name>EmployeeService</ejb-name>	      <method-intf>Remote</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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -