Class BasicBatchKey
- java.lang.Object
-
- org.hibernate.engine.jdbc.batch.internal.BasicBatchKey
-
-
Constructor Summary
Constructors Constructor Description BasicBatchKey(String comparison)Constructs a BasicBatchKey withExpectations.NONEBasicBatchKey(String comparison, Expectation expectation)Constructs a BasicBatchKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetBatchedStatementCount()How many statements will be in this batch?ExpectationgetExpectation()Get the expectation pertaining to the outcome of theBatchassociated with this key.inthashCode()StringtoLoggableString()StringtoString()
-
-
-
Constructor Detail
-
BasicBatchKey
public BasicBatchKey(String comparison)
Constructs a BasicBatchKey withExpectations.NONE
-
BasicBatchKey
public BasicBatchKey(String comparison, Expectation expectation)
Constructs a BasicBatchKey- Parameters:
comparison- A string used to compare batch keys.expectation- The expectation for the batch
-
-
Method Detail
-
getExpectation
public Expectation 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.
-
toLoggableString
public String toLoggableString()
- Specified by:
toLoggableStringin interfaceBatchKey
-
-