|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataRecord
A data record of some kind that is instantiated from a backing storage medium (e.g. file, database record, or even an RPC)
Method Summary | |
---|---|
void |
checkStale()
Indicates that a data record is stale and needs to be refreshed |
int |
getCacheableID()
Note that all records must have either a numeric ID ( getCacheableID() or a string identifier (
getCacheableIdent() or both. |
String |
getCacheableIdent()
Note that all records must have either a numeric ID ( getCacheableID() or a string identifier (
getCacheableIdent() or both. |
RecordLoader<? extends DataRecord> |
getRecordLoader()
|
boolean |
isBeingLoaded()
WRITEME: Document this method brpocock@star-hope.org |
void |
markAsLoaded()
WRITEME: Document this method brpocock@star-hope.org |
void |
markAsSaved()
Record the current time as the time last saved |
void |
setRecordLoader(RecordLoader<? extends DataRecord> loader)
|
Methods inherited from interface org.starhope.appius.util.CTime |
---|
getTimeLastChanged, getTimeLastSaved |
Methods inherited from interface org.starhope.util.HasSubversionRevision |
---|
getSubversionRevision |
Methods inherited from interface com.whirlycott.cache.Cacheable |
---|
onRemove, onRetrieve, onStore |
Method Detail |
---|
int getCacheableID() throws NotFoundException
getCacheableID()
or a string identifier (
getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
numeric IDString getCacheableIdent() throws NotFoundException
getCacheableID()
or a string identifier (
getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
string identifierRecordLoader<? extends DataRecord> getRecordLoader()
boolean isBeingLoaded()
void markAsLoaded()
void markAsSaved()
void setRecordLoader(RecordLoader<? extends DataRecord> loader)
loader
- The record loader that should be used to save this
data recordvoid checkStale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |