FileDocCategorySizeDatePackage
Expectation.javaAPI DocHibernate 3.2.5522Thu Jun 22 14:51:44 BST 2006org.hibernate.jdbc

Expectation.java

package org.hibernate.jdbc;

import org.hibernate.HibernateException;

import java.sql.SQLException;
import java.sql.PreparedStatement;

/**
 * Defines an expected DML operation outcome.
 *
 * @author Steve Ebersole
 */
public interface Expectation {
	public void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition) throws SQLException, HibernateException;
	public int prepare(PreparedStatement statement) throws SQLException, HibernateException;
	public boolean canBeBatched();
}