Class BasicBatchKey
- java.lang.Object
-
- org.hibernate.engine.jdbc.batch.internal.BasicBatchKey
-
-
Constructor Summary
Constructors Constructor Description BasicBatchKey(String comparison)
Constructs a BasicBatchKey withExpectations.NONE
BasicBatchKey(String comparison, Expectation expectation)
Constructs a BasicBatchKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getBatchedStatementCount()
How many statements will be in this batch?Expectation
getExpectation()
Get the expectation pertaining to the outcome of theBatch
associated with this key.int
hashCode()
String
toLoggableString()
String
toString()
-
-
-
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:BatchKey
Get the expectation pertaining to the outcome of theBatch
associated with this key.- Specified by:
getExpectation
in interfaceBatchKey
- Returns:
- The expectations
-
getBatchedStatementCount
public int getBatchedStatementCount()
Description copied from interface:BatchKey
How many statements will be in this batch?Note that this is distinctly different to the size of the batch.
- Specified by:
getBatchedStatementCount
in interfaceBatchKey
- Returns:
- The number of statements.
-
toLoggableString
public String toLoggableString()
- Specified by:
toLoggableString
in interfaceBatchKey
-
-