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

acolyte.jdbc.Result Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
package acolyte.jdbc;

import java.sql.SQLWarning;

/**
 * Row list result.
 *
 * @author Cedric Chantepie
 */
public interface Result {
    
    /**
     * Returns result with given |warning|.
     *
     * @param warning the SQL warning
     * @return new result with given warning
     */
    public SELF withWarning(SQLWarning warning);

    /**
     * Returns result with warning for given |reason|.
     *
     * @param reason the warning reason
     * @return new result with specified warning
     */
    public SELF withWarning(String reason);

    /**
     * Returns associated warning.
     * @return the SQL warning, or null
     */
    public SQLWarning getWarning();

} // end class Result




© 2015 - 2024 Weber Informatics LLC | Privacy Policy