|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.search.RestrictionHelper
WikittyQuery
@Deprecated public class RestrictionHelper
RestrictionHelper.and(
RestrictionHelper.eq(
new ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID), "myContentDefId"),
RestrictionHelper.between(
new ElementDto(ElementName.CONTENT, OperandName.CREATION_DATE, OperandType.DATE),
RestrictionHelper.DATE_FORMAT.format (new Date(2008,1,25)),
RestrictionHelper.DATE_FORMAT.format (new Date(2008,6,15))))
);
example 2 : I search all content witch content definition id is
"myContentDefId" and attribute def 'ref' witch id is ATT_REF_ID is not equals
to "REF1234567890"
RestrictionHelper.and(
RestrictionHelper.eq(
new ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID), "myContentDefId"),
RestrictionHelper.neq(
new ElementDto(ElementName.ATTRIBUTE, "ATT_REF_ID", OperandType.STRING), "REF1234567890"))
);
| Constructor Summary | |
|---|---|
RestrictionHelper()
Deprecated. |
|
| Method Summary | |
|---|---|
static And |
and(List<Restriction> restrictions)
Deprecated. |
static Restriction |
and(Restriction restriction1,
Restriction restriction2,
Restriction... otherRestrictions)
Deprecated. |
static Restriction |
between(Element element,
String min,
String max)
Deprecated. |
static Restriction |
contains(Element element,
List<String> values)
Deprecated. |
static Restriction |
contains(Element element,
String value1,
String... otherValues)
Deprecated. |
static Restriction |
end(Element element,
String value)
Deprecated. |
static Restriction |
eq(Element element,
String value)
Deprecated. |
static SimpleDateFormat |
getDateFormat()
Deprecated. |
static Restriction |
great(Element element,
String value)
Deprecated. |
static Restriction |
greatEq(Element element,
String value)
Deprecated. |
static Restriction |
in(Element element,
List<String> values)
Deprecated. |
static Restriction |
in(Element element,
String value1,
String... otherValues)
Deprecated. |
static Null |
isNotNull(String fieldName)
Deprecated. |
static Null |
isNull(String fieldName)
Deprecated. |
static Keyword |
keyword(String value)
Deprecated. |
static Restriction |
less(Element element,
String value)
Deprecated. |
static Restriction |
lessEq(Element element,
String value)
Deprecated. |
static Restriction |
like(Element element,
String value,
Like.SearchAs searchAs)
Deprecated. |
static Restriction |
neq(Element element,
String value)
Deprecated. |
static Restriction |
not(Restriction restriction)
Deprecated. |
static Or |
or(List<Restriction> restrictions)
Deprecated. |
static Or |
or(Restriction restriction1,
Restriction restriction2,
Restriction... otherRestrictions)
Deprecated. |
static False |
rFalse()
Deprecated. |
static True |
rTrue()
Deprecated. |
static Restriction |
start(Element element,
String value)
Deprecated. |
static Restriction |
unlike(Element element,
String value,
Like.SearchAs searchAs)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestrictionHelper()
| Method Detail |
|---|
public static Restriction eq(Element element,
String value)
public static Restriction neq(Element element,
String value)
public static Restriction less(Element element,
String value)
public static Restriction lessEq(Element element,
String value)
public static Restriction great(Element element,
String value)
public static Restriction greatEq(Element element,
String value)
public static Restriction start(Element element,
String value)
public static Restriction end(Element element,
String value)
public static Restriction between(Element element,
String min,
String max)
public static Restriction contains(Element element,
String value1,
String... otherValues)
public static Restriction contains(Element element,
List<String> values)
public static Restriction in(Element element,
String value1,
String... otherValues)
public static Restriction in(Element element,
List<String> values)
public static Restriction not(Restriction restriction)
public static Restriction and(Restriction restriction1,
Restriction restriction2,
Restriction... otherRestrictions)
public static And and(List<Restriction> restrictions)
public static Or or(Restriction restriction1,
Restriction restriction2,
Restriction... otherRestrictions)
public static Or or(List<Restriction> restrictions)
public static True rTrue()
public static False rFalse()
public static Keyword keyword(String value)
public static Null isNull(String fieldName)
public static Null isNotNull(String fieldName)
public static Restriction like(Element element,
String value,
Like.SearchAs searchAs)
public static Restriction unlike(Element element,
String value,
Like.SearchAs searchAs)
public static SimpleDateFormat getDateFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||