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

📄 ejb-jar_2_0.dtd

📁 jsp开发 com.objectlearn.jdt.j2ee_3.0.1
💻 DTD
📖 第 1 页 / 共 4 页
字号:
<!--The ejb-ref element is used for the declaration of a reference toan enterprise bean's home. The declaration consists of:	- an optional description	- the EJB reference name used in the code of	  the enterprise bean that's referencing the enterprise bean	- the expected type of the referenced enterprise bean	- the expected home and remote interfaces of the referenced	  enterprise bean	- optional ejb-link information, used to specify the referenced	  enterprise beanUsed in: entity, message-driven, session--><!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type,		home, remote, ejb-link?)><!--The ejb-ref-name element contains the name of an EJB reference. TheEJB reference is an entry in the enterprise bean's environment and isrelative to the java:comp/env context.  The name must be uniquewithin the enterprise bean.It is recommended that name is prefixed with "ejb/".Used in: ejb-local-ref, ejb-refExample:<ejb-ref-name>ejb/Payroll</ejb-ref-name>--><!ELEMENT ejb-ref-name (#PCDATA)><!--The ejb-ref-type element contains the expected type of thereferenced enterprise bean.The ejb-ref-type element must be one of the following:	<ejb-ref-type>Entity</ejb-ref-type>	<ejb-ref-type>Session</ejb-ref-type>Used in: ejb-local-ref, ejb-ref--><!ELEMENT ejb-ref-type (#PCDATA)><!--The ejb-relation element describes a relationship between twoentity beans with container-managed persistence.  An ejb-relationelement contains a description; an optional ejb-relation-name element;and exactly two relationship role declarations, defined by theejb-relationship-role elements. The name of the relationship, ifspecified, is unique within the ejb-jar file.Used in: relationships--><!ELEMENT ejb-relation (description?, ejb-relation-name?, ejb-relationship-role,ejb-relationship-role)><!--The ejb-relation-name element provides a unique name for a relationship.Used in: ejb-relation--><!ELEMENT ejb-relation-name (#PCDATA)><!--The ejb-relationship-role element describes a role within arelationship. There are two roles in each relationship.The ejb-relationship-role element contains an optional description; anoptional name for the relationship role; a specification of themultiplicity of the role; an optional specification of cascade-deletefunctionality for the role; the role source; and a declaration of thecmr-field, if any, by means of which the other side of therelationship is accessed from the perspective of the role source.The multiplicity and role-source element are mandatory.The relationship-role-source element designates an entity bean bymeans of an ejb-name element. For bidirectional relationships, bothroles of a relationship must declare a relationship-role-sourceelement that specifies a cmr-field in terms of which the relationshipis accessed. The lack of a cmr-field element in anejb-relationship-role specifies that the relationship isunidirectional in navigability and the entity bean that participatesin the relationship is "not aware" of the relationship.Used in: ejb-relationExample:<ejb-relation>    <ejb-relation-name>Product-LineItem</ejb-relation-name>    <ejb-relationship-role>        <ejb-relationship-role-name>product-has-lineitems        </ejb-relationship-role-name>        <multiplicity>One</multiplicity>        <relationship-role-source>        <ejb-name>ProductEJB</ejb-name>        </relationship-role-source>     </ejb-relationship-role>--><!ELEMENT ejb-relationship-role (description?, ejb-relationship-role-name?,multiplicity, cascade-delete?, relationship-role-source, cmr-field?)><!--The ejb-relationship-role-name element defines a name for a role thatis unique within an ejb-relation. Different relationships can use thesame name for a role.Used in: ejb-relationship-role--><!ELEMENT ejb-relationship-role-name (#PCDATA)><!--The enterprise-beans element contains the declarations of one or moreenterprise beans.--><!ELEMENT enterprise-beans (session | entity | message-driven)+><!--The entity element declares an entity bean. The declarationconsists of:	- an optional description	- an optional display name	- an optional small icon file name	- an optional large icon file name	- a unique name assigned to the enterprise bean	  in the deployment descriptor	- the names of the entity bean's remote home and remote          interfaces, if any	- the names of the entity bean's local home and local	  interfaces, if any	- the entity bean's implementation class	- the entity bean's persistence management type	- the entity bean's primary key class name	- an indication of the entity bean's reentrancy	- an optional specification of the entity bean's cmp-version	- an optional specification of the entity bean's abstract	  schema name	- an optional list of container-managed fields	- an optional specification of the primary key field	- 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 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 set of query declarations	  for finder and select methods for an entity	  bean with cmp-version 2.x.The optional abstract-schema-name element must be specified for anentity bean with container-managed persistence and cmp-version 2.x.The optional primkey-field may be present in the descriptor if theentity's persistence-type is Container.The optional cmp-version element may be present in the descriptor ifthe entity's persistence-type is Container. If the persistence-type isContainer and the cmp-version element is not specified, its valuedefaults to 2.x.The optional home and remote elements must be specified if the entitybean cmp-version is 1.x.The optional home and remote elements must be specified if the entitybean has a remote home and remote interface.The optional local-home and local elements must be specified if theentity bean has a local home and local interface.Either both the local-home and the local elements or both thehome and the remote elements must be specified.The optional query elements must be present if the persistence-type isContainer and the cmp-version is 2.x and query methods other thanfindByPrimaryKey have been defined for the entity bean.The other elements that are optional are "optional" in the sense thatthey are omitted if the lists represented by them are empty.At least one cmp-field element must be present in the descriptor ifthe entity's persistence-type is Container and the cmp-version is 1.x,and none must not be present if the entity's persistence-type is Bean.Used in: enterprise-beans--><!ELEMENT entity (description?, display-name?, small-icon?,		large-icon?, ejb-name, home?, remote?, local-home?,		local?, ejb-class, persistence-type, prim-key-class,		reentrant, cmp-version?, abstract-schema-name?,		cmp-field*, primkey-field?, env-entry*, ejb-ref*,		ejb-local-ref*, security-role-ref*, security-identity?,		resource-ref*, resource-env-ref*, query*)><!--The env-entry element contains the declaration of an enterprise bean'senvironment entry. The declaration consists of an optionaldescription, the name of the environment entry, and an optionalvalue.  If a value is not specified, one must be suppliedduring deployment.Used in: entity, message-driven, session--><!ELEMENT env-entry (description?, env-entry-name, env-entry-type,		env-entry-value?)><!--The env-entry-name element contains the name of an enterprise bean'senvironment entry.  The name is a JNDI name relative to thejava:comp/env context.  The name must be unique within an enterprise bean.Used in: env-entryExample:<env-entry-name>minAmount</env-entry-name>--><!ELEMENT env-entry-name (#PCDATA)><!--The env-entry-type element contains the fully-qualified Java type ofthe environment entry value that is expected by the enterprise bean'scode.The following are the legal values of env-entry-type:	java.lang.Boolean	java.lang.Byte	java.lang.Character	java.lang.String	java.lang.Short	java.lang.Integer	java.lang.Long	java.lang.Float	java.lang.DoubleUsed in: env-entryExample:<env-entry-type>java.lang.Boolean</env-entry-type>--><!ELEMENT env-entry-type (#PCDATA)><!--The env-entry-value element contains the value of an enterprise bean'senvironment entry. The value must be a String that is valid for theconstructor of the specified type that takes a single Stringparameter, or for java.lang.Character, a single character.Used in: env-entryExample:<env-entry-value>100.00</env-entry-value>--><!ELEMENT env-entry-value (#PCDATA)><!--The exclude list element specifies one or more methods which theAssembler marks to be uncallable.If the method permission relation contains methods that are in theexclude list, the Deployer should consider those methods to beuncallable.Used in: assembly-descriptor--><!ELEMENT exclude-list (description?, method+)><!--The field-name element specifies the name of a container managedfield.The name of the cmp-field of an entity bean with cmp-version 2.x mustbegin with a lowercase letter. This field is accessed by methods whosenames consists of the name of the field specified by field-name inwhich the first letter is uppercased, prefixed by "get" or "set".The name of the cmp-field of an entity bean with cmp-version 1.x mustdenote a public field of the enterprise bean class or one of itssuperclasses.Used in: cmp-fieldExample:	<field-name>firstName</field-Name>--><!ELEMENT field-name (#PCDATA)><!--The home element contains the fully-qualified name of the enterprisebean's home interface.Used in: ejb-ref, entity, sessionExample:<home>com.aardvark.payroll.PayrollHome</home>--><!ELEMENT home (#PCDATA)><!--The large-icon element contains the name of a filecontaining a large (32 x 32) icon image. The filename is a relative path within the enterprise bean'sejb-jar file.The image may be either in the JPEG or GIF format.The icon can be used by tools.Used in: ejb-jar, entity, message-driven, sessionExample:<large-icon>employee-service-icon32x32.jpg</large-icon>--><!ELEMENT large-icon (#PCDATA)><!--The local element contains the fully-qualified name of theenterprise bean's local interface.Used in: ejb-local-ref, entity, session--><!ELEMENT local (#PCDATA)><!--The local-home element contains the fully-qualified name of theenterprise bean's local home interface.Used in: ejb-local-ref, entity, session--><!ELEMENT local-home (#PCDATA)><!--The message-driven element declares a message-driven bean. Thedeclaration consists of:	- an optional description	- an optional display name	- an optional small icon file name	- an optional large icon file name	- a name assigned to the enterprise bean in	  the deployment descriptor	- the message-driven bean's implementation class	- the message-driven bean's transaction management type	- an optional declaration of the message-driven bean's	  message selector	- an optional declaration of the	  acknowledgment mode for the message-driven bean	  if bean-managed transaction demarcation is used	- an optional declaration of the	  intended destination type of the message-driven bean	- 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 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.Used in: enterprise-beans--><!ELEMENT message-driven (description?, display-name?, small-icon?,		large-icon?, ejb-name, ejb-class, transaction-type,		message-selector?, acknowledge-mode?,		message-driven-destination?, env-entry*, ejb-ref*,		ejb-local-ref*, security-identity?, resource-ref*,		resource-env-ref*)><!--The message-driven-destination element provides advice to the Deployeras to whether a message-driven bean is intended for a Queue or aTopic. The declaration consists of: the type of the message-drivenbean's intended destination and an optional declaration of whether adurable or non-durable subscription should be used if thedestination-type is javax.jms.Topic.Used in: message-driven--><!ELEMENT message-driven-destination (destination-type,subscription-durability?)><!--The message-selector element is used to specify the JMS messageselector to be used in determining which messages a message-drivenbean is to receive.Example:<message-selector>JMSType = `car' AND color = `blue' AND weight &gt; 2500</message-selector>Used in: message-driven-->

⌨️ 快捷键说明

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