|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.mb.CurrencySQLLoader
public class CurrencySQLLoader
WRITEME: Document this type.
| Constructor Summary | |
|---|---|
CurrencySQLLoader()
|
|
| Method Summary | |
|---|---|
void |
changed(Currency changedRecord)
accept a notification from a record that it has been changed. |
protected Currency |
from(ResultSet resultSet)
WRITEME: Document this method brpocock@star-hope.org |
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
void |
initializeStorage(String storageURL)
Prepare the RecordLoader for accessing a given storage medium. |
boolean |
isRealtime()
|
Currency |
loadRecord(int id)
Load the record with the given ID number from the storage system |
Currency |
loadRecord(String id)
Load the data record identified from the storage system. |
void |
refresh(Currency record)
Refreshes the record: Re-read the contents of the database into the given record. |
void |
removeRecord(Currency record)
|
void |
saveRecord(Currency record)
Save a record back to the storage system |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CurrencySQLLoader()
| Method Detail |
|---|
public void changed(Currency changedRecord)
RecordLoader
changed in interface RecordLoader<Currency>changedRecord - the record that has been changedRecordLoader.changed(org.starhope.appius.util.DataRecord)
protected Currency from(ResultSet resultSet)
throws DataException,
SQLException
resultSet - WRITEME
SQLException - WRITEME
DataException - WRITEMEpublic String getSubversionRevision()
HasSubversionRevisionReturn the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence.
As an example,the Subversion revision string for this file is "$Rev: 1968 $"
@Override
public String getSubversionRevision () {
return "$Rev: ";
}
getSubversionRevision in interface HasSubversionRevisionHasSubversionRevision.getSubversionRevision()
public void initializeStorage(String storageURL)
throws NotReadyException
RecordLoader
initializeStorage in interface RecordLoader<Currency>storageURL - A URL or identifier of the storage engine. The
syntax is specific to the RecordLoader implementation.
NotReadyException - if the storage engine can't be
initialisedRecordLoader.initializeStorage(java.lang.String)public boolean isRealtime()
isRealtime in interface RecordLoader<Currency>RecordLoader.isRealtime()
public Currency loadRecord(int id)
throws NotFoundException
RecordLoader
loadRecord in interface RecordLoader<Currency>id - the ID number for the record
NotFoundException - if the record can't be loadedRecordLoader.loadRecord(int)
public Currency loadRecord(String id)
throws NotFoundException
RecordLoader
loadRecord in interface RecordLoader<Currency>id - database ID
NotFoundException - if it's not found in the database
RuntimeException - if something else wonky were to happenpublic void removeRecord(Currency record)
removeRecord in interface RecordLoader<Currency>record - Record to be deleted/removedRecordLoader.removeRecord(org.starhope.appius.util.DataRecord)public void saveRecord(Currency record)
RecordLoader
saveRecord in interface RecordLoader<Currency>record - the record to be savedRecordLoader.saveRecord(org.starhope.appius.util.DataRecord)public void refresh(Currency record)
RecordLoaderSimpleDataRecord.checkStale() to try to reload data when
it might have been changed: it's trading elegance and efficiency
for expediency, but eventually, it should be removed.
refresh in interface RecordLoader<Currency>record - the record to be reloaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||