view storage/core/src/main/java/com/redhat/thermostat/storage/core/DataModifyingStatement.java @ 1224:b015c7f31a11 0.13-branchpoint

Use explicit types for write operations. Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-August/007986.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Fri, 16 Aug 2013 18:52:06 +0200
parents b6722888e6b3
children cd020319d8ed
line wrap: on
line source

package com.redhat.thermostat.storage.core;

import com.redhat.thermostat.storage.model.Pojo;

/**
 * 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<T extends Pojo> extends Statement<T> {

    /**
     * Executes this statement.
     * 
     * @return a number greater than zero on success. A negative failure code
     *         otherwise.
     */
    int execute();
}