/* Generated by Together */

package cobalt.deployment.descriptor.dist;

import java.util.HashSet;
import java.util.Set;
import java.util.Iterator;
import java.util.Enumeration;

import cobalt.deployment.descriptor.EntityEjbDescriptor;
import cobalt.deployment.descriptor.FieldTable;

/**
 * Title:        WebLogic 5.1 container managed description
 * Description:  Represents WebLogic 5.1-specific container managed description for standard container managed description
 * Copyright:    Copyright (c) 2001
 * Company:      ETRI
 * @author Yeon Jun Choi
 * @version 1.0
 */

public class Weblogic51ContainerManaged {
    public Weblogic51ContainerManaged() {
        ejbs = new HashSet();
    }

    public Set getEjbs(){
            return ejbs;
        }

    public Iterator getEjbsIterator(){
            return ejbs.iterator();
        }

    public void setEjbs(Set ejbs){
            this.ejbs = ejbs;
        }

    public void addEjb(Weblogic51DbmsBeanDescriptor ejb) {
        /*
        Weblogic51DbmsBeanDescriptor bean = new Weblogic51DbmsBeanDescriptor();
        bean.setEjbName(ejb.getEjbName());
        Enumeration enum = ejb.getFields().getFieldNames();
        while (enum.hasMoreElements()) {
            bean.putField((String)enum.nextElement(), "");
        }
        */
        ejbs.add(ejb);
    }

    public String isCreateTableString(){
            return createTable;
        }

    public boolean iscreateTable(){
            return Boolean.getBoolean(createTable);
        }

    public void setCreateTable(String createTable){
            this.createTable = createTable;
        }

    private Set ejbs;
    private String createTable;
}
