|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.smartlab.web.DataAccessObject.SearchInfo
public static class DataAccessObject.SearchInfo
Instances of this class represents a set of criterias to be used in
persistence tier searches. This class is providen as a support class used
to define search criterias using request parameters and should not be
used in place of Hibernate's Criteria
or Query
as it doesn't provide the same customizability or features.
Nested Class Summary | |
---|---|
protected class |
DataAccessObject.SearchInfo.Filter
Represents a filtering condition to be applied while performing searches. |
Field Summary | |
---|---|
static int |
BETWEEN
Identifies a between expression condition. |
static int |
EQUALS
Identifies a greater expression condition. |
static int |
GREATER
Identifies an equals expression condition. |
static int |
GREATER_EQUALS
Identifies a greater expression condition. |
static int |
ILIKE
Identifies an ilike expression condition. |
static int |
IN
Identifies an in expression condition. |
static int |
LESSER
Identifies a greater equals expression condition. |
static int |
LESSER_EQUALS
Identifies a lesser expression condition. |
static int |
LIKE
Identifies a like expression condition. |
static int |
NOT_EQUALS
Identifies a lesser equal expression condition. |
static int |
NOT_IN
Identifies a not in expression condition. |
static int |
NOT_NULL
Identifies an is not null expression condition. |
static int |
NULL
Identifies an is null expression condition. |
Constructor Summary | |
---|---|
DataAccessObject.SearchInfo()
|
Method Summary | |
---|---|
void |
addFilter(java.lang.String filter)
Adds a filter. |
void |
addFilter(java.lang.String property,
int condition,
java.lang.Object value)
Adds a filter. |
void |
addFilter(java.lang.String property,
int condition,
java.lang.Object[] values)
Adds a filter. |
void |
addFilter(java.lang.String property,
int condition,
java.lang.String values)
Adds a filter. |
void |
addFilter(java.lang.String property,
int condition,
java.lang.String[] values)
Adds a filter. |
java.util.Collection |
getFilters()
|
java.util.Locale |
getLocale()
Returns the locale used to convert filters. |
java.lang.String |
getOrder()
|
boolean |
isDescendant()
|
boolean |
isUnion()
TODO documentation |
void |
setFilters(java.util.Collection filters)
|
void |
setFilters(java.lang.String[] filters)
|
void |
setLocale(java.util.Locale locale)
Sets the locale used to convert filters. |
void |
setOrder(java.lang.String order)
Sets the property used to order the collection. |
void |
setUnion(boolean union)
TODO documentation |
void |
setUnion(java.lang.String style)
TODO documentation |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EQUALS
greater
expression condition.
public static final int GREATER
equals
expression condition.
public static final int GREATER_EQUALS
greater
expression condition.
public static final int LESSER
greater equals
expression condition.
public static final int LESSER_EQUALS
lesser
expression condition.
public static final int NOT_EQUALS
lesser equal
expression condition.
public static final int LIKE
like
expression condition.
public static final int ILIKE
ilike
expression condition.
public static final int BETWEEN
between
expression condition.
public static final int NULL
is null
expression condition.
public static final int NOT_NULL
is not null
expression condition.
public static final int IN
in
expression condition.
public static final int NOT_IN
not in
expression condition.
Constructor Detail |
---|
public DataAccessObject.SearchInfo()
Method Detail |
---|
public boolean isDescendant()
public java.util.Collection getFilters()
public void setFilters(java.util.Collection filters)
filters
- the filters to set.public void setFilters(java.lang.String[] filters)
filters
- the filters to set.public void addFilter(java.lang.String filter)
filter
- the filter to add.public void addFilter(java.lang.String property, int condition, java.lang.String values)
property
- the property to filter on.condition
- the expression condition to apply on the property.values
- a comma separated list of values to evaluate against
the condition.public void addFilter(java.lang.String property, int condition, java.lang.Object value) throws ConversionException
property
- the property to filter on.condition
- the expression condition to apply on the property.value
- a value to evaluate against the condition.
ConversionException
public void addFilter(java.lang.String property, int condition, java.lang.String[] values)
property
- the property to filter on.condition
- the expression condition to apply on the property.values
- an array of values to evaluate against the condition.public void addFilter(java.lang.String property, int condition, java.lang.Object[] values) throws ConversionException
property
- the property to filter on.condition
- the expression condition to apply on the property.values
- an array of values to evaluate against the condition.
ConversionException
public java.lang.String getOrder()
public void setOrder(java.lang.String order)
descendant
unless an !
(exclamation mark)
is prefixed indicating an
ascendant
order must be used.
order
- the property used to order the collection, optionally
prefixed by ! (exclamation mark)
to
invert the sorting direction.public void setUnion(java.lang.String style)
style
- public void setUnion(boolean union)
public boolean isUnion()
public void setLocale(java.util.Locale locale)
locale
- the locale to set.public java.util.Locale getLocale()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |