Package hec.io
Interface DataStorage
- All Known Implementing Classes:
AbstractDataStorage
,DBFDataStorage
public interface DataStorage
-
Method Summary
Modifier and TypeMethodDescriptionlong
addNewObject
(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 inboolean
backupData
(String backupDir, DataObject obj) callNativeMethod
(Object obj) call a native method in the DataStore.void
compress()
Compress the data file by removing any objects marked for deletion.Object[]
getDataObjectIdList
(String objClass) return a list of the DataObjectslong
int
getObjectList
(String objClass) boolean
init()
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 nameboolean
reload()
boolean
removeObject
(long[] objId, String objClass) boolean
removeObject
(long objId, String objClass) remove an objectboolean
save()
boolean
storeObject
(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.
-