FileDocCategorySizeDatePackage
PrefetchDisabled.javaAPI DocGlassfish v2 API5660Fri May 04 22:34:42 BST 2007com.sun.enterprise.tools.common.dd.ejb

PrefetchDisabled

public class PrefetchDisabled extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class PrefetchDisabled matches the schema element prefetch-disabled Generated on Thu Apr 08 14:40:31 PDT 2004

Fields Summary
static Vector
comparators
public static final String
QUERY_METHOD
Constructors Summary
public PrefetchDisabled()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("query-method", 	// NOI18N
			QUERY_METHOD, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			QueryMethod.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddQueryMethod(com.sun.enterprise.tools.common.dd.ejb.QueryMethod value)

		return this.addValue(QUERY_METHOD, value);
	
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("QueryMethod["+this.sizeQueryMethod()+"]");	// NOI18N
		for(int i=0; i<this.sizeQueryMethod(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getQueryMethod(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(QUERY_METHOD, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("PrefetchDisabled\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public com.sun.enterprise.tools.common.dd.ejb.QueryMethodgetQueryMethod(int index)

		return (QueryMethod)this.getValue(QUERY_METHOD, index);
	
public com.sun.enterprise.tools.common.dd.ejb.QueryMethod[]getQueryMethod()

		return (QueryMethod[])this.getValues(QUERY_METHOD);
	
voidinitialize(int options)


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

		comparators.remove(c);
	
public intremoveQueryMethod(com.sun.enterprise.tools.common.dd.ejb.QueryMethod value)

		return this.removeValue(QUERY_METHOD, value);
	
public voidsetQueryMethod(int index, com.sun.enterprise.tools.common.dd.ejb.QueryMethod value)

		this.setValue(QUERY_METHOD, index, value);
	
public voidsetQueryMethod(com.sun.enterprise.tools.common.dd.ejb.QueryMethod[] value)

		this.setValue(QUERY_METHOD, value);
	
public intsizeQueryMethod()

		return this.size(QUERY_METHOD);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property queryMethod
		if (sizeQueryMethod() == 0) {
			throw new org.netbeans.modules.schema2beans.ValidateException("sizeQueryMethod() == 0", "queryMethod", this);	// NOI18N
		}
		for (int _index = 0; _index < sizeQueryMethod(); ++_index) {
			com.sun.enterprise.tools.common.dd.ejb.QueryMethod element = getQueryMethod(_index);
			if (element != null) {
				element.validate();
			}
		}