Package hec.model
Interface DataList
- All Superinterfaces:
CommonDataList
,Serializable
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addDataObject
(DataObject dataObj) add a DataObject to my listboolean
addNewObject
(DataObject dObj) add the DataObject dObj to the datalist and permanent storageaddNewObject2
(DataObject dataObj) add a DataObject to my list returning the DataObjectboolean
return this DataList's DataListContainerlong
Returns the last time of modification in miliseconds;get the workspace model namegetObject
(long objId) return the DataObject in this list that has the id of objIDreturn the string representation of the DataObject class that we holdint
get the DataObject Countget an array of DataObjectsboolean
has this DataList been init'd?boolean
init()
initialize this DataListboolean
has the data in this DataList been changed?iterator()
loadObject
(long id) load an object from the data store for this Data Object idboolean
have the DataList drop all objects and reload them from the data storageboolean
save all the DataObjects in my listvoid
setModelName
(String model) set the workspace model nameboolean
called when the workspace is closingMethods inherited from interface hec.model.CommonDataList
addDataListListener, backupData, backupObjectData, callNativeMethod, findObjectById, getCommonDataListContainer, getGmtOffset, getObject, getObjectArray, getUnitSystem, loadObject, newDataObject, removeAll, removeDataListListener, removeObject, saveObject, setModified
-
Method Details
-
iterator
Iterator iterator() -
getObject
return the DataObject in this list that has the id of objID- Specified by:
getObject
in interfaceCommonDataList
-
loadObject
load an object from the data store for this Data Object id -
saveAll
save all the DataObjects in my list -
getDataListContainer
IDataListContainer getDataListContainer()return this DataList's DataListContainer -
addDataObject
add a DataObject to my list -
hasBeenInitd
boolean hasBeenInitd()has this DataList been init'd? -
init
boolean init()initialize this DataList -
workspaceClosing
boolean workspaceClosing()called when the workspace is closing -
getObjectClass
String getObjectClass()return the string representation of the DataObject class that we hold- Specified by:
getObjectClass
in interfaceCommonDataList
-
setModelName
set the workspace model name -
getModelName
String getModelName()get the workspace model name -
getObjects
DataObject[] getObjects()get an array of DataObjects -
getObjectCount
int getObjectCount()get the DataObject Count- Specified by:
getObjectCount
in interfaceCommonDataList
-
isModified
boolean isModified()has the data in this DataList been changed?- Specified by:
isModified
in interfaceCommonDataList
-
addNewObject
add the DataObject dObj to the datalist and permanent storage- Specified by:
addNewObject
in interfaceCommonDataList
-
addNewObject2
add a DataObject to my list returning the DataObject -
doesExist
- Specified by:
doesExist
in interfaceCommonDataList
-
reload
have the DataList drop all objects and reload them from the data storage -
getLastModifiedTime
long getLastModifiedTime()Returns the last time of modification in miliseconds;
-