view storage/core/src/main/java/com/redhat/thermostat/storage/core/StatementDescriptor.java @ 1152:4ba43dcff78e

Implement prepared statements (Part 1). Reviewed-by: ebaron Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-June/007214.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Fri, 28 Jun 2013 15:27:50 +0200
parents
children
line wrap: on
line source

package com.redhat.thermostat.storage.core;

public interface StatementDescriptor {

    /**
     * Describes this statement for preparation. For example:
     * 
     * <pre>
     * Query host-info where agentId = ?
     * </pre>
     * 
     * @return The statement descriptor.
     */
    String getQueryDescriptor();
    
    Category<?> getCategory();
    
}