|Constructor and Description|
Create a new annotation restriction.
public AnnotationBetweenRestriction(AnnotationType annotationType, Object lowValue, Object highValue, boolean includeInheriting) throws InvalidDataException
annotationType- The annotation type to use in the query
lowValue- The low value to use in the query, it must be of the correct value type for the annotation as defined by the
highValue- The high value to use in the query, it must be of the correct value type for the annotation as defined by the
includeInheriting- If items inherting the annotation should be returned by the query or not
InvalidDataException- If any of the parameters are null or not follow the rules above.
public String toQl(Query query, DbControl dc) throws BaseException
Query.getQueryType()method to find out which query language is wanted in case the element requires different syntax for different languages.