Obsolete. Use SearchEngine instead.Represents a generic database search. GenericSearch has less functionality for adding criteria than SearcEngine. The GenericSearch is originally made for searching and fetching data from the database. Thereby its name. GenericSearch is a tool for building up SQL queries, by adding fields and criteria.GenericSearch extends theSearchEngine class with options for how to list fields. Displayfields, datafields, idfields. The fields must be given as starttablename.fieldname, for example “ticket.title” For tables that have foreign keys to other tables, you can reach them with starttablename.fieldname.fieldnameMake sure that all fields you use start with the same table, for example ticket, or else you will recieve a big join that you probably do not want.For many-to-many relations there is a special notation: table1.(table2->field2a).field2b Where field2a is field in table2 that has a foreign key to table1.
The concatLevel specifies how this criteria will be concatenated with the rest of the query (parenthesis level). A higher concatLevel gives a ”(”, and a lower concatlevel gives a ”)“.
addField(String)
Adds a field to the queryAdds a field to be selected to the database query.