|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.QueryTerm
public class QueryTerm
a utility class that represents a single term in a query
| Field Summary | |
|---|---|
static java.lang.String |
CONTAINS
|
static java.lang.String |
EQUALS
|
| Constructor Summary | |
|---|---|
QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value)
Construct a new instance of a query term for a free text search (using the value only) |
|
QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value,
java.lang.String pathexpr)
Construct a new instance of a query term for a structured search (matching the value only for those nodes in the pathexpr) |
|
| Method Summary | |
|---|---|
java.lang.String |
getPathExpression()
get the path expression parameter |
int |
getPercentageSymbolCount()
get the percentage count for one query term |
java.lang.String |
getSearchMode()
get the searchmode parameter |
java.lang.String |
getValue()
get the Value parameter |
boolean |
hasSameSearchValue(QueryTerm term)
Compare two query terms to see if they have same search value. |
boolean |
isCaseSensitive()
determine if the QueryTerm is case sensitive |
boolean |
isInUnionGroup()
If this query group in Union group |
static java.lang.String |
predicate2SQL(java.lang.String predicate)
|
java.lang.String |
printSQL(boolean useXMLIndex)
create a SQL serialization of the query that this instance represents |
void |
setInUnionGroup(boolean inUnionGroup)
Set the query term in a union group |
java.lang.String |
toString()
create a String description of the query that this instance represents. |
static java.lang.String |
useNestedStatements(java.lang.String pathexpr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTAINS
public static final java.lang.String EQUALS
| Constructor Detail |
|---|
public QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value)
casesensitive - flag indicating whether case is used to matchsearchmode - determines what kind of substring match is performed (one of
starts-with|ends-with|contains|matches-exactly)value - the text value to match
public QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value,
java.lang.String pathexpr)
casesensitive - flag indicating whether case is used to matchsearchmode - determines what kind of substring match is performed (one of
starts-with|ends-with|contains|matches-exactly)value - the text value to matchpathexpr - the hierarchical path to the nodes to be searched| Method Detail |
|---|
public boolean isCaseSensitive()
public java.lang.String getSearchMode()
public java.lang.String getValue()
public java.lang.String getPathExpression()
public int getPercentageSymbolCount()
public void setInUnionGroup(boolean inUnionGroup)
inUnionGroup - public boolean isInUnionGroup()
public java.lang.String printSQL(boolean useXMLIndex)
public static java.lang.String useNestedStatements(java.lang.String pathexpr)
public static java.lang.String predicate2SQL(java.lang.String predicate)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasSameSearchValue(QueryTerm term)
term -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||