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

Finder

public class Finder extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class Finder matches the schema element finder Generated on Wed Aug 13 10:43:32 PDT 2003

Fields Summary
static Vector
comparators
public static final String
METHOD_NAME
public static final String
QUERY_PARAMS
public static final String
QUERY_FILTER
public static final String
QUERY_VARIABLES
public static final String
QUERY_ORDERING
Constructors Summary
public Finder()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("method-name", 	// NOI18N
			METHOD_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("query-params", 	// NOI18N
			QUERY_PARAMS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("query-filter", 	// NOI18N
			QUERY_FILTER, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("query-variables", 	// NOI18N
			QUERY_VARIABLES, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("query-ordering", 	// NOI18N
			QUERY_ORDERING, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.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("MethodName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getMethodName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(METHOD_NAME, 0, str, indent);

		str.append(indent);
		str.append("QueryParams");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getQueryParams();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(QUERY_PARAMS, 0, str, indent);

		str.append(indent);
		str.append("QueryFilter");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getQueryFilter();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(QUERY_FILTER, 0, str, indent);

		str.append(indent);
		str.append("QueryVariables");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getQueryVariables();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(QUERY_VARIABLES, 0, str, indent);

		str.append(indent);
		str.append("QueryOrdering");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getQueryOrdering();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(QUERY_ORDERING, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("Finder\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetMethodName()

		return (String)this.getValue(METHOD_NAME);
	
public java.lang.StringgetQueryFilter()

		return (String)this.getValue(QUERY_FILTER);
	
public java.lang.StringgetQueryOrdering()

		return (String)this.getValue(QUERY_ORDERING);
	
public java.lang.StringgetQueryParams()

		return (String)this.getValue(QUERY_PARAMS);
	
public java.lang.StringgetQueryVariables()

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

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

		comparators.remove(c);
	
public voidsetMethodName(java.lang.String value)

		this.setValue(METHOD_NAME, value);
	
public voidsetQueryFilter(java.lang.String value)

		this.setValue(QUERY_FILTER, value);
	
public voidsetQueryOrdering(java.lang.String value)

		this.setValue(QUERY_ORDERING, value);
	
public voidsetQueryParams(java.lang.String value)

		this.setValue(QUERY_PARAMS, value);
	
public voidsetQueryVariables(java.lang.String value)

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

		boolean restrictionFailure = false;
		// Validating property methodName
		if (getMethodName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getMethodName() == null", "methodName", this);	// NOI18N
		}
		// Validating property queryParams
		if (getQueryParams() != null) {
		}
		// Validating property queryFilter
		if (getQueryFilter() != null) {
		}
		// Validating property queryVariables
		if (getQueryVariables() != null) {
		}
		// Validating property queryOrdering
		if (getQueryOrdering() != null) {
		}