Package org.quickperf.sql.annotation
Annotation Type ExpectJdbcBatching
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface ExpectJdbcBatching
TheExpectJdbcBatching
annotation that insert, delete, and update statements are processed through JDBC batches ofbatchSize
elements.
Example:
@ExpectJdbcBatching(batchSize = 30) public void insert_using_jdbc_batching_system(){
..
}
Note:
YYou may sometimes think that you are using JDBC batching, but in fact, you are not:- See Also:
- The cost of JDBC Server roundtrips.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
batchSize
Specifies abatchSize
(integer) to cause the test method to fail if the used batch size is not equal.
-
-
-
Element Detail
-
batchSize
int batchSize
Specifies abatchSize
(integer) to cause the test method to fail if the used batch size is not equal. A zero batch size means that JDBC batching is disabled. With no given batch size value, the annotation will still check that insert, delete and update statements are processed through JDBC batches (but the annotation will not check the batch size).- Default:
- -1
-
-