/* Generated by Together */

package cobalt.deployment.descriptor.dist;

import cobalt.deployment.descriptor.EjbDescriptor;
import cobalt.deployment.descriptor.SessionEjbDescriptor;

public class Websphere30SessionEjbDescriptor extends Websphere30EjbDescriptor {
    public Websphere30SessionEjbDescriptor(EjbDescriptor ejb) {
        super(ejb);
        stateMgt = ((SessionEjbDescriptor)ejb).getSessionType().toUpperCase() + "_SESSION";
    }

    public int getTimeOut(){ return timeOut; }

    public String getTimeOutValue() { return ( (timeOut==0)? null : timeOut +"" ); }

    public void setTimeOut(int timeOut){ this.timeOut = timeOut; }

    public String getStateMgt(){ return stateMgt; }

    public void setStateMgt(String stateMgt){ this.stateMgt = stateMgt; }

    private int timeOut;
    private String stateMgt;
    public static final String[] STATE_MGT = {
        "STATELESS_SESSION", "STATEFUL_SESSION"
    };
}
