org.jboss.shrinkwrap.descriptor.api.ejbjar30
Interface SessionBeanType<T>

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
SessionBeanTypeImpl

public interface SessionBeanType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>

This interface defines the contract for the session-beanType xsd type

Original 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
- 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.


Since:
Generation date :2011-07-19T22:54:35.59+02:00
Author:
Ralf Battenfeld

Method Summary
 AroundInvokeType<SessionBeanType<T>> aroundInvoke()
          Returns the around-invoke element
 EjbLocalRefType<SessionBeanType<T>> ejbLocalRef()
          Returns the ejb-local-ref element
 EjbRefType<SessionBeanType<T>> ejbRef()
          Returns the ejb-ref element
 EnvEntryType<SessionBeanType<T>> envEntry()
          Returns the env-entry element
 java.util.List<AroundInvokeType<SessionBeanType<T>>> getAroundInvokeList()
          Returns all around-invoke elements
 java.util.List<java.lang.String> getBusinessLocalList()
          Returns all business-local elements
 java.util.List<java.lang.String> getBusinessRemoteList()
          Returns all business-remote elements
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.util.List<java.lang.String> getDisplayNameList()
          Returns all display-name elements
 java.lang.String getEjbClass()
          Returns the ejb-class element
 java.util.List<EjbLocalRefType<SessionBeanType<T>>> getEjbLocalRefList()
          Returns all ejb-local-ref elements
 java.lang.String getEjbName()
          Returns the ejb-name element
 java.util.List<EjbRefType<SessionBeanType<T>>> getEjbRefList()
          Returns all ejb-ref elements
 java.util.List<EnvEntryType<SessionBeanType<T>>> getEnvEntryList()
          Returns all env-entry elements
 java.lang.String getHome()
          Returns the home element
 java.util.List<IconType<SessionBeanType<T>>> getIconList()
          Returns all icon elements
 java.util.List<InitMethodType<SessionBeanType<T>>> getInitMethodList()
          Returns all init-method elements
 java.lang.String getLocal()
          Returns the local element
 java.lang.String getLocalHome()
          Returns the local-home element
 java.lang.String getMappedName()
          Returns the mapped-name element
 java.util.List<MessageDestinationRefType<SessionBeanType<T>>> getMessageDestinationRefList()
          Returns all message-destination-ref elements
 java.util.List<PersistenceContextRefType<SessionBeanType<T>>> getPersistenceContextRefList()
          Returns all persistence-context-ref elements
 java.util.List<PersistenceUnitRefType<SessionBeanType<T>>> getPersistenceUnitRefList()
          Returns all persistence-unit-ref elements
 java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPostActivateList()
          Returns all post-activate elements
 java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPostConstructList()
          Returns all post-construct elements
 java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPreDestroyList()
          Returns all pre-destroy elements
 java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPrePassivateList()
          Returns all pre-passivate elements
 java.lang.String getRemote()
          Returns the remote element
 java.util.List<RemoveMethodType<SessionBeanType<T>>> getRemoveMethodList()
          Returns all remove-method elements
 java.util.List<ResourceEnvRefType<SessionBeanType<T>>> getResourceEnvRefList()
          Returns all resource-env-ref elements
 java.util.List<ResourceRefType<SessionBeanType<T>>> getResourceRefList()
          Returns all resource-ref elements
 java.util.List<SecurityRoleRefType<SessionBeanType<T>>> getSecurityRoleRefList()
          Returns all security-role-ref elements
 java.lang.String getServiceEndpoint()
          Returns the service-endpoint element
 java.util.List<ServiceRefType<SessionBeanType<T>>> getServiceRefList()
          Returns all service-ref elements
 SessionTypeType getSessionType()
          Returns the session-type element
 java.lang.String getSessionTypeAsString()
          Returns the session-type element
 TransactionTypeType getTransactionType()
          Returns the transaction-type element
 java.lang.String getTransactionTypeAsString()
          Returns the transaction-type element
 IconType<SessionBeanType<T>> icon()
          Returns the icon element
 InitMethodType<SessionBeanType<T>> initMethod()
          Returns the init-method element
 MessageDestinationRefType<SessionBeanType<T>> messageDestinationRef()
          Returns the message-destination-ref element
 PersistenceContextRefType<SessionBeanType<T>> persistenceContextRef()
          Returns the persistence-context-ref element
 PersistenceUnitRefType<SessionBeanType<T>> persistenceUnitRef()
          Returns the persistence-unit-ref element
 LifecycleCallbackType<SessionBeanType<T>> postActivate()
          Returns the post-activate element
 LifecycleCallbackType<SessionBeanType<T>> postConstruct()
          Returns the post-construct element
 LifecycleCallbackType<SessionBeanType<T>> preDestroy()
          Returns the pre-destroy element
 LifecycleCallbackType<SessionBeanType<T>> prePassivate()
          Returns the pre-passivate element
 SessionBeanType<T> removeAllAroundInvoke()
          Removes all around-invoke elements
 SessionBeanType<T> removeAllBusinessLocal()
          Removes the business-local element
 SessionBeanType<T> removeAllBusinessRemote()
          Removes the business-remote element
 SessionBeanType<T> removeAllDescription()
          Removes the description element
 SessionBeanType<T> removeAllDisplayName()
          Removes the display-name element
 SessionBeanType<T> removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 SessionBeanType<T> removeAllEjbRef()
          Removes all ejb-ref elements
 SessionBeanType<T> removeAllEnvEntry()
          Removes all env-entry elements
 SessionBeanType<T> removeAllIcon()
          Removes all icon elements
 SessionBeanType<T> removeAllInitMethod()
          Removes all init-method elements
 SessionBeanType<T> removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 SessionBeanType<T> removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 SessionBeanType<T> removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 SessionBeanType<T> removeAllPostActivate()
          Removes all post-activate elements
 SessionBeanType<T> removeAllPostConstruct()
          Removes all post-construct elements
 SessionBeanType<T> removeAllPreDestroy()
          Removes all pre-destroy elements
 SessionBeanType<T> removeAllPrePassivate()
          Removes all pre-passivate elements
 SessionBeanType<T> removeAllRemoveMethod()
          Removes all remove-method elements
 SessionBeanType<T> removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 SessionBeanType<T> removeAllResourceRef()
          Removes all resource-ref elements
 SessionBeanType<T> removeAllSecurityRoleRef()
          Removes all security-role-ref elements
 SessionBeanType<T> removeAllServiceRef()
          Removes all service-ref elements
 SessionBeanType<T> removeEjbClass()
          Removes the ejb-class element
 SessionBeanType<T> removeEjbName()
          Removes the ejb-name element
 SessionBeanType<T> removeHome()
          Removes the home element
 SessionBeanType<T> removeLocal()
          Removes the local element
 SessionBeanType<T> removeLocalHome()
          Removes the local-home element
 SessionBeanType<T> removeMappedName()
          Removes the mapped-name element
 RemoveMethodType<SessionBeanType<T>> removeMethod()
          Returns the remove-method element
 SessionBeanType<T> removeRemote()
          Removes the remote element
 SessionBeanType<T> removeSecurityIdentity()
          Removes the security-identity element
 SessionBeanType<T> removeServiceEndpoint()
          Removes the service-endpoint element
 SessionBeanType<T> removeTimeoutMethod()
          Removes the timeout-method element
 ResourceEnvRefType<SessionBeanType<T>> resourceEnvRef()
          Returns the resource-env-ref element
 ResourceRefType<SessionBeanType<T>> resourceRef()
          Returns the resource-ref element
 SecurityIdentityType<SessionBeanType<T>> securityIdentity()
          If not already created, a new security-identity element will be created and returned.
 SecurityRoleRefType<SessionBeanType<T>> securityRoleRef()
          Returns the security-role-ref element
 ServiceRefType<SessionBeanType<T>> serviceRef()
          Returns the service-ref element
 SessionBeanType<T> setBusinessLocal(java.lang.String businessLocal)
          Creates a new business-local element
 SessionBeanType<T> setBusinessLocalList(java.lang.String... values)
          Creates for all String objects representing business-local elements, a new business-local element
 SessionBeanType<T> setBusinessRemote(java.lang.String businessRemote)
          Creates a new business-remote element
 SessionBeanType<T> setBusinessRemoteList(java.lang.String... values)
          Creates for all String objects representing business-remote elements, a new business-remote element
 SessionBeanType<T> setDescription(java.lang.String description)
          Creates a new description element
 SessionBeanType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 SessionBeanType<T> setDisplayName(java.lang.String displayName)
          Creates a new display-name element
 SessionBeanType<T> setDisplayNameList(java.lang.String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 SessionBeanType<T> setEjbClass(java.lang.String ejbClass)
          If not already created, a new ejb-class element with the given value will be created.
 SessionBeanType<T> setEjbName(java.lang.String ejbName)
          If not already created, a new ejb-name element with the given value will be created.
 SessionBeanType<T> setHome(java.lang.String home)
          If not already created, a new home element with the given value will be created.
 SessionBeanType<T> setLocal(java.lang.String local)
          If not already created, a new local element with the given value will be created.
 SessionBeanType<T> setLocalHome(java.lang.String localHome)
          If not already created, a new local-home element with the given value will be created.
 SessionBeanType<T> setMappedName(java.lang.String mappedName)
          If not already created, a new mapped-name element with the given value will be created.
 SessionBeanType<T> setRemote(java.lang.String remote)
          If not already created, a new remote element with the given value will be created.
 SessionBeanType<T> setServiceEndpoint(java.lang.String serviceEndpoint)
          If not already created, a new service-endpoint element with the given value will be created.
 SessionBeanType<T> setSessionType(SessionTypeType sessionType)
          If not already created, a new session-type element with the given value will be created.
 SessionBeanType<T> setSessionType(java.lang.String sessionType)
          If not already created, a new session-type element with the given value will be created.
 SessionBeanType<T> setTransactionType(java.lang.String transactionType)
          If not already created, a new transaction-type element with the given value will be created.
 SessionBeanType<T> setTransactionType(TransactionTypeType transactionType)
          If not already created, a new transaction-type element with the given value will be created.
 NamedMethodType<SessionBeanType<T>> timeoutMethod()
          If not already created, a new timeout-method element will be created and returned.
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

setDescription

SessionBeanType<T> setDescription(java.lang.String description)
Creates a new description element

Returns:
the current instance of SessionBeanType

setDescriptionList

SessionBeanType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
list - of description objects
Returns:
the current instance of SessionBeanType

removeAllDescription

SessionBeanType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of SessionBeanType

getDescriptionList

java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Returns:
list of description

setDisplayName

SessionBeanType<T> setDisplayName(java.lang.String displayName)
Creates a new display-name element

Returns:
the current instance of SessionBeanType

setDisplayNameList

SessionBeanType<T> setDisplayNameList(java.lang.String... values)
Creates for all String objects representing display-name elements, a new display-name element

Parameters:
list - of display-name objects
Returns:
the current instance of SessionBeanType

removeAllDisplayName

SessionBeanType<T> removeAllDisplayName()
Removes the display-name element

Returns:
the current instance of SessionBeanType

getDisplayNameList

java.util.List<java.lang.String> getDisplayNameList()
Returns all display-name elements

Returns:
list of display-name

removeAllIcon

SessionBeanType<T> removeAllIcon()
Removes all icon elements

Returns:
the current instance of SessionBeanType

icon

IconType<SessionBeanType<T>> icon()
Returns the icon element

Returns:
the node defined for the element icon

getIconList

java.util.List<IconType<SessionBeanType<T>>> getIconList()
Returns all icon elements

Returns:
list of icon

removeAllEnvEntry

SessionBeanType<T> removeAllEnvEntry()
Removes all env-entry elements

Returns:
the current instance of SessionBeanType

envEntry

EnvEntryType<SessionBeanType<T>> envEntry()
Returns the env-entry element

Returns:
the node defined for the element env-entry

getEnvEntryList

java.util.List<EnvEntryType<SessionBeanType<T>>> getEnvEntryList()
Returns all env-entry elements

Returns:
list of env-entry

removeAllEjbRef

SessionBeanType<T> removeAllEjbRef()
Removes all ejb-ref elements

Returns:
the current instance of SessionBeanType

ejbRef

EjbRefType<SessionBeanType<T>> ejbRef()
Returns the ejb-ref element

Returns:
the node defined for the element ejb-ref

getEjbRefList

java.util.List<EjbRefType<SessionBeanType<T>>> getEjbRefList()
Returns all ejb-ref elements

Returns:
list of ejb-ref

removeAllEjbLocalRef

SessionBeanType<T> removeAllEjbLocalRef()
Removes all ejb-local-ref elements

Returns:
the current instance of SessionBeanType

ejbLocalRef

EjbLocalRefType<SessionBeanType<T>> ejbLocalRef()
Returns the ejb-local-ref element

Returns:
the node defined for the element ejb-local-ref

getEjbLocalRefList

java.util.List<EjbLocalRefType<SessionBeanType<T>>> getEjbLocalRefList()
Returns all ejb-local-ref elements

Returns:
list of ejb-local-ref

removeAllResourceRef

SessionBeanType<T> removeAllResourceRef()
Removes all resource-ref elements

Returns:
the current instance of SessionBeanType

resourceRef

ResourceRefType<SessionBeanType<T>> resourceRef()
Returns the resource-ref element

Returns:
the node defined for the element resource-ref

getResourceRefList

java.util.List<ResourceRefType<SessionBeanType<T>>> getResourceRefList()
Returns all resource-ref elements

Returns:
list of resource-ref

removeAllResourceEnvRef

SessionBeanType<T> removeAllResourceEnvRef()
Removes all resource-env-ref elements

Returns:
the current instance of SessionBeanType

resourceEnvRef

ResourceEnvRefType<SessionBeanType<T>> resourceEnvRef()
Returns the resource-env-ref element

Returns:
the node defined for the element resource-env-ref

getResourceEnvRefList

java.util.List<ResourceEnvRefType<SessionBeanType<T>>> getResourceEnvRefList()
Returns all resource-env-ref elements

Returns:
list of resource-env-ref

removeAllMessageDestinationRef

SessionBeanType<T> removeAllMessageDestinationRef()
Removes all message-destination-ref elements

Returns:
the current instance of SessionBeanType

messageDestinationRef

MessageDestinationRefType<SessionBeanType<T>> messageDestinationRef()
Returns the message-destination-ref element

Returns:
the node defined for the element message-destination-ref

getMessageDestinationRefList

java.util.List<MessageDestinationRefType<SessionBeanType<T>>> getMessageDestinationRefList()
Returns all message-destination-ref elements

Returns:
list of message-destination-ref

removeAllPersistenceContextRef

SessionBeanType<T> removeAllPersistenceContextRef()
Removes all persistence-context-ref elements

Returns:
the current instance of SessionBeanType

persistenceContextRef

PersistenceContextRefType<SessionBeanType<T>> persistenceContextRef()
Returns the persistence-context-ref element

Returns:
the node defined for the element persistence-context-ref

getPersistenceContextRefList

java.util.List<PersistenceContextRefType<SessionBeanType<T>>> getPersistenceContextRefList()
Returns all persistence-context-ref elements

Returns:
list of persistence-context-ref

removeAllPersistenceUnitRef

SessionBeanType<T> removeAllPersistenceUnitRef()
Removes all persistence-unit-ref elements

Returns:
the current instance of SessionBeanType

persistenceUnitRef

PersistenceUnitRefType<SessionBeanType<T>> persistenceUnitRef()
Returns the persistence-unit-ref element

Returns:
the node defined for the element persistence-unit-ref

getPersistenceUnitRefList

java.util.List<PersistenceUnitRefType<SessionBeanType<T>>> getPersistenceUnitRefList()
Returns all persistence-unit-ref elements

Returns:
list of persistence-unit-ref

removeAllPostConstruct

SessionBeanType<T> removeAllPostConstruct()
Removes all post-construct elements

Returns:
the current instance of SessionBeanType

postConstruct

LifecycleCallbackType<SessionBeanType<T>> postConstruct()
Returns the post-construct element

Returns:
the node defined for the element post-construct

getPostConstructList

java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPostConstructList()
Returns all post-construct elements

Returns:
list of post-construct

removeAllPreDestroy

SessionBeanType<T> removeAllPreDestroy()
Removes all pre-destroy elements

Returns:
the current instance of SessionBeanType

preDestroy

LifecycleCallbackType<SessionBeanType<T>> preDestroy()
Returns the pre-destroy element

Returns:
the node defined for the element pre-destroy

getPreDestroyList

java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPreDestroyList()
Returns all pre-destroy elements

Returns:
list of pre-destroy

removeAllServiceRef

SessionBeanType<T> removeAllServiceRef()
Removes all service-ref elements

Returns:
the current instance of SessionBeanType

serviceRef

ServiceRefType<SessionBeanType<T>> serviceRef()
Returns the service-ref element

Returns:
the node defined for the element service-ref

getServiceRefList

java.util.List<ServiceRefType<SessionBeanType<T>>> getServiceRefList()
Returns all service-ref elements

Returns:
list of service-ref

setEjbName

SessionBeanType<T> setEjbName(java.lang.String ejbName)
If not already created, a new ejb-name element with the given value will be created. Otherwise, the existing ejb-name element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeEjbName

SessionBeanType<T> removeEjbName()
Removes the ejb-name element

Returns:
the current instance of SessionBeanType

getEjbName

java.lang.String getEjbName()
Returns the ejb-name element

Returns:
the node defined for the element ejb-name

setMappedName

SessionBeanType<T> setMappedName(java.lang.String mappedName)
If not already created, a new mapped-name element with the given value will be created. Otherwise, the existing mapped-name element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeMappedName

SessionBeanType<T> removeMappedName()
Removes the mapped-name element

Returns:
the current instance of SessionBeanType

getMappedName

java.lang.String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

setHome

SessionBeanType<T> setHome(java.lang.String home)
If not already created, a new home element with the given value will be created. Otherwise, the existing home element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeHome

SessionBeanType<T> removeHome()
Removes the home element

Returns:
the current instance of SessionBeanType

getHome

java.lang.String getHome()
Returns the home element

Returns:
the node defined for the element home

setRemote

SessionBeanType<T> setRemote(java.lang.String remote)
If not already created, a new remote element with the given value will be created. Otherwise, the existing remote element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeRemote

SessionBeanType<T> removeRemote()
Removes the remote element

Returns:
the current instance of SessionBeanType

getRemote

java.lang.String getRemote()
Returns the remote element

Returns:
the node defined for the element remote

setLocalHome

SessionBeanType<T> setLocalHome(java.lang.String localHome)
If not already created, a new local-home element with the given value will be created. Otherwise, the existing local-home element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeLocalHome

SessionBeanType<T> removeLocalHome()
Removes the local-home element

Returns:
the current instance of SessionBeanType

getLocalHome

java.lang.String getLocalHome()
Returns the local-home element

Returns:
the node defined for the element local-home

setLocal

SessionBeanType<T> setLocal(java.lang.String local)
If not already created, a new local element with the given value will be created. Otherwise, the existing local element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeLocal

SessionBeanType<T> removeLocal()
Removes the local element

Returns:
the current instance of SessionBeanType

getLocal

java.lang.String getLocal()
Returns the local element

Returns:
the node defined for the element local

setBusinessLocal

SessionBeanType<T> setBusinessLocal(java.lang.String businessLocal)
Creates a new business-local element

Returns:
the current instance of SessionBeanType

setBusinessLocalList

SessionBeanType<T> setBusinessLocalList(java.lang.String... values)
Creates for all String objects representing business-local elements, a new business-local element

Parameters:
list - of business-local objects
Returns:
the current instance of SessionBeanType

removeAllBusinessLocal

SessionBeanType<T> removeAllBusinessLocal()
Removes the business-local element

Returns:
the current instance of SessionBeanType

getBusinessLocalList

java.util.List<java.lang.String> getBusinessLocalList()
Returns all business-local elements

Returns:
list of business-local

setBusinessRemote

SessionBeanType<T> setBusinessRemote(java.lang.String businessRemote)
Creates a new business-remote element

Returns:
the current instance of SessionBeanType

setBusinessRemoteList

SessionBeanType<T> setBusinessRemoteList(java.lang.String... values)
Creates for all String objects representing business-remote elements, a new business-remote element

Parameters:
list - of business-remote objects
Returns:
the current instance of SessionBeanType

removeAllBusinessRemote

SessionBeanType<T> removeAllBusinessRemote()
Removes the business-remote element

Returns:
the current instance of SessionBeanType

getBusinessRemoteList

java.util.List<java.lang.String> getBusinessRemoteList()
Returns all business-remote elements

Returns:
list of business-remote

setServiceEndpoint

SessionBeanType<T> setServiceEndpoint(java.lang.String serviceEndpoint)
If not already created, a new service-endpoint element with the given value will be created. Otherwise, the existing service-endpoint element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeServiceEndpoint

SessionBeanType<T> removeServiceEndpoint()
Removes the service-endpoint element

Returns:
the current instance of SessionBeanType

getServiceEndpoint

java.lang.String getServiceEndpoint()
Returns the service-endpoint element

Returns:
the node defined for the element service-endpoint

setEjbClass

SessionBeanType<T> setEjbClass(java.lang.String ejbClass)
If not already created, a new ejb-class element with the given value will be created. Otherwise, the existing ejb-class element will be updated with the given value.

Returns:
the current instance of SessionBeanType

removeEjbClass

SessionBeanType<T> removeEjbClass()
Removes the ejb-class element

Returns:
the current instance of SessionBeanType

getEjbClass

java.lang.String getEjbClass()
Returns the ejb-class element

Returns:
the node defined for the element ejb-class

setSessionType

SessionBeanType<T> setSessionType(SessionTypeType sessionType)
If not already created, a new session-type element with the given value will be created. Otherwise, the existing session-type element will be updated with the given value.

Returns:
the current instance of SessionBeanType

setSessionType

SessionBeanType<T> setSessionType(java.lang.String sessionType)
If not already created, a new session-type element with the given value will be created. Otherwise, the existing session-type element will be updated with the given value.

Returns:
the current instance of SessionBeanType

getSessionType

SessionTypeType getSessionType()
Returns the session-type element

Returns:
the node defined for the element session-type

getSessionTypeAsString

java.lang.String getSessionTypeAsString()
Returns the session-type element

Returns:
the node defined for the element session-type

removeTimeoutMethod

SessionBeanType<T> removeTimeoutMethod()
Removes the timeout-method element

Returns:
the current instance of SessionBeanType

timeoutMethod

NamedMethodType<SessionBeanType<T>> timeoutMethod()
If not already created, a new timeout-method element will be created and returned. Otherwise, the existing timeout-method element will be returned.

Returns:
the node defined for the element timeout-method

removeAllInitMethod

SessionBeanType<T> removeAllInitMethod()
Removes all init-method elements

Returns:
the current instance of SessionBeanType

initMethod

InitMethodType<SessionBeanType<T>> initMethod()
Returns the init-method element

Returns:
the node defined for the element init-method

getInitMethodList

java.util.List<InitMethodType<SessionBeanType<T>>> getInitMethodList()
Returns all init-method elements

Returns:
list of init-method

removeAllRemoveMethod

SessionBeanType<T> removeAllRemoveMethod()
Removes all remove-method elements

Returns:
the current instance of SessionBeanType

removeMethod

RemoveMethodType<SessionBeanType<T>> removeMethod()
Returns the remove-method element

Returns:
the node defined for the element remove-method

getRemoveMethodList

java.util.List<RemoveMethodType<SessionBeanType<T>>> getRemoveMethodList()
Returns all remove-method elements

Returns:
list of remove-method

setTransactionType

SessionBeanType<T> setTransactionType(TransactionTypeType transactionType)
If not already created, a new transaction-type element with the given value will be created. Otherwise, the existing transaction-type element will be updated with the given value.

Returns:
the current instance of SessionBeanType

setTransactionType

SessionBeanType<T> setTransactionType(java.lang.String transactionType)
If not already created, a new transaction-type element with the given value will be created. Otherwise, the existing transaction-type element will be updated with the given value.

Returns:
the current instance of SessionBeanType

getTransactionType

TransactionTypeType getTransactionType()
Returns the transaction-type element

Returns:
the node defined for the element transaction-type

getTransactionTypeAsString

java.lang.String getTransactionTypeAsString()
Returns the transaction-type element

Returns:
the node defined for the element transaction-type

removeAllAroundInvoke

SessionBeanType<T> removeAllAroundInvoke()
Removes all around-invoke elements

Returns:
the current instance of SessionBeanType

aroundInvoke

AroundInvokeType<SessionBeanType<T>> aroundInvoke()
Returns the around-invoke element

Returns:
the node defined for the element around-invoke

getAroundInvokeList

java.util.List<AroundInvokeType<SessionBeanType<T>>> getAroundInvokeList()
Returns all around-invoke elements

Returns:
list of around-invoke

removeAllPostActivate

SessionBeanType<T> removeAllPostActivate()
Removes all post-activate elements

Returns:
the current instance of SessionBeanType

postActivate

LifecycleCallbackType<SessionBeanType<T>> postActivate()
Returns the post-activate element

Returns:
the node defined for the element post-activate

getPostActivateList

java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPostActivateList()
Returns all post-activate elements

Returns:
list of post-activate

removeAllPrePassivate

SessionBeanType<T> removeAllPrePassivate()
Removes all pre-passivate elements

Returns:
the current instance of SessionBeanType

prePassivate

LifecycleCallbackType<SessionBeanType<T>> prePassivate()
Returns the pre-passivate element

Returns:
the node defined for the element pre-passivate

getPrePassivateList

java.util.List<LifecycleCallbackType<SessionBeanType<T>>> getPrePassivateList()
Returns all pre-passivate elements

Returns:
list of pre-passivate

removeAllSecurityRoleRef

SessionBeanType<T> removeAllSecurityRoleRef()
Removes all security-role-ref elements

Returns:
the current instance of SessionBeanType

securityRoleRef

SecurityRoleRefType<SessionBeanType<T>> securityRoleRef()
Returns the security-role-ref element

Returns:
the node defined for the element security-role-ref

getSecurityRoleRefList

java.util.List<SecurityRoleRefType<SessionBeanType<T>>> getSecurityRoleRefList()
Returns all security-role-ref elements

Returns:
list of security-role-ref

removeSecurityIdentity

SessionBeanType<T> removeSecurityIdentity()
Removes the security-identity element

Returns:
the current instance of SessionBeanType

securityIdentity

SecurityIdentityType<SessionBeanType<T>> securityIdentity()
If not already created, a new security-identity element will be created and returned. Otherwise, the existing security-identity element will be returned.

Returns:
the node defined for the element security-identity