public static class

Expectations.BasicParamExpectation

extends Expectations.BasicExpectation
java.lang.Object
   ↳ org.hibernate.jdbc.Expectations.BasicExpectation
     ↳ org.hibernate.jdbc.Expectations.BasicParamExpectation

Summary

Protected Constructors
Expectations.BasicParamExpectation(int expectedRowCount, int parameterPosition)
Public Methods
boolean canBeBatched()
Is it acceptable to combiner this expectation with statement batching?
int prepare(PreparedStatement statement)
Perform any special statement preparation.
Protected Methods
int determineRowCount(int reportedRowCount, PreparedStatement statement)
[Expand]
Inherited Methods
From class org.hibernate.jdbc.Expectations.BasicExpectation
From class java.lang.Object
From interface org.hibernate.jdbc.Expectation

Protected Constructors

protected Expectations.BasicParamExpectation (int expectedRowCount, int parameterPosition)

Public Methods

public boolean canBeBatched ()

Is it acceptable to combiner this expectation with statement batching?

Returns
  • True if batching can be combined with this expectation; false otherwise.

public int prepare (PreparedStatement statement)

Perform any special statement preparation.

Parameters
statement The statement to be prepared
Returns
  • The number of bind positions consumed (if any)

Protected Methods

protected int determineRowCount (int reportedRowCount, PreparedStatement statement)