public interface Batchable
batchable.startBatch(); batchable.startBatch(); batchable.modify(...); batchable.endBatch(); // No changes are applied yet batchable.endBatch(); // Changes are applied after this call
Modifier and Type | Method and Description |
---|---|
void |
addBatchListener(BatchListener l)
Adds a batch listener to this
Batchable |
void |
endBatch()
Terminates a batch of modifications.
|
boolean |
isBatching()
Checks whether
Batchable |
void |
removeBatchListener(BatchListener l)
Removes a batch listener from this
Batchable |
void |
startBatch()
Starts a batch of modifications.
|
boolean isBatching()
Batchable instance is in batch phase.
If true means someone has called #startBatch() and hasn't been called #endBatch().
void startBatch()
endBatch()
void endBatch()
startBatch()
void addBatchListener(BatchListener l)
Batchable instance.
l
- a batch listener to be added.removeBatchListener(BatchListener)
void removeBatchListener(BatchListener l)
Batchable instance.
l
- a batch listener to be removed.addBatchListener(BatchListener)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.