public class FindCriteria
extends java.lang.Object
Use FindCriteria as a helper object for the search criteria in find dialogs. Find dialogs in an application present one or more fields for which a user can supply appropriate search strings. For example, a Find Customer dialog might present the fields: FirstName and LastName. The user could enter "John" and "Smith" respectively. Upon pressing the Find (start) button, all of the user-entered data is gathered in the FindCriteria helper object for further processing by the Core-Plugin component before it builds a service request.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | WILD_CARD_CHARACTER
The character that is used as a wild card in the find dialogs.
|
Constructor and Description |
---|
FindCriteria()
Creates a new find criteria.
|
Modifier and Type | Method and Description |
---|---|
void | addElement(java.lang.String fieldName, java.lang.Object entry)
This method adds a search criterion to the vector of search criteria.
|
void | addSortingElement(java.lang.String fieldName, java.lang.String entry, boolean ascending)
This method adds a sorting criterion to the vector of search criteria.
|
static java.lang.String | clean(java.lang.String entry)
This method takes a search criteria value or entry and cleans it (that is, removes any wild card characters).
|
static boolean | containsWildCard(java.lang.String entry)
This helper method checks if the search criteria entered uses any wild card characters.
|
static int | countNumberOfWildCards(java.lang.String entry)
This method checks to determine the number of wild card characters entered by the user in the search string.
|
static boolean | endsWithWildCard(java.lang.String entry)
This method checks to see if the given search criteria entry ends with a wild card character.
|
java.lang.String | getFieldName(int i)
This method returns the search criteria name at index i.
|
int | getNumberOfEntries()
This method returns the number of unique criteria that can be used for the search.
|
java.lang.String | getSearchtype(int i)
This method returns the search type for criteria at index i.
|
java.lang.String | getSelectExpressionValue(int i)
This method returns the search criteria value at index i.
|
void | setCaseSensitive(boolean bool)
This method allows you to set the case sensitive boolean parameter and consequently influence the case prefix for the search type modifier.
|
static boolean | startsWithWildCard(java.lang.String entry)
This method checks to see if the given search criteria entry starts with a wild card character.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String WILD_CARD_CHARACTER
public int getNumberOfEntries()
public void addElement(java.lang.String fieldName, java.lang.Object entry)
public void addSortingElement(java.lang.String fieldName, java.lang.String entry, boolean ascending)
public java.lang.String getFieldName(int i)
public java.lang.String getSelectExpressionValue(int i)
public java.lang.String getSearchtype(int i)
public static java.lang.String clean(java.lang.String entry)
public static boolean containsWildCard(java.lang.String entry)
public static boolean startsWithWildCard(java.lang.String entry)
public static boolean endsWithWildCard(java.lang.String entry)
public static int countNumberOfWildCards(java.lang.String entry)
public void setCaseSensitive(boolean bool)