|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.methodyne.bellvue.core.Finder
The Finder is the interface to query the datastore.
It needs the name of the bclass to search in.
Querys can be added for each field of the queried bclass with the put method.
This interface is used by the Bellvue GUI as well so the syntax of the query fields is the same as described in the user
guide in the section about searching/querying.
Field Summary | |
java.lang.String |
classname
name of the Bclass with package |
boolean |
f_l
used by GUI |
long |
id
|
int |
index
used by GUI |
java.util.Vector |
olist
the Vector holding the matching objects |
java.util.HashMap |
querys
here the "fieldname : query" get collected |
boolean |
t_o
used by GUI |
java.lang.String |
title
|
Constructor Summary | |
Finder(java.lang.String classname)
|
Method Summary | |
void |
actionExportReslut(Sdata sd)
GUI Function to export the search result to a file |
java.lang.String |
getTitle()
Shows a reasonable title to the user in the GUI |
void |
put(java.lang.String name,
java.lang.String value)
Adds querys |
java.util.Vector |
run(Sdata sd)
Perform a query against the datastore |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public long id
public java.lang.String title
public java.lang.String classname
public java.util.Vector olist
public int index
public boolean t_o
public boolean f_l
public java.util.HashMap querys
Constructor Detail |
public Finder(java.lang.String classname)
classname
- of the Bclass to queryMethod Detail |
public java.util.Vector run(Sdata sd)
sd
- the session data
public void put(java.lang.String name, java.lang.String value)
name
- The name of a field from the searched Bclassvalue
- The query for example ">2000", "100 to 200", "true", "!Smith.*"
Finder finder = new Finder("com.demo.User"); finder.put("username", "John"); finder.put("qry_username", "and"); // lowercase for "and", "or", "xor" finder.put("age", ">21"); finder.run(sd); // the session datasetThis matches all objects where username is John AND the age is over 21.
public java.lang.String getTitle()
public void actionExportReslut(Sdata sd)
sd
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |