org.objectweb.jonas_ejb.deployment.api
Class SessionDesc

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.deployment.api.BeanDesc
        |
        +--org.objectweb.jonas_ejb.deployment.api.SessionDesc
Direct Known Subclasses:
SessionStatefulDesc, SessionStatelessDesc

public abstract class SessionDesc
extends BeanDesc


Field Summary
protected  int transactionType
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, home, jndiName, local, localhome, methodDesc, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS
 
Method Summary
 void check()
          Check that the bean descriptor is valid
protected  void checkTxAttribute(java.lang.reflect.Method m)
          check that trans-attribute is valid for bean
 int getSessionTimeout()
          Get the session timeout value
 int getTransactionType()
          Get session transaction management type.
 boolean isBeanManagedTransaction()
          Returns true if bean managed transaction.
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getHomeClass, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDescs, getRemoteClass, getResourceEnvRefDesc, getResourceRefDesc, getRoleLink, getSecurityRoleNames, verifyRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionType

protected int transactionType
Method Detail

checkTxAttribute

protected void checkTxAttribute(java.lang.reflect.Method m)
                         throws DeploymentDescException
check that trans-attribute is valid for bean
Overrides:
checkTxAttribute in class BeanDesc

getTransactionType

public int getTransactionType()
Get session transaction management type.
Returns:
transaction type value within BEAN_TRANSACTION_TYPE,CONTAINER_TRANSACTION_TYPE

isBeanManagedTransaction

public boolean isBeanManagedTransaction()
Returns true if bean managed transaction. (used by JOnAS Server)

getSessionTimeout

public int getSessionTimeout()
Get the session timeout value

check

public void check()
           throws DeploymentDescException
Check that the bean descriptor is valid
Overrides:
check in class BeanDesc
Throws:
DeploymentDescException - thrown for non-valid bean

toString

public java.lang.String toString()
String representation of the object for test purpose
Overrides:
toString in class BeanDesc
Returns:
String representation of this object