|
|
com.architech
|
Inner Class Summary | |
class |
rscSearchCriteria.rscSearch
This class is used internally. |
Field Summary | |
static int |
EXCACT
|
static int |
FINAL_STRING
|
static int |
INITIAL_STRING
|
static int |
NOT_STRING
|
static int |
SEARCH_AND
|
static int |
SEARCH_NOT
|
static int |
SEARCH_OR
|
static int |
SUBSTRING
|
Constructor Summary | |
rscSearchCriteria()
|
|
rscSearchCriteria(int matchtype)
|
|
rscSearchCriteria(java.lang.String name,
int match,
java.lang.Object value)
|
Method Summary | |
void |
addCriteria(java.lang.String name,
int match,
java.lang.Object value)
Add expression to criteria array. |
void |
addCriteria(java.lang.String name,
int match,
java.lang.Object value,
boolean negate)
Add expression to criteria array. |
void |
addTemplate(java.lang.String name,
int match,
java.lang.String defvalue)
Add a criteria to the templates array. |
void |
buildCriteria(com.architech.entry.EntryInterface e)
Build the criteria array using provided entry. |
java.lang.String |
buildLdapFilter(rscSearchCriteria.rscSearch rs)
Constructs an LDAP search filter from an rscSearch class. |
java.lang.String |
buildNotesFilter(rscSearchCriteria.rscSearch rs)
Constructs an Notes search filter from an rscSearch class. |
java.lang.String |
buildNotesFTFilter(rscSearchCriteria.rscSearch rs)
Constructs an Notes FullText search filter from an rscSearch class. |
java.lang.String |
buildSQLFilter(rscSearchCriteria.rscSearch rs)
Constructs an SQL where expression from an rscSearch class. |
rscSearchCriteria.rscSearch |
getCriteria(int index)
Return criteria class at specified index. |
com.architech.entry.EntryInterface |
getCurrentEntry()
Return the working entry used to generate the criteria array from the templates array. |
int |
getFirstCriteriaMatch()
Return match operator of first criteria entry. |
java.lang.String |
getFirstCriteriaName()
Return name of first criteria entry. |
java.lang.String |
getFirstCriteriaValue()
Return value of first criteria entry. |
java.lang.String |
getLDAPFilter()
Return complete LDAP filter from criteria array. |
java.lang.String |
getNotesFilter()
Return complete Notes search expression from criteria array. |
java.lang.String |
getNotesFTFilter()
Return complete Notes FullText search expression from criteria array. |
java.lang.String |
getSearchString(int i)
|
java.lang.String |
getSimpleFilter()
|
java.lang.String |
getSQLFilter()
Return complete SQL search expression from criteria array. |
rscSearchCriteria.rscSearch |
getTemplate(int index)
Returns the criteria template at a specific location. |
int |
getType()
Return search type. |
void |
setType(int type)
Set type (SEARCH_AND, SEARCH_OR) for the search criteria. |
int |
size()
Return number of templates. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int EXCACT
public static final int SUBSTRING
public static final int INITIAL_STRING
public static final int FINAL_STRING
public static final int NOT_STRING
public static final int SEARCH_AND
public static final int SEARCH_OR
public static final int SEARCH_NOT
Constructor Detail |
public rscSearchCriteria()
public rscSearchCriteria(int matchtype)
public rscSearchCriteria(java.lang.String name, int match, java.lang.Object value)
Method Detail |
public int size()
public rscSearchCriteria.rscSearch getCriteria(int index)
public void addCriteria(java.lang.String name, int match, java.lang.Object value)
name
- The attribute namematch
- The match operator (e.g. EXCACT, FINAL_STRING ..)value
- The matching value.public void addCriteria(java.lang.String name, int match, java.lang.Object value, boolean negate)
name
- The attribute namematch
- The match operator (e.g. EXCACT, FINAL_STRING ..)value
- The matching value.negate
- Specify true to negate the expressionpublic java.lang.String getFirstCriteriaName()
public java.lang.String getFirstCriteriaValue()
public int getFirstCriteriaMatch()
public void setType(int type)
type
- SEARCH_AND, SEARCH_ORpublic int getType()
public rscSearchCriteria.rscSearch getTemplate(int index)
index
- The index into the templates arraypublic void addTemplate(java.lang.String name, int match, java.lang.String defvalue)
name
- The attribute namematch
- The match operator (e.g. EXCACT, FINAL_STRING ..)defvalue
- The default valuepublic java.lang.String buildLdapFilter(rscSearchCriteria.rscSearch rs)
public java.lang.String buildSQLFilter(rscSearchCriteria.rscSearch rs)
public java.lang.String buildNotesFilter(rscSearchCriteria.rscSearch rs)
public java.lang.String buildNotesFTFilter(rscSearchCriteria.rscSearch rs)
public java.lang.String getLDAPFilter()
public java.lang.String getSQLFilter()
public java.lang.String getSimpleFilter()
public java.lang.String getNotesFilter()
public java.lang.String getNotesFTFilter()
public java.lang.String getSearchString(int i)
public com.architech.entry.EntryInterface getCurrentEntry()
Entry
public void buildCriteria(com.architech.entry.EntryInterface e) throws java.lang.Exception
When the method completes the criteria array has been built so it contains a copy of the templates array with expanded values.
You typically create an instance of this class and then add the templates. Then for each entry you are using in a search you can call the buildCriteria method to populate the criteria array. Then, having done that you can use the getLDAPFilter, getNotesFilter etc to obtain the search filter as a string.
e
- The work entry used in parameter substitution
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|