org.nkjmlab.sorm4j.context.SqlParametersSetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sorm4j Show documentation
Show all versions of sorm4j Show documentation
Simple micro Object-Relation Mapper for Java
package org.nkjmlab.sorm4j.context;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* A setter for given {@link PreparedStatement}.
*
* @author nkjm
*/
public interface SqlParametersSetter {
/**
* Sets parameters into the given prepared statement. i.e. Convert from java objects to SQL.
*
* @param stmt {@link java.sql.PreparedStatement} to have parameters set into
* @param parameters parameters values
*/
void setParameters(PreparedStatement stmt, Object... parameters) throws SQLException;
}