org.ow2.util.ee.metadata.ejbjar.api.xml.struct
Interface ISession

All Superinterfaces:
IBean, IEnvironment, Serializable

public interface ISession
extends IBean

Interface for element session.

Author:
Florent Benoit

Field Summary
static String NAME
          Name of this element.
 
Method Summary
 void addBusinessLocal(String businessLocal)
          Add the business-local interface.
 void addBusinessRemote(String businessRemote)
          Add the business-remote interface.
 void addConcurrentMethod(IConcurrentMethod concurrentMethod)
          Add the method used as a concurrent method.
 void addRemoveMethod(IRemoveMethod removeMethod)
          Add the method used as a remove method.
 IMethodDD getAfterBeginMethod()
           
 IMethodDD getAfterCompletionMethod()
           
 IMethodDD getBeforeCompletionMethod()
           
 List<String> getBusinessLocalList()
          Gets the business-local interface list.
 List<String> getBusinessRemoteList()
          Gets the business-remote interface list.
 List<IConcurrentMethod> getConcurrentMethodList()
          Gets the list of concurrent methods.
 String getLocalHome()
          Gets the local Home.
 String getRemoteHome()
          Gets the remote Home.
 List<IRemoveMethod> getRemoveMethodList()
          Gets the list of remove methods.
 String getSessionType()
          Gets the session-type.
 IStatefulTimeout getStatefulTimeout()
           
 boolean isLocalBean()
           
 void setAfterBeginMethod(IMethodDD afterBeginMethod)
          Sets the afterBegin method used by stateful.
 void setAfterCompletionMethod(IMethodDD afterCompletionMethod)
          Sets the afterCompletion method used by stateful.
 void setBeforeCompletionMethod(IMethodDD beforeCompletionMethod)
          Sets the beforeCompletion method used by stateful.
 void setLocalBean()
          Flag this bean with a no-interface view.
 void setLocalHome(String localHome)
          Set the local Home.
 void setRemoteHome(String remoteHome)
          Set the remote Home.
 void setSessionType(String sessionType)
          Set the session-type.
 void setStatefulTimeout(IStatefulTimeout statefulTimeout)
          Set the stateful timeout .
 
Methods inherited from interface org.ow2.util.ee.metadata.ejbjar.api.xml.struct.IBean
addTimer, getEjbClass, getEjbName, getMappedName, getRunAsRole, getTimeoutMethod, getTimers, getTransactionType, setEjbClass, setEjbName, setMappedName, setRunAsRole, setTimeoutMethod, setTransactionType
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.xml.struct.IEnvironment
addAroundInvoke, addDataSource, addEJBLocalRef, addEJBRef, addEnvEntry, addMessageDestinationRef, addPersistenceContextRef, addPersistenceUnitRef, addPostActivateCallback, addPostConstructCallback, addPreDestroyCallback, addPrePassivateCallback, addResourceEnvRef, addResourceRef, addSecurityRoleRef, addServiceRef, getAroundInvokeList, getDataSourceList, getEJBLocalRefList, getEJBRefList, getEnvEntryList, getMessageDestinationRefList, getPersistenceContextRefList, getPersistenceUnitRefList, getPostActivateCallbackList, getPostConstructCallbackList, getPreDestroyCallbackList, getPrePassivateCallbackList, getResourceEnvRefList, getResourceRefList, getSecurityRoleRefList, getServiceRefList
 

Field Detail

NAME

static final String NAME
Name of this element.

See Also:
Constant Field Values
Method Detail

getBusinessRemoteList

List<String> getBusinessRemoteList()
Gets the business-remote interface list.

Returns:
business-remote interface list

getBusinessLocalList

List<String> getBusinessLocalList()
Gets the business-local interface list.

Returns:
business-local interface list

addBusinessRemote

void addBusinessRemote(String businessRemote)
Add the business-remote interface.

Parameters:
businessRemote - business-remote interface.

addBusinessLocal

void addBusinessLocal(String businessLocal)
Add the business-local interface.

Parameters:
businessLocal - business-remote interface.

getRemoveMethodList

List<IRemoveMethod> getRemoveMethodList()
Gets the list of remove methods.

Returns:
list of remove methods

addRemoveMethod

void addRemoveMethod(IRemoveMethod removeMethod)
Add the method used as a remove method.

Parameters:
removeMethod - the given remove method

addConcurrentMethod

void addConcurrentMethod(IConcurrentMethod concurrentMethod)
Add the method used as a concurrent method.

Parameters:
concurrentMethod - the given concurrent method

getConcurrentMethodList

List<IConcurrentMethod> getConcurrentMethodList()
Gets the list of concurrent methods.

Returns:
list of concurrent methods

getSessionType

String getSessionType()
Gets the session-type.

Returns:
the session-type.

setSessionType

void setSessionType(String sessionType)
Set the session-type.

Parameters:
sessionType - the type of session.

getRemoteHome

String getRemoteHome()
Gets the remote Home.

Returns:
the remote Home

setRemoteHome

void setRemoteHome(String remoteHome)
Set the remote Home.

Parameters:
remoteHome - the given remote Home.

getLocalHome

String getLocalHome()
Gets the local Home.

Returns:
the local Home

setLocalHome

void setLocalHome(String localHome)
Set the local Home.

Parameters:
localHome - the given local Home.

setLocalBean

void setLocalBean()
Flag this bean with a no-interface view.


isLocalBean

boolean isLocalBean()
Returns:
true if this bean has a no-interface view.

setAfterBeginMethod

void setAfterBeginMethod(IMethodDD afterBeginMethod)
Sets the afterBegin method used by stateful.

Parameters:
afterBeginMethod - the given afterBegin method

getAfterBeginMethod

IMethodDD getAfterBeginMethod()
Returns:
the given afterBegin method

setAfterCompletionMethod

void setAfterCompletionMethod(IMethodDD afterCompletionMethod)
Sets the afterCompletion method used by stateful.

Parameters:
afterCompletionMethod - the given afterCompletion method

getAfterCompletionMethod

IMethodDD getAfterCompletionMethod()
Returns:
the given afterCompletion method

setBeforeCompletionMethod

void setBeforeCompletionMethod(IMethodDD beforeCompletionMethod)
Sets the beforeCompletion method used by stateful.

Parameters:
beforeCompletionMethod - the given afterCompletion method

getBeforeCompletionMethod

IMethodDD getBeforeCompletionMethod()
Returns:
the given beforeCompletion method

setStatefulTimeout

void setStatefulTimeout(IStatefulTimeout statefulTimeout)
Set the stateful timeout .

Parameters:
statefulTimeout - the given stateful timeout.

getStatefulTimeout

IStatefulTimeout getStatefulTimeout()
Returns:
the given timeout.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.