Annotation Interface DataMethodQuery
@Retention(RUNTIME)
@Target({METHOD,ANNOTATION_TYPE})
@Internal
@Inherited
public @interface DataMethodQuery
Internal annotation used describe the stored query definition.
- Since:
- 4.10
- Author:
- Denis Stepanov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Describes the operation type. -
Optional Element Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Does the query result in a DTO object.static final String
The member that holds expandable query parts.static final String
The parameter that holds the limit value.static final String
The member that holds the native query value.static final String
The parameter that holds the offset value.static final String
The member name that holds the root entity type.static final String
Does the query contains optimistic lock.static final String
Meta member for storing the parameters.static final String
The member that holds the is procedure value.static final String
The member that holds the query value.static final String
Whether the user is a raw user specified query.static final String
The member name that holds the result type.static final String
The member name that holds the result type.static final String
The annotation name.
-
Field Details
-
NAME
The annotation name. -
META_MEMBER_QUERY
The member that holds the query value.- See Also:
-
META_MEMBER_NATIVE
The member that holds the native query value.- See Also:
-
META_MEMBER_RAW_QUERY
Whether the user is a raw user specified query.- See Also:
-
META_MEMBER_PROCEDURE
The member that holds the is procedure value.- See Also:
-
META_MEMBER_EXPANDABLE_QUERY
The member that holds expandable query parts.- See Also:
-
META_MEMBER_RESULT_TYPE
The member name that holds the result type.- See Also:
-
META_MEMBER_RESULT_DATA_TYPE
The member name that holds the result type.- See Also:
-
META_MEMBER_OFFSET
The parameter that holds the offset value.- See Also:
-
META_MEMBER_LIMIT
The parameter that holds the limit value.- See Also:
-
META_MEMBER_DTO
Does the query result in a DTO object.- See Also:
-
META_MEMBER_OPTIMISTIC_LOCK
Does the query contains optimistic lock.- See Also:
-
META_MEMBER_PARAMETERS
Meta member for storing the parameters.- See Also:
-
META_MEMBER_OPERATION_TYPE
The member name that holds the root entity type.- See Also:
-
-
Element Details
-
resultType
Class<?> resultTypeThe computed result type. This represents the type that is to be read from the database. For example for aList
this would return the value of the generic type parameterE
. Or for an entity result the return type itself.- Returns:
- The result type
- Default:
- void.class
-
resultDataType
DataType resultDataType- Returns:
- The result data type.
- Default:
- OBJECT
-
parameters
DataMethodQueryParameter[] parameters- Returns:
- The query parameters
- Default:
- {}
-
procedure
boolean procedure- Returns:
- True if the method represents the procedure invocation.
- Since:
- 4.2.0
- Default:
- false
-