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

wtf.metio.yosql.codegen.dao.MethodsGenerator Maven / Gradle / Ivy

/*
 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
 * in the LICENSE file.
 */
package wtf.metio.yosql.codegen.dao;

import com.squareup.javapoet.MethodSpec;
import wtf.metio.yosql.models.immutables.SqlStatement;

import java.util.List;

/**
 * Generates methods for a repository.
 */
public interface MethodsGenerator {

    /**
     * Creates all method declarations of a repository based on a number of {@link SqlStatement}s
     * to be used in interfaces.
     *
     * @param statements The statements to use.
     * @return The method specifications based on the given statements.
     */
    Iterable asMethodsDeclarations(List statements);

    /**
     * Creates all methods of a repository based on a number of {@link SqlStatement}s.
     *
     * @param statements The statements to use.
     * @return The method specifications based on the given statements.
     */
    Iterable asMethods(List statements);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy