Annotation Interface CQAttribute
Method-level, run-time annotation defining two attributes:
-
attribute: defines CQEngine attribute type associated with get method. CQEngine uses this attribute to retrieve an event value. -
index: defines CQEngine index for attribute. If not defined, then attribute has no index.
If a public returntype getXXX() method is not
annotated with @CQAttribute, then no CQEngine
attribute is generated for the method.
- Author:
- Charles W. Rapp
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionReturnsCQEngine attributetype used for apublic getXXX()method. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturnsCQEngine attribute indextype associated with the get method attribute.booleanReturnstrueif a multi-value field containsnullvalues; otherwise returnsfalse.
-
Element Details
-
attribute
CQAttributeType attributeReturnsCQEngine attributetype used for apublic getXXX()method. There is no default value. If this annotation is not provided for a get method, then no CQEngine attribute is created for that field.- Returns:
- CQEngine attribute type.
- See Also:
-
nullValues
boolean nullValuesReturnstrueif a multi-value field containsnullvalues; otherwise returnsfalse. If not specified, then defaults tofalse.This field should be used only when
attribute()is set toCQAttributeType.MULTIVALUE_NULLABLE. This flag is ignored for all other attribute types.- Returns:
trueif a multi-value field containsnullvalues.- See Also:
- Default:
false
-
index
CQIndexType indexReturnsCQEngine attribute indextype associated with the get method attribute. If not specified, then defaults toNO_INDEX.- Returns:
- CQEngine index type.
- See Also:
- Default:
NO_INDEX
-