WikittyQuery@Deprecated public class Search extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Search.KIND
Deprecated.
Default operator type between all search condition.
|
| Modifier and Type | Field and Description |
|---|---|
protected Search.KIND |
kind
Deprecated.
Defaut kind to
Search.KIND.AND. |
protected List<Restriction> |
restrictions
Deprecated.
|
protected List<Search> |
subSearchs
Deprecated.
|
| Constructor and Description |
|---|
Search()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Search |
and()
Deprecated.
And (sub query).
|
Search |
associated(String foreignFieldName)
Deprecated.
Add
SubSearch to allow search on association (like sql join) |
Search |
bw(String element,
String lowerValue,
String upperValue)
Deprecated.
Between.
|
Search |
contains(String element,
Collection<String> values)
Deprecated.
Contains.
|
Search |
contains(String element,
String value1,
String... values)
Deprecated.
Contains.
|
Criteria |
criteria()
Deprecated.
Return unnamed criteria.
|
Criteria |
criteria(String name)
Deprecated.
Return named criteria.
|
protected static Element |
elt(String element)
Deprecated.
|
Search |
eq(String element,
Collection<String> values)
Deprecated.
|
Search |
eq(String element,
String value)
Deprecated.
Equals.
|
Search |
ew(String element,
String value)
Deprecated.
Ends with.
|
Search |
exteq(Collection<String> values)
Deprecated.
Extension equals.
|
Search |
exteq(String value)
Deprecated.
Extension equals.
|
Search |
extneq(String value)
Deprecated.
Extension not equals.
|
Search |
ge(String element,
String value)
Deprecated.
Greater than or equals.
|
protected Restriction |
getRestrictions()
Deprecated.
|
Search |
gt(String element,
String value)
Deprecated.
Greater than.
|
Search |
ideq(String value)
Deprecated.
Id equals.
|
Search |
idneq(String value)
Deprecated.
Id not equals.
|
Search |
in(String element,
Collection<String> values)
Deprecated.
In.
|
Search |
in(String element,
String value1,
String... values)
Deprecated.
In.
|
Search |
isNotNull(String fieldName)
Deprecated.
Is not null.
|
Search |
isNull(String fieldName)
Deprecated.
Is null.
|
Search |
keyword(String value)
Deprecated.
Keyword.
|
Search |
le(String element,
String value)
Deprecated.
Less than or equals.
|
Search |
like(String element,
String value)
Deprecated.
|
Search |
like(String element,
String value,
Like.SearchAs searchAs)
Deprecated.
Like.
|
Search |
lt(String element,
String value)
Deprecated.
Less than.
|
Search |
neq(String element,
String value)
Deprecated.
Not equals.
|
Search |
not()
Deprecated.
Not (sub query).
|
Search |
notew(String element,
String value)
Deprecated.
Not ends with.
|
Search |
nsw(String element,
String value)
Deprecated.
Not starts with.
|
Search |
or()
Deprecated.
Or (sub query).
|
static Search |
query()
Deprecated.
Create new
Search object with default kind to Search.KIND.AND. |
static Search |
query(Criteria criteria)
Deprecated.
Create a new query on an existing criteria to add new constraints to
the existing criteria.
|
static Search |
query(Search.KIND kind)
Deprecated.
Create new
Search object with custom kind. |
static Search |
query(Wikitty wikitty)
Deprecated.
Create Search query with field in wikitty argument.
|
Search |
rFalse()
Deprecated.
False.
|
Search |
rTrue()
Deprecated.
True.
|
Search |
sw(String element,
String value)
Deprecated.
Starts with.
|
Search |
unlike(String element,
String value)
Deprecated.
|
Search |
unlike(String element,
String value,
Like.SearchAs searchAs)
Deprecated.
Unlike.
|
protected Search.KIND kind
Search.KIND.AND.protected List<Restriction> restrictions
public static Search query(Wikitty wikitty)
wikitty - example use to create querypublic static Search query()
Search object with default kind to Search.KIND.AND.public static Search query(Search.KIND kind)
Search object with custom kind.kind - kindpublic static Search query(Criteria criteria)
criteria - the existing criteriapublic Search contains(String element, Collection<String> values)
element - the element on which the restriction is putvalues - the values to search in the elementthis with the contains restriction added.public Search contains(String element, String value1, String... values)
element - the element on which the restriction is putvalue1 - first value to search in the fieldvalues - list of values to search in the fieldthis with the contains restriction added.public Search in(String element, Collection<String> values)
element - the element on which the restriction is putvalues - list of values the field must be inthis with the in restriction added.public Search in(String element, String value1, String... values)
element - the element on which the restriction is putvalue1 - first value the field must be invalues - list of values the field must be inthis with the in restriction added.public Search eq(String element, String value)
element - the field on which the search is madevalue - the value the element must be equals tothispublic Search exteq(String value)
value - the extension to restrict the results tothis with the exteq restriction added.public Search ideq(String value)
value - the id to restrict the results tothis with the ideq restriction added.@Deprecated public Search eq(String element, Collection<String> values)
element - the element on which the restriction is putvalues - list of values that the element must be equals tothis with the ideq restriction added.public Search exteq(Collection<String> values)
values - list of the extension to restrict the results tothis with the exteq restriction added.public Search neq(String element, String value)
element - the element on which the restriction is putvalue - the value the element must not be equals to.this with the neq restriction added.public Search extneq(String value)
value - the extension that the wikitties must not have.this with the extneq restriction added.public Search idneq(String value)
value - the id the wikitties must not have.this with the idneq restriction added.public Search gt(String element, String value)
element - the element on which the restriction is putvalue - the value to be compared tothis with the gt restriction added.public Search ge(String element, String value)
element - the field on which the search is madevalue - the value to be compared tothis with the ge restriction added.public Search lt(String element, String value)
element - the element on which the restriction is putvalue - the value to be compared tothis with the lt restriction added.public Search le(String element, String value)
element - the element on which the restriction is put.value - the value to be compared to.this with the le restriction added.public Search bw(String element, String lowerValue, String upperValue)
element - the element on which the restriction is put.lowerValue - the lower bound.upperValue - the upper bound.this with the le restriction added.public Search sw(String element, String value)
element - the element on which the restriction is put.value - the value the element must start with.this with the sw restriction added.public Search nsw(String element, String value)
element - the element on which the restriction is put.value - the value the element must not start with.this with the nsw restriction added.public Search ew(String element, String value)
element - the element on which the restriction is putvalue - the value the element must ends with.this with the ew restriction added.public Search notew(String element, String value)
element - the element on which the restriction is putvalue - the value the element must not ends with.this with the notew restriction added.public Search keyword(String value)
value - the value to find.this with the keyword restriction added.public Search isNull(String fieldName)
fieldName - the field that must be null.this with the isNull restriction added.public Search isNotNull(String fieldName)
fieldName - the field that must not be null.this with the isNotNull restriction added.public Search rFalse()
this with the rFalse restriction added.public Search rTrue()
this with the rTrue restriction added.public Search like(String element, String value, Like.SearchAs searchAs)
element - the element on which the restriction is putvalue - searchAs - thispublic Search unlike(String element, String value, Like.SearchAs searchAs)
element - the element on which the restriction is putvalue - searchAs - thispublic Search not()
public Search or()
public Search and()
public Search associated(String foreignFieldName)
SubSearch to allow search on association (like sql join)foreignFieldName - association fieldNamepublic Criteria criteria(String name)
name - name of criteriapublic Criteria criteria()
protected Restriction getRestrictions() throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2009–2013 CodeLutin. All rights reserved.