|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.AbstractBatcher
public abstract class AbstractBatcher
This is an abstract class for batchers that are connected to a
single DbControl object. It implements all methods in the
Batcher interface except the Batcher.flush() method.
A subclass may also have to override the close() method
if it has opened connections or statements to the database.
| Method Summary | |
|---|---|
void |
close()
Flush the batcher and close it. |
int |
getBatchSize()
Get the current batch size of the batcher. |
DbControl |
getDbControl()
Get the DbControl object that currently manages this batcher. |
SessionControl |
getSessionControl()
Get the SessionControl object that manages this item. |
boolean |
isClosed()
Check if this batcher is closed or not. |
void |
setBatchSize(int batchSize)
Sets the batch size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Batcher |
|---|
flush |
| Method Detail |
|---|
public int getBatchSize()
Batcher
getBatchSize in interface Batcherpublic void setBatchSize(int batchSize)
Batcher
setBatchSize in interface BatcherbatchSize - Size of the batch, or 0 to disable automatic flushingpublic final boolean isClosed()
DbControl or if the DbControl
it is attached to has been closed.
isClosed in interface BatcherBatcher.close()
public final void close()
throws BaseException
BatcherDbControl to connect to the database
will automatically be closed when the DbControl is closed.
close in interface BatcherBaseException - If there is an errorBatcher.isClosed(),
Batcher.flush()
public final DbControl getDbControl()
throws ConnectionClosedException
DbControl object that currently manages this batcher.
ConnectionClosedException - If the batcher is connected to a closed
DbControl object, or not connected at all
public final SessionControl getSessionControl()
throws ConnectionClosedException
SessionControl object that manages this item.
ConnectionClosedException - If the item is connected to a closed
DbControl object, or not connected at all
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||