FileDocCategorySizeDatePackage
Expectations.javaAPI DocHibernate 3.2.55664Fri Aug 04 12:40:56 BST 2006org.hibernate.jdbc

Expectations

public class Expectations extends Object
Holds various often used {@link Expectation} definitions.
author
Steve Ebersole

Fields Summary
private static final Log
log
public static final int
USUAL_EXPECTED_COUNT
public static final int
USUAL_PARAM_POSITION
public static final Expectation
NONE
public static final Expectation
BASIC
public static final Expectation
PARAM
Constructors Summary
private Expectations()

	
Methods Summary
public static ExpectationappropriateExpectation(org.hibernate.engine.ExecuteUpdateResultCheckStyle style)



	     
		if ( style == ExecuteUpdateResultCheckStyle.NONE ) {
			return NONE;
		}
		else if ( style == ExecuteUpdateResultCheckStyle.COUNT ) {
			return BASIC;
		}
		else if ( style == ExecuteUpdateResultCheckStyle.PARAM ) {
			return PARAM;
		}
		else {
			throw new HibernateException( "unknown check style : " + style );
		}