org.eclipse.jst.j2ee.ejb
Interface Session

All Superinterfaces:
CompatibilityDescriptionGroup, DescriptionGroup, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, EnterpriseBean, org.eclipse.emf.ecore.EObject, J2EEEObject, JNDIEnvRefsGroup, org.eclipse.emf.common.notify.Notifier

public interface Session
extends EnterpriseBean

The session element declares an session bean. The declaration consists of: an optional description; optional display name; optional small icon file name; optional large icon file name; a name assigned to the enterprise bean in the deployment description; the names of the session bean's home and remote interfaces, if any; the names of the session bean's local home and local interfaces, 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 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; and an optional declaration of the bean's resource environment references. The elements that are optional are "optional" in the sense that they are omitted when if lists represented by them are empty.

Since:
1.0

Method Summary
 JavaClass getServiceEndpoint()
          Returns the value of the 'Service Endpoint' reference
 java.lang.String getServiceEndpointName()
          Helper method to get Java Class name
 SessionType getSessionType()
           
 TransactionType getTransactionType()
           
 boolean hasServiceEndpoint()
          Return true if this Session bean has a service endpoint interface interface.
 boolean isSetSessionType()
          Returns whether the value of the 'Session Type' attribute is set
 boolean isSetTransactionType()
          Returns whether the value of the 'Transaction Type' attribute is set
 void setServiceEndpoint(JavaClass value)
          Sets the value of the 'Service Endpoint' reference
 void setServiceEndpointName(java.lang.String serviceEndpointName)
          Helper method to set Java Class name via String
 void setSessionType(SessionType value)
          Sets the value of the 'Session Type' attribute
 void setTransactionType(TransactionType value)
          Sets the value of the 'Transaction Type' attribute
 void unsetSessionType()
          Unsets the value of the 'Session Type' attribute
 void unsetTransactionType()
          Unsets the value of the 'Transaction Type' attribute
 
Methods inherited from interface org.eclipse.jst.j2ee.ejb.EnterpriseBean
createMethodElements, getAvailableCommonMethodElements, getAvailableCommonMethodElementSignatures, getAvailableHomeMethodElements, getAvailableLocalHomeMethodElements, getAvailableLocalMethodElements, getAvailableRemoteMethodElements, getAvailableUnspecifiedMethodElements, getAvailableUnspecifiedMethodElementSignatures, getEjbClass, getEjbClassName, getEjbJar, getEquivalentEJBLocalRef, getEquivalentEjbRef, getExistingOrAvailableMethodElements, getExistingOrAvailableMethodElements, getHomeInterface, getHomeInterfaceName, getHomeMethodsForDeployment, getLinkedEJBLocalReference, getLinkedEJBReference, getLocalHomeInterface, getLocalHomeInterfaceName, getLocalHomeMethodsForDeployment, getLocalInterface, getLocalInterfaceName, getName, getRemoteInterface, getRemoteInterfaceName, getRemoteMethodsForDeployment, getSecurityIdentity, getSecurityRoleRefs, getVersionID, hasJavaReference, hasLocalClient, hasRemoteClient, isBeanManagedEntity, isContainerManagedEntity, isEntity, isMessageDriven, isSession, isVersion1_X, isVersion2_X, reSyncSecurityRoleRef, setEjbClass, setEjbClassName, setEjbJar, setHomeInterface, setHomeInterfaceName, setLocalHomeInterface, setLocalHomeInterfaceName, setLocalInterface, setLocalInterfaceName, setName, setRemoteInterface, setRemoteInterfaceName, setSecurityIdentity
 
Methods inherited from interface org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup
getEjbLocalRefs, getEjbRefs, getEnvironmentProperties, getMessageDestinationRefs, getResourceEnvRefs, getResourceRefs, getServiceRefs
 
Methods inherited from interface org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup
getDescription, getDisplayName, getLargeIcon, getSmallIcon, setDescription, setDescriptionGen, setDisplayName, setDisplayNameGen, setLargeIcon, setLargeIconGen, setSmallIcon, setSmallIconGen
 
Methods inherited from interface org.eclipse.jst.j2ee.common.DescriptionGroup
getDescriptions, getDisplayNames, getIcons
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 

Method Detail

getTransactionType

TransactionType getTransactionType()
Returns:
The value of the TransactionType attribute The transaction-type element specifies an enterprise bean's transaction management type.

setTransactionType

void setTransactionType(TransactionType value)
Sets the value of the 'Transaction Type' attribute.

Parameters:
value - the new value of the 'Transaction Type' attribute.
See Also:
TransactionType, isSetTransactionType(), unsetTransactionType(), getTransactionType()

unsetTransactionType

void unsetTransactionType()
Unsets the value of the 'Transaction Type' attribute.

See Also:
isSetTransactionType(), getTransactionType(), setTransactionType(TransactionType)

isSetTransactionType

boolean isSetTransactionType()
Returns whether the value of the 'Transaction Type' attribute is set.

Returns:
whether the value of the 'Transaction Type' attribute is set.
See Also:
unsetTransactionType(), getTransactionType(), setTransactionType(TransactionType)

getSessionType

SessionType getSessionType()
Returns:
The value of the SessionType attribute

setSessionType

void setSessionType(SessionType value)
Sets the value of the 'Session Type' attribute.

Parameters:
value - the new value of the 'Session Type' attribute.
See Also:
SessionType, isSetSessionType(), unsetSessionType(), getSessionType()

unsetSessionType

void unsetSessionType()
Unsets the value of the 'Session Type' attribute.

See Also:
isSetSessionType(), getSessionType(), setSessionType(SessionType)

isSetSessionType

boolean isSetSessionType()
Returns whether the value of the 'Session Type' attribute is set.

Returns:
whether the value of the 'Session Type' attribute is set.
See Also:
unsetSessionType(), getSessionType(), setSessionType(SessionType)

getServiceEndpoint

JavaClass getServiceEndpoint()
Returns the value of the 'Service Endpoint' reference.

If the meaning of the 'Service Endpoint' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Service Endpoint' reference.
See Also:
setServiceEndpoint(JavaClass), EjbPackage.getSession_ServiceEndpoint()

setServiceEndpoint

void setServiceEndpoint(JavaClass value)
Sets the value of the 'Service Endpoint' reference.

Parameters:
value - the new value of the 'Service Endpoint' reference.
See Also:
getServiceEndpoint()

setServiceEndpointName

void setServiceEndpointName(java.lang.String serviceEndpointName)
Helper method to set Java Class name via String

Parameters:
serviceEndpointName - the name of the ServiceEndpoint

hasServiceEndpoint

boolean hasServiceEndpoint()
Return true if this Session bean has a service endpoint interface interface.

Returns:
boolean value

getServiceEndpointName

java.lang.String getServiceEndpointName()
Helper method to get Java Class name

Returns:
String value