/* Generated by Together */

package cobalt.deployment.descriptor.dist;

import cobalt.deployment.descriptor.EjbDescriptor;

/**
 * Title:        WebLogic 5.1 stateful session ejb component descriptor
 * Description:  Represents WebLogic 5.1-specific stateful session ejb component for standard stateful session ejb component
 * Copyright:    Copyright (c) 2001
 * Company:      ETRI
 * @author Yeon Jun Choi
 * @version 1.0
 */

public class Weblogic51StatefulEjbDescriptor extends Weblogic51EjbDescriptor {
    public Weblogic51StatefulEjbDescriptor(EjbDescriptor descriptor) {
        super(descriptor);
    }

    public int getMaxBeansInCache(){
            return getInt("max-beans-in-cache", 100);
        }

    public String getMaxBeansInCacheString(){
            return getString("max-beans-in-cache");
        }

    public void setMaxBeansInCache(int maxBeansInCache){
            setInt("max-beans-in-cache", maxBeansInCache);
        }

    public int getIdleTimeoutSec(){
            return getInt("idle-timeout-seconds", 600);
        }

    public String getIdleTimeoutSecString(){
            return getString("idle-timeout-seconds");
        }

    public void setIdleTimeoutSec(int idleTimeoutSec){
            setInt("idle-timeout-seconds", idleTimeoutSec);
        }

    public int getReadTimeoutSec(){
            return getInt("read-timeout-seconds", 600);
        }

    public String getReadTimeoutSecString(){
            return getString("read-timeout-seconds");
        }

    public void setReadTimeoutSec(int readTimeoutSec){
            setInt("read-timeout-seconds", readTimeoutSec);
        }

    public String getPassivStrategy(){
            return getString("passivation-strategy");
        }

    public void setPassivStrategy(String passivStrategy){
            setString("passivation-strategy", passivStrategy);
        }

    public String getPersistentStoreDir(){
            return getString("stateful-session-persistent-store-dir");
        }

    public void setPersistentStoreDir(String persistentStoreDir){
            setString("stateful-session-persistent-store-dir", persistentStoreDir);
        }
}
