Finderpublic 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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("Finder\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getMethodName()
return (String)this.getValue(METHOD_NAME);
| public java.lang.String | getQueryFilter()
return (String)this.getValue(QUERY_FILTER);
| public java.lang.String | getQueryOrdering()
return (String)this.getValue(QUERY_ORDERING);
| public java.lang.String | getQueryParams()
return (String)this.getValue(QUERY_PARAMS);
| public java.lang.String | getQueryVariables()
return (String)this.getValue(QUERY_VARIABLES);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setMethodName(java.lang.String value)
this.setValue(METHOD_NAME, value);
| public void | setQueryFilter(java.lang.String value)
this.setValue(QUERY_FILTER, value);
| public void | setQueryOrdering(java.lang.String value)
this.setValue(QUERY_ORDERING, value);
| public void | setQueryParams(java.lang.String value)
this.setValue(QUERY_PARAMS, value);
| public void | setQueryVariables(java.lang.String value)
this.setValue(QUERY_VARIABLES, value);
| public void | validate()
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) {
}
|
|