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

org.nkjmlab.sorm4j.context.SqlParametersSetter Maven / Gradle / Ivy

There is a newer version: 2.1.7
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy