view storage/core/src/main/java/com/redhat/thermostat/storage/core/DataModifyingStatement.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;

/**
 * Marker interface for {@link Statement}s which perform write operations on
 * storage. These statements usually only return success/failure responses or
 * more specific error codes.
 *
 */
public interface DataModifyingStatement extends Statement {

    /**
     * Executes this statement.
     * 
     * @return Zero on success. A non-zero failure code otherwise.
     */
    int execute();
}