All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.query.PreparedCqlQuery Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.query;

import java.nio.ByteBuffer;
import java.util.List;
import java.util.UUID;

import com.netflix.astyanax.Execution;
import com.netflix.astyanax.Serializer;
import com.netflix.astyanax.model.CqlResult;

/**
 * Interface for specifying parameters on a prepared CQL query.
 * 
 * Values must be specified in the order that they were defined in the query.  
 * 
 * @author elandau
 * 
 * @param 
 * @param 
 */
public interface PreparedCqlQuery extends Execution> {
    /**
     * Specify a value of custom type for which a convenience method does not exist 
     * @param value
     * @param serializer
     */
     PreparedCqlQuery withByteBufferValue(V value, Serializer serializer);

    /**
     * Set the next parameter value to this ByteBuffer
     * @param value
     */
    PreparedCqlQuery withValue(ByteBuffer value);
    
    /**
     * Add a list of ByteBuffer values
     * @param value
     */
    PreparedCqlQuery withValues(List value);
    
    /**
     * Set the next parameter value to this String
     * @param value
     */
    PreparedCqlQuery withStringValue(String value);
    
    /**
     * Set the next parameter value to this Integer
     * @param value
     */
    PreparedCqlQuery withIntegerValue(Integer value);
    
    /**
     * Set the next parameter value to this Boolean
     * @param value
     */
    PreparedCqlQuery withBooleanValue(Boolean value);
    
    /**
     * Set the next parameter value to this Double
     * @param value
     */
    PreparedCqlQuery withDoubleValue(Double value);

    /**
     * Set the next parameter value to this Long
     * @param value
     */
    PreparedCqlQuery withLongValue(Long value);

    /**
     * Set the next parameter value to this Float
     * @param value
     */
    PreparedCqlQuery withFloatValue(Float value);

    /**
     * Set the next parameter value to this Short
     * @param value
     */
    PreparedCqlQuery withShortValue(Short value);
    
    /**
     * Set the next parameter value to this Short
     * @param value
     */
    PreparedCqlQuery withUUIDValue(UUID value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy