WikittyQuery@Deprecated public class RestrictionHelper extends Object
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 and Description |
|---|
RestrictionHelper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 Restriction like(Element element, String value, Like.SearchAs searchAs)
public static Restriction unlike(Element element, String value, Like.SearchAs searchAs)
public static SimpleDateFormat getDateFormat()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.