Package hec.io
Interface DataStorage
- All Known Implementing Classes:
AbstractDataStorage,DBFDataStorage
public interface DataStorage
-
Method Summary
Modifier and TypeMethodDescriptionlongaddNewObject(Object obj) add a new object to the DataStore return its id.addNewObject2(Object obj) add a new object to the DataStore and return a copy of the object with it's id filled inbooleanbackupData(String backupDir, DataObject obj) callNativeMethod(Object obj) call a native method in the DataStore.voidcompress()Compress the data file by removing any objects marked for deletion.Object[]getDataObjectIdList(String objClass) return a list of the DataObjectslongintgetObjectList(String objClass) booleaninit()initialize this DataStorageloadObject(long id, String objClass) load and return the object identified by idloadObject(String name, String objClass) load and return the object identified by namebooleanreload()booleanremoveObject(long[] objId, String objClass) booleanremoveObject(long objId, String objClass) remove an objectbooleansave()booleanstoreObject(Object obj) store obj out to permanent storagevoid
-
Method Details
-
init
boolean init()initialize this DataStorage -
loadObject
load and return the object identified by id -
loadObject
load and return the object identified by name -
storeObject
store obj out to permanent storage -
removeObject
remove an object -
removeObject
-
callNativeMethod
call a native method in the DataStore. -
addNewObject
add a new object to the DataStore return its id. -
addNewObject2
add a new object to the DataStore and return a copy of the object with it's id filled in -
getDataObjectIdList
return a list of the DataObjects -
getObjectList
-
save
boolean save() -
workspaceClosing
void workspaceClosing() -
backupData
-
reload
boolean reload() -
getLastModifiedTime
long getLastModifiedTime() -
getFilename
String getFilename() -
getObjectCount
int getObjectCount() -
compress
void compress()Compress the data file by removing any objects marked for deletion.
-