|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionBeanType
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 - an optional mapped-name element that can be used to provide vendor-specific deployment information such as the physical jndi-name of the session bean's remote home/business interface. This element is not required to be supported by all implementations. Any use of this element is non-portable. - the names of all the remote or local business interfaces, if any - 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 - an optional declaration of the session bean's timeout method. - the optional session bean's transaction management type. If it is not present, it is defaulted to Container. - an optional list of the session bean class and/or superclass around-invoke methods. - 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.
Java class for session-beanType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="session-beanType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
<element name="ejb-name" type="{http://java.sun.com/xml/ns/javaee}ejb-nameType"/>
<element name="mapped-name" type="{http://java.sun.com/xml/ns/javaee}xsdStringType" minOccurs="0"/>
<element name="home" type="{http://java.sun.com/xml/ns/javaee}homeType" minOccurs="0"/>
<element name="remote" type="{http://java.sun.com/xml/ns/javaee}remoteType" minOccurs="0"/>
<element name="local-home" type="{http://java.sun.com/xml/ns/javaee}local-homeType" minOccurs="0"/>
<element name="local" type="{http://java.sun.com/xml/ns/javaee}localType" minOccurs="0"/>
<element name="business-local" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" maxOccurs="unbounded" minOccurs="0"/>
<element name="business-remote" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" maxOccurs="unbounded" minOccurs="0"/>
<element name="service-endpoint" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
<element name="ejb-class" type="{http://java.sun.com/xml/ns/javaee}ejb-classType" minOccurs="0"/>
<element name="session-type" type="{http://java.sun.com/xml/ns/javaee}session-typeType" minOccurs="0"/>
<element name="timeout-method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/>
<element name="init-method" type="{http://java.sun.com/xml/ns/javaee}init-methodType" maxOccurs="unbounded" minOccurs="0"/>
<element name="remove-method" type="{http://java.sun.com/xml/ns/javaee}remove-methodType" maxOccurs="unbounded" minOccurs="0"/>
<element name="transaction-type" type="{http://java.sun.com/xml/ns/javaee}transaction-typeType" minOccurs="0"/>
<element name="around-invoke" type="{http://java.sun.com/xml/ns/javaee}around-invokeType" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://java.sun.com/xml/ns/javaee}jndiEnvironmentRefsGroup"/>
<element name="post-activate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/>
<element name="pre-passivate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/>
<element name="security-role-ref" type="{http://java.sun.com/xml/ns/javaee}security-role-refType" maxOccurs="unbounded" minOccurs="0"/>
<element name="security-identity" type="{http://java.sun.com/xml/ns/javaee}security-identityType" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
</restriction>
</complexContent>
</complexType>
| Method Detail |
|---|
DescriptionType[] getDescription()
DescriptionTypeDescriptionType getDescription(int idx)
DescriptionTypeint getDescriptionLength()
void setDescription(DescriptionType[] values)
values - allowed objects are
DescriptionType
DescriptionType setDescription(int idx,
DescriptionType value)
value - allowed object is
DescriptionTypeDisplayNameType[] getDisplayName()
DisplayNameTypeDisplayNameType getDisplayName(int idx)
DisplayNameTypeint getDisplayNameLength()
void setDisplayName(DisplayNameType[] values)
values - allowed objects are
DisplayNameType
DisplayNameType setDisplayName(int idx,
DisplayNameType value)
value - allowed object is
DisplayNameTypeIconType[] getIcon()
IconTypeIconType getIcon(int idx)
IconTypeint getIconLength()
void setIcon(IconType[] values)
values - allowed objects are
IconType
IconType setIcon(int idx,
IconType value)
value - allowed object is
IconTypeEjbNameType getEjbName()
EjbNameTypevoid setEjbName(EjbNameType value)
value - allowed object is
EjbNameTypeXsdStringType getMappedName()
XsdStringTypevoid setMappedName(XsdStringType value)
value - allowed object is
XsdStringTypeHomeType getHome()
HomeTypevoid setHome(HomeType value)
value - allowed object is
HomeTypeRemoteType getRemote()
RemoteTypevoid setRemote(RemoteType value)
value - allowed object is
RemoteTypeLocalHomeType getLocalHome()
LocalHomeTypevoid setLocalHome(LocalHomeType value)
value - allowed object is
LocalHomeTypeLocalType getLocal()
LocalTypevoid setLocal(LocalType value)
value - allowed object is
LocalTypeFullyQualifiedClassType[] getBusinessLocal()
FullyQualifiedClassTypeFullyQualifiedClassType getBusinessLocal(int idx)
FullyQualifiedClassTypeint getBusinessLocalLength()
void setBusinessLocal(FullyQualifiedClassType[] values)
values - allowed objects are
FullyQualifiedClassType
FullyQualifiedClassType setBusinessLocal(int idx,
FullyQualifiedClassType value)
value - allowed object is
FullyQualifiedClassTypeFullyQualifiedClassType[] getBusinessRemote()
FullyQualifiedClassTypeFullyQualifiedClassType getBusinessRemote(int idx)
FullyQualifiedClassTypeint getBusinessRemoteLength()
void setBusinessRemote(FullyQualifiedClassType[] values)
values - allowed objects are
FullyQualifiedClassType
FullyQualifiedClassType setBusinessRemote(int idx,
FullyQualifiedClassType value)
value - allowed object is
FullyQualifiedClassTypeFullyQualifiedClassType getServiceEndpoint()
FullyQualifiedClassTypevoid setServiceEndpoint(FullyQualifiedClassType value)
value - allowed object is
FullyQualifiedClassTypeEjbClassType getEjbClass()
EjbClassTypevoid setEjbClass(EjbClassType value)
value - allowed object is
EjbClassTypeSessionTypeType getSessionType()
SessionTypeTypevoid setSessionType(SessionTypeType value)
value - allowed object is
SessionTypeTypeNamedMethodType getTimeoutMethod()
NamedMethodTypevoid setTimeoutMethod(NamedMethodType value)
value - allowed object is
NamedMethodTypeInitMethodType[] getInitMethod()
InitMethodTypeInitMethodType getInitMethod(int idx)
InitMethodTypeint getInitMethodLength()
void setInitMethod(InitMethodType[] values)
values - allowed objects are
InitMethodType
InitMethodType setInitMethod(int idx,
InitMethodType value)
value - allowed object is
InitMethodTypeRemoveMethodType[] getRemoveMethod()
RemoveMethodTypeRemoveMethodType getRemoveMethod(int idx)
RemoveMethodTypeint getRemoveMethodLength()
void setRemoveMethod(RemoveMethodType[] values)
values - allowed objects are
RemoveMethodType
RemoveMethodType setRemoveMethod(int idx,
RemoveMethodType value)
value - allowed object is
RemoveMethodTypeTransactionTypeType getTransactionType()
TransactionTypeTypevoid setTransactionType(TransactionTypeType value)
value - allowed object is
TransactionTypeTypeAroundInvokeType[] getAroundInvoke()
AroundInvokeTypeAroundInvokeType getAroundInvoke(int idx)
AroundInvokeTypeint getAroundInvokeLength()
void setAroundInvoke(AroundInvokeType[] values)
values - allowed objects are
AroundInvokeType
AroundInvokeType setAroundInvoke(int idx,
AroundInvokeType value)
value - allowed object is
AroundInvokeTypeEnvEntryType[] getEnvEntry()
EnvEntryTypeEnvEntryType getEnvEntry(int idx)
EnvEntryTypeint getEnvEntryLength()
void setEnvEntry(EnvEntryType[] values)
values - allowed objects are
EnvEntryType
EnvEntryType setEnvEntry(int idx,
EnvEntryType value)
value - allowed object is
EnvEntryTypeEjbRefType[] getEjbRef()
EjbRefTypeEjbRefType getEjbRef(int idx)
EjbRefTypeint getEjbRefLength()
void setEjbRef(EjbRefType[] values)
values - allowed objects are
EjbRefType
EjbRefType setEjbRef(int idx,
EjbRefType value)
value - allowed object is
EjbRefTypeEjbLocalRefType[] getEjbLocalRef()
EjbLocalRefTypeEjbLocalRefType getEjbLocalRef(int idx)
EjbLocalRefTypeint getEjbLocalRefLength()
void setEjbLocalRef(EjbLocalRefType[] values)
values - allowed objects are
EjbLocalRefType
EjbLocalRefType setEjbLocalRef(int idx,
EjbLocalRefType value)
value - allowed object is
EjbLocalRefTypeServiceRefType[] getServiceRef()
ServiceRefTypeServiceRefType getServiceRef(int idx)
ServiceRefTypeint getServiceRefLength()
void setServiceRef(ServiceRefType[] values)
values - allowed objects are
ServiceRefType
ServiceRefType setServiceRef(int idx,
ServiceRefType value)
value - allowed object is
ServiceRefTypeResourceRefType[] getResourceRef()
ResourceRefTypeResourceRefType getResourceRef(int idx)
ResourceRefTypeint getResourceRefLength()
void setResourceRef(ResourceRefType[] values)
values - allowed objects are
ResourceRefType
ResourceRefType setResourceRef(int idx,
ResourceRefType value)
value - allowed object is
ResourceRefTypeResourceEnvRefType[] getResourceEnvRef()
ResourceEnvRefTypeResourceEnvRefType getResourceEnvRef(int idx)
ResourceEnvRefTypeint getResourceEnvRefLength()
void setResourceEnvRef(ResourceEnvRefType[] values)
values - allowed objects are
ResourceEnvRefType
ResourceEnvRefType setResourceEnvRef(int idx,
ResourceEnvRefType value)
value - allowed object is
ResourceEnvRefTypeMessageDestinationRefType[] getMessageDestinationRef()
MessageDestinationRefTypeMessageDestinationRefType getMessageDestinationRef(int idx)
MessageDestinationRefTypeint getMessageDestinationRefLength()
void setMessageDestinationRef(MessageDestinationRefType[] values)
values - allowed objects are
MessageDestinationRefType
MessageDestinationRefType setMessageDestinationRef(int idx,
MessageDestinationRefType value)
value - allowed object is
MessageDestinationRefTypePersistenceContextRefType[] getPersistenceContextRef()
PersistenceContextRefTypePersistenceContextRefType getPersistenceContextRef(int idx)
PersistenceContextRefTypeint getPersistenceContextRefLength()
void setPersistenceContextRef(PersistenceContextRefType[] values)
values - allowed objects are
PersistenceContextRefType
PersistenceContextRefType setPersistenceContextRef(int idx,
PersistenceContextRefType value)
value - allowed object is
PersistenceContextRefTypePersistenceUnitRefType[] getPersistenceUnitRef()
PersistenceUnitRefTypePersistenceUnitRefType getPersistenceUnitRef(int idx)
PersistenceUnitRefTypeint getPersistenceUnitRefLength()
void setPersistenceUnitRef(PersistenceUnitRefType[] values)
values - allowed objects are
PersistenceUnitRefType
PersistenceUnitRefType setPersistenceUnitRef(int idx,
PersistenceUnitRefType value)
value - allowed object is
PersistenceUnitRefTypeLifecycleCallbackType[] getPostConstruct()
LifecycleCallbackTypeLifecycleCallbackType getPostConstruct(int idx)
LifecycleCallbackTypeint getPostConstructLength()
void setPostConstruct(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPostConstruct(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeLifecycleCallbackType[] getPreDestroy()
LifecycleCallbackTypeLifecycleCallbackType getPreDestroy(int idx)
LifecycleCallbackTypeint getPreDestroyLength()
void setPreDestroy(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPreDestroy(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeLifecycleCallbackType[] getPostActivate()
LifecycleCallbackTypeLifecycleCallbackType getPostActivate(int idx)
LifecycleCallbackTypeint getPostActivateLength()
void setPostActivate(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPostActivate(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeLifecycleCallbackType[] getPrePassivate()
LifecycleCallbackTypeLifecycleCallbackType getPrePassivate(int idx)
LifecycleCallbackTypeint getPrePassivateLength()
void setPrePassivate(LifecycleCallbackType[] values)
values - allowed objects are
LifecycleCallbackType
LifecycleCallbackType setPrePassivate(int idx,
LifecycleCallbackType value)
value - allowed object is
LifecycleCallbackTypeSecurityRoleRefType[] getSecurityRoleRef()
SecurityRoleRefTypeSecurityRoleRefType getSecurityRoleRef(int idx)
SecurityRoleRefTypeint getSecurityRoleRefLength()
void setSecurityRoleRef(SecurityRoleRefType[] values)
values - allowed objects are
SecurityRoleRefType
SecurityRoleRefType setSecurityRoleRef(int idx,
SecurityRoleRefType value)
value - allowed object is
SecurityRoleRefTypeSecurityIdentityType getSecurityIdentity()
SecurityIdentityTypevoid setSecurityIdentity(SecurityIdentityType value)
value - allowed object is
SecurityIdentityTypeString getId()
Stringvoid setId(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||