public abstract class AbstractDBLoadMonitor<R extends DBRecord> extends java.lang.Object implements DBLoadMonitor<R>, Clearable
| Constructor and Description |
|---|
AbstractDBLoadMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the load
|
void |
clear()
Clears the content
|
java.lang.Exception |
getError() |
int |
getRecordCount()
Returns the number of records loaded by this LoadMonitor
|
boolean |
hasError() |
protected abstract boolean |
loadedDBRecord(R record)
Needs to be overridden by subclasses to do something with the loaded record
|
boolean |
loadedRecord(R record)
This default implementation just counts the records loaded.
|
boolean |
wasCancelled()
Tells whether this load has been cancelled
|
public void cancel()
DBLoadMonitorcancel in interface DBLoadMonitor<R extends DBRecord>public boolean wasCancelled()
DBLoadMonitorwasCancelled in interface DBLoadMonitor<R extends DBRecord>public final boolean loadedRecord(R record)
loadedDBRecord(DBRecord).loadedRecord in interface DBLoadMonitor<R extends DBRecord>record - The record just fetched from the ResultSetpublic boolean hasError()
public java.lang.Exception getError()
protected abstract boolean loadedDBRecord(R record) throws java.lang.Exception
java.lang.Exceptionpublic int getRecordCount()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.