Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *      Copyright (C) 2012-2014 DataStax Inc.
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
  *   you may not use this file except in compliance with the License.
  *   You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package com.datastax.driver.mapping.annotations;
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 com.datastax.driver.core.Configuration.getQueryOptions()).

public @interface QueryParameters {
    
The consistency level to use for the operation.

Returns:
the consistency level to use for the operation.
    String consistency() default "";

    
The fetch size to use for paging the result of this operation.

Returns:
the fetch size to use for the operation.
    int fetchSize() default -1;

    
Whether tracing should be enabled for this operation.

Returns:
whether tracing should be enabled for this operation.
    boolean tracing() default false;
New to GrepCode? Check out our FAQ X