|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.query.AbstractSearchCriteria
public abstract class AbstractSearchCriteria
Contains methods common to all search criteria.
| Field Summary | |
|---|---|
private int |
firstResult
first result |
private boolean |
loadLazyProperties
load lazy properties |
private int |
maxResults
max results |
private static String |
OPERATOR_REGEX
Regular expression for determining equality operator |
private static long |
serialVersionUID
Serialization version marker |
private Long |
uid
uid |
| Fields inherited from interface edu.vt.middleware.ed.query.SearchCriteria |
|---|
DEFAULT_MAX_RESULTS, SINGLE_RESULT, UNLIMITED_RESULTS, WS_MAX_RESULTS |
| Constructor Summary | |
|---|---|
AbstractSearchCriteria()
|
|
| Method Summary | |
|---|---|
protected abstract String |
buildEjbQL()
Builds the EJB-QL using any supplied search criteria. |
String |
getEjbQL()
Returns the EJB-QL for this search criteria. |
int |
getFirstResult()
This returns the position of the first result to return for this criteria. |
boolean |
getLoadLazyProperties()
This returns whether lazy properties should be loaded for all search results. |
int |
getMaxResults()
This returns the maximum number of results to return for this criteria. |
protected String |
getOperator(String input)
Returns the equality operator for the supplied input. |
Long |
getUid()
This returns the uid for the search object. |
abstract boolean |
isEmpty()
Returns whether any search criteria exists. |
void |
setFirstResult(int i)
This sets the position of the first result to return for this criteria. |
void |
setLoadLazyProperties(boolean b)
This sets whether to lazy properties should be loaded for all search results. |
void |
setMaxResults(int i)
This sets the maximum number of results to return for this criteria. |
void |
setUid(Long l)
This sets the uid for the search object. |
String |
toString()
Returns a String representation of this search criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static final String OPERATOR_REGEX
private Long uid
private int maxResults
private int firstResult
private boolean loadLazyProperties
| Constructor Detail |
|---|
public AbstractSearchCriteria()
| Method Detail |
|---|
public Long getUid()
getUid in interface SearchCriteriaLongpublic void setUid(Long l)
setUid in interface SearchCriterial - Longpublic int getMaxResults()
getMaxResults in interface SearchCriteriaintpublic void setMaxResults(int i)
setMaxResults in interface SearchCriteriai - intpublic int getFirstResult()
getFirstResult in interface SearchCriteriaintpublic void setFirstResult(int i)
setFirstResult in interface SearchCriteriai - intpublic boolean getLoadLazyProperties()
getLoadLazyProperties in interface SearchCriteriabooleanpublic void setLoadLazyProperties(boolean b)
setLoadLazyProperties in interface SearchCriteriab - booleanpublic String getEjbQL()
getEjbQL in interface SearchCriteriaStringpublic String toString()
toString in class ObjectStringprotected abstract String buildEjbQL()
Stringprotected String getOperator(String input)
input - String
Stringpublic abstract boolean isEmpty()
isEmpty in interface SearchCriteriaboolean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||