/* 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 6.x container managed description
 * Description:  Represents WebLogic 6.x-specific container managed description for standard container managed description
 * Copyright:    Copyright (c) 2001
 * Company:      ETRI
 * @author Yeon Jun Choi
 * @version 1.0
 */

public class Weblogic60ContainerManaged {
    public Weblogic60ContainerManaged() {
        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(Weblogic60DbmsBeanDescriptor ejb) {
        /*
        Weblogic60DbmsBeanDescriptor bean = new Weblogic60DbmsBeanDescriptor();
        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;
}
