Package hec.model
Interface CommonDataList
- All Known Subinterfaces:
DataList
public interface CommonDataList
Interface shared by client and server side data lists
These methods are restricted to local (non-rmi) access.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataListListener
(DataListListener listener) boolean
addNewObject
(DataObject dObj) add the DataObject dObj to the datalist and permanent storageboolean
backupData
(String backupDir) back up the data for this data listboolean
backupObjectData
(String backupDir, DataObject dObj) back up the data for this objectcallNativeMethod
(Object obj) call a native method in the RmiDataList's DataStorageboolean
findObjectById
(long objId, String objClass) find the DataObject with the ID objId of the class objClass in this DataList or any of it's sibling's Listsint
getObject
(long objId) return the DataObject in this list that has the id of objIDreturn the first DataObject in this list with the name objNameget an array of DataObjectsreturn the string representation of the DataObject class that we holdint
int
boolean
loadObject
(DataObject dObj) load an object from the data store for this DataObjectnewDataObject
(String name, String description) create a new DataObject with the name and descriptionint
Removes all objects from this data list.void
removeDataListListener
(DataListListener listener) boolean
removeObject
(long id) remove the Data Object with the ID idboolean
saveObject
(Object obj) save the object back to permanent storagevoid
setModified
(boolean b)
-
Method Details
-
addDataListListener
-
removeDataListListener
-
doesExist
-
getObjectCount
int getObjectCount() -
findObjectById
find the DataObject with the ID objId of the class objClass in this DataList or any of it's sibling's Lists -
getObject
return the DataObject in this list that has the id of objID -
getObject
return the first DataObject in this list with the name objName -
saveObject
save the object back to permanent storage -
loadObject
load an object from the data store for this DataObject -
removeObject
boolean removeObject(long id) remove the Data Object with the ID id -
removeAll
int removeAll()Removes all objects from this data list. -
getObjectClass
String getObjectClass()return the string representation of the DataObject class that we hold -
callNativeMethod
call a native method in the RmiDataList's DataStorage -
getObjectArray
DataStruct[] getObjectArray()get an array of DataObjects -
newDataObject
create a new DataObject with the name and description -
addNewObject
add the DataObject dObj to the datalist and permanent storage -
backupObjectData
back up the data for this object -
backupData
back up the data for this data list -
setModified
void setModified(boolean b) -
isModified
boolean isModified() -
getCommonDataListContainer
CommonDataListContainer getCommonDataListContainer() -
getUnitSystem
int getUnitSystem() -
getGmtOffset
int getGmtOffset()
-