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

de.jaggl.sqlbuilder.queries.QueryableQuery Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
package de.jaggl.sqlbuilder.queries;

import java.util.List;
import java.util.Optional;

import de.jaggl.sqlbuilder.queryexecutor.SelectQueryExecutor;

/**
 * @author Martin Schumacher
 *
 * @since 2.5.0
 */
public interface QueryableQuery extends Query
{
    default  List query(SelectQueryExecutor selectQueryExecutor)
    {
        return selectQueryExecutor.query(this);
    }

    default  Optional queryOne(SelectQueryExecutor selectQueryExecutor)
    {
        return selectQueryExecutor.queryOne(this);
    }

    default  T queryExactOne(SelectQueryExecutor selectQueryExecutor)
    {
        return selectQueryExecutor.queryExactOne(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy