Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home


org/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 batchPositionthrows SQLException, HibernateException;
  public int prepare(PreparedStatement statementthrows SQLException, HibernateException;
  public boolean canBeBatched();
}