wtf.metio.yosql.codegen.api.Parameters Maven / Gradle / Ivy
The newest version!
/*
* 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 http://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.api;
import com.squareup.javapoet.ParameterSpec;
import com.squareup.javapoet.TypeName;
import wtf.metio.yosql.models.sql.SqlParameter;
import java.util.List;
public interface Parameters {
ParameterSpec parameter(Class> type, String name);
ParameterSpec parameter(TypeName type, String name);
Iterable asParameterSpecs(List parameters);
Iterable asBatchParameterSpecs(List parameters);
Iterable resultState(TypeName type);
}