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

net.customware.confluence.reporting.query.Query Maven / Gradle / Ivy

package net.customware.confluence.reporting.query;

import net.customware.confluence.reporting.Report;

import org.randombits.facade.Facadable;

/**
 * Reporters execute the actual queries which the {@link Report} then iterates
 * through to generate the pretty output.
 * 
 * @param 
 *            The value type returned from the query.
 */
@Facadable
public interface Query {

    /**
     * Returns the class type returned by this query.
     * 
     * @return The query class type.
     */
    public Class getValueType();

    /**
     * Executes the query, returning the results.
     * 
     * @return An iterator running through the sorted results.
     * @throws QueryException
     *             if there is a problem.
     */
    Results execute() throws QueryException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy