Package hec.model
Interface DataList
- All Superinterfaces:
CommonDataList,Serializable
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDataObject(DataObject dataObj) add a DataObject to my listbooleanaddNewObject(DataObject dObj) add the DataObject dObj to the datalist and permanent storageaddNewObject2(DataObject dataObj) add a DataObject to my list returning the DataObjectbooleanreturn this DataList's DataListContainerlongReturns 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 holdintget the DataObject Countget an array of DataObjectsbooleanhas this DataList been init'd?booleaninit()initialize this DataListbooleanhas the data in this DataList been changed?iterator()loadObject(long id) load an object from the data store for this Data Object idbooleanhave the DataList drop all objects and reload them from the data storagebooleansave all the DataObjects in my listvoidsetModelName(String model) set the workspace model namebooleancalled 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:
getObjectin 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:
getObjectClassin 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:
getObjectCountin interfaceCommonDataList
-
isModified
boolean isModified()has the data in this DataList been changed?- Specified by:
isModifiedin interfaceCommonDataList
-
addNewObject
add the DataObject dObj to the datalist and permanent storage- Specified by:
addNewObjectin interfaceCommonDataList
-
addNewObject2
add a DataObject to my list returning the DataObject -
doesExist
- Specified by:
doesExistin 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;
-