FileDocCategorySizeDatePackage
MdbResourceAdapter.javaAPI DocGlassfish v2 API32211Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.ejb

MdbResourceAdapter

public class MdbResourceAdapter extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class MdbResourceAdapter matches the schema element mdb-resource-adapter Generated on Wed Aug 13 10:43:33 PDT 2003

Fields Summary
static Vector
comparators
public static final String
RESOURCE_ADAPTER_MID
public static final String
ACTIVATION_CONFIG
Constructors Summary
public MdbResourceAdapter()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public MdbResourceAdapter(int options)

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("resource-adapter-mid", 	// NOI18N
			RESOURCE_ADAPTER_MID, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("activation-config", 	// NOI18N
			ACTIVATION_CONFIG, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ActivationConfig.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("ResourceAdapterMid");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getResourceAdapterMid();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(RESOURCE_ADAPTER_MID, 0, str, indent);

		str.append(indent);
		str.append("ActivationConfig");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getActivationConfig();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(ACTIVATION_CONFIG, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("MdbResourceAdapter\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public ActivationConfiggetActivationConfig()

		return (ActivationConfig)this.getValue(ACTIVATION_CONFIG);
	
public java.lang.StringgetResourceAdapterMid()

		return (String)this.getValue(RESOURCE_ADAPTER_MID);
	
voidinitialize(int options)

	
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetActivationConfig(ActivationConfig value)

		this.setValue(ACTIVATION_CONFIG, value);
	
public voidsetResourceAdapterMid(java.lang.String value)

		this.setValue(RESOURCE_ADAPTER_MID, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property resourceAdapterMid
		if (getResourceAdapterMid() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getResourceAdapterMid() == null", "resourceAdapterMid", this);	// NOI18N
		}
		// Validating property activationConfig
		if (getActivationConfig() != null) {
			getActivationConfig().validate();
		}