Package overit.geocall.sql.batch
Interface Batch
- All Superinterfaces:
Iterable<CommandContext>
Interface useful to manage a batch of
SQL commands to submit to the database for their execution.-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchBuilderbuilder()Returns a new instance ofBatchBuilder, useful to build aBatch.intReturns the batch size.Returns anOptional<DBStatementObserver> about a possible statement observer that must be notified about the operating phases of aDBStatement.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getBatchSize
int getBatchSize()Returns the batch size.- Returns:
- the batch size.
-
getStatementObserver
Optional<DBStatementObserver> getStatementObserver()Returns anOptional<DBStatementObserver> about a possible statement observer that must be notified about the operating phases of aDBStatement.- Returns:
- an
Optional<DBStatementObserver> about a possible statement observer that must be notified about the operating phases of aDBStatement.
-
builder
Returns a new instance ofBatchBuilder, useful to build aBatch.- Returns:
- a new instance of
BatchBuilder, useful to build aBatch.
-