org.eclipse.jst.j2ee.ejb
Interface Session

All Superinterfaces:
CompatibilityDescriptionGroup, DescriptionGroup, EnterpriseBean, J2EEEObject, JNDIEnvRefsGroup

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
 

Method Detail

getTransactionType

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

setTransactionType

public 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

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

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

isSetTransactionType

public 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

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

setSessionType

public 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

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

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

isSetSessionType

public 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

public 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

public 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

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

Parameters:
serviceEndpointName - the name of the ServiceEndpoint

hasServiceEndpoint

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

Returns:
boolean value

getServiceEndpointName

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

Returns:
String value