Class BasicBatchKey
java.lang.Object
org.hibernate.engine.jdbc.batch.internal.BasicBatchKey
- All Implemented Interfaces:
BatchKey
Normal implementation of BatchKey
- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescriptionBasicBatchKey(String comparison) Constructs a BasicBatchKey withExpectations.NONEBasicBatchKey(String comparison, Expectation expectation) Constructs a BasicBatchKey -
Method Summary
-
Constructor Details
-
BasicBatchKey
Constructs a BasicBatchKey withExpectations.NONE -
BasicBatchKey
Constructs a BasicBatchKey- Parameters:
comparison- A string used to compare batch keys.expectation- The expectation for the batch
-
-
Method Details
-
getExpectation
Description copied from interface:BatchKeyGet the expectation pertaining to the outcome of theBatchassociated with this key.- Specified by:
getExpectationin interfaceBatchKey- Returns:
- The expectations
-
getBatchedStatementCount
public int getBatchedStatementCount()Description copied from interface:BatchKeyHow many statements will be in this batch?Note that this is distinctly different to the size of the batch.
- Specified by:
getBatchedStatementCountin interfaceBatchKey- Returns:
- The number of statements.
-
equals
-
hashCode
public int hashCode() -
toLoggableString
- Specified by:
toLoggableStringin interfaceBatchKey
-
toString
-