com.datastax.driver.mapping.annotations

## Annotation Type QueryParameters

• @Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface QueryParameters
Query parameters to use in the (generated) implementation of a method of an Accessor interface.

All the parameters of this annotation are optional, and when not provided default to whatever default the Cluster instance used underneath are (those set in Configuration.getQueryOptions()).

• ### Optional Element Summary

Optional Elements
Modifier and Type Optional Element and Description
String consistency
The consistency level to use for the operation.
int fetchSize
The fetch size to use for paging the result of this operation.
boolean[] idempotent
Whether the operation is idempotent or not.
boolean tracing
Whether tracing should be enabled for this operation.
• ### Element Detail

• #### consistency

public abstract String consistency
The consistency level to use for the operation.
Returns:
the consistency level to use for the operation.
Default:
""
• #### fetchSize

public abstract int fetchSize
The fetch size to use for paging the result of this operation.
Returns:
the fetch size to use for the operation.
Default:
-1
• #### tracing

public abstract boolean tracing
Whether tracing should be enabled for this operation.
Returns:
whether tracing should be enabled for this operation.
Default:
false
• #### idempotent

public abstract boolean[] idempotent
Whether the operation is idempotent or not.

When this attribute is set to true the operation is assumed idempotent; when set to false, it is assumed that it is not.

If a value of true or false is provided, the underlying Statement will have its idempotent flag set accordingly.

When this attribute is set to its default (an empty array), it means that the statement's idempotent flag will not be set, and its idempotence will be inferred from QueryOptions.getDefaultIdempotence().

This attribute is declared as a boolean array to allow for "unset" values, but it can only contain at most one element.

Returns:
true if the operation is idempotent, false otherwise.
Default:
{}