public class Annotations
extends java.lang.Object
Constructor and Description |
---|
Annotations() |
Modifier and Type | Method and Description |
---|---|
static Restriction |
between(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object lowValue,
java.lang.Object highValue,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationBetweenRestriction instead |
static Restriction |
eq(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Expression |
expression(AnnotationType annotationType)
Create an expression representing the value of an annotation to the root item
of the query.
|
static Expression |
expression(java.lang.String alias,
AnnotationType annotationType)
Create an expression representing the value of an annotation to a joined item
of the query.
|
static Restriction |
gt(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Restriction |
gteq(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Restriction |
in(java.lang.String alias,
AnnotationType annotationType,
boolean includeInheriting,
java.lang.Object... values)
Deprecated.
In 3.5; Use
AnnotationInRestriction instead |
static Join |
innerJoin(AnnotationType annotationType,
java.lang.String joinedAlias)
Create an inner join between the root element of a query and
the annotation values for the given annotation type.
|
static Join |
innerJoin(java.lang.String alias,
AnnotationType annotationType,
java.lang.String joinedAlias)
Create an inner join between an already joined element of a query and
the annotation values for the given annotation type.
|
static Join |
leftJoin(AnnotationType annotationType,
java.lang.String joinedAlias)
Create a left join between the root element of a query and
the annotation values for the given annotation type.
|
static Join |
leftJoin(java.lang.String alias,
AnnotationType annotationType,
java.lang.String joinedAlias)
Create a left join between an already joined element of a query and
the annotation values for the given annotation type.
|
static Restriction |
like(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Restriction |
lt(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Restriction |
lteq(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
static Restriction |
neq(java.lang.String alias,
AnnotationType annotationType,
java.lang.Object value,
boolean includeInheriting)
Deprecated.
In 3.5; Use
AnnotationSimpleRestriction instead |
@Deprecated public static Restriction eq(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType or value are null.@Deprecated public static Restriction neq(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType or value are null.@Deprecated public static Restriction lt(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType parameter or value parameter are null.@Deprecated public static Restriction lteq(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType parameter or value parameter are null.@Deprecated public static Restriction gt(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType parameter or value parameter are null.@Deprecated public static Restriction gteq(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType parameter or value parameter are null.@Deprecated public static Restriction like(java.lang.String alias, AnnotationType annotationType, java.lang.Object value, boolean includeInheriting) throws InvalidDataException
AnnotationSimpleRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.value
- The value to search for. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If annotationType parameter or value parameter are null.@Deprecated public static Restriction between(java.lang.String alias, AnnotationType annotationType, java.lang.Object lowValue, java.lang.Object highValue, boolean includeInheriting) throws InvalidDataException
AnnotationBetweenRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.lowValue
- The lower bound. Can not be null.highValue
- The higher bound. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notInvalidDataException
- If any of the required parameters are null.@Deprecated public static Restriction in(java.lang.String alias, AnnotationType annotationType, boolean includeInheriting, java.lang.Object... values) throws InvalidDataException
AnnotationInRestriction
insteadalias
- The alias of the joined entity or null to use the root elementannotationType
- The annotation type to search. Can not be null.includeInheriting
- If items inheriting the annotation should be returned
by the query or notvalues
- An array of values. Can not be null.InvalidDataException
- If annotationType parameter or values parameter are nullpublic static Expression expression(AnnotationType annotationType)
annotationType
- The annotation type to generate an expression forInvalidDataException
- If the annotationType is nullpublic static Expression expression(java.lang.String alias, AnnotationType annotationType)
alias
- The alias of a joined item or null to use the root itemannotationType
- The annotation type to generate an expression forInvalidDataException
- If the annotationType is nullpublic static Join innerJoin(AnnotationType annotationType, java.lang.String joinedAlias)
annotationType
- The annotation type to to joinjoinedAlias
- The alias to use for the joined annotation valuesInvalidDataException
- If the annotationType or joinedAlias is nullpublic static Join innerJoin(java.lang.String alias, AnnotationType annotationType, java.lang.String joinedAlias)
alias
- The alias of a joined item or null to use the root itemannotationType
- The annotation type to to joinjoinedAlias
- The alias to use for the joined annotation valuesInvalidDataException
- If the annotationType or joinedAlias is nullpublic static Join leftJoin(AnnotationType annotationType, java.lang.String joinedAlias)
annotationType
- The annotation type to to joinjoinedAlias
- The alias to use for the joined annotation valuesInvalidDataException
- If the annotationType or joinedAlias is nullpublic static Join leftJoin(java.lang.String alias, AnnotationType annotationType, java.lang.String joinedAlias)
alias
- The alias of a joined item or null to use the root itemannotationType
- The annotation type to to joinjoinedAlias
- The alias to use for the joined annotation valuesInvalidDataException
- If the annotationType or joinedAlias is null