Package hec.model
Interface DataObject
- All Superinterfaces:
AbstractDataListener,DataChangeListener,DataStruct,EventListener,LockListener,Serializable
- All Known Implementing Classes:
AbstractDataObject,AbstractDBFObject,ModifiedTime,SimpleAnnotationDbfObject,SimpleCustomUserTypeObject,SimpleParentDbfObject,UnmodifiableDataObject
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd a DataObjectReference to this objectvoidadd an observer to myselfvoidcopyInto(DataObject doObj) copy DataObject do's data into this onevoidcopyInto(DataStruct dsObj) copy the DataStructs data into this DataObjectvoidvoiddelete()Call when a data object is deleted.getData()return this objects datareturn this DataObject's DataListreturn this DataObject's DescriptiongetName()return this DataObject's Nameget an array of this DataObject's DataObjectReferences.get this objects parent Dataobject (if any)intvoidfor counts of DataObjectReferences refering to this objectbooleanisLoaded()has this objects data been loaded?booleansee if this object's data has been modifiedbooleanloadData()load this DataObject's DatabooleanloadId()load this DataObject's ID infovoidtell this object whether someone else has it's data locked or notvoidreload()reload this objects datavoidremoveObjectReference(int pos) remove a DataObjectReference to this objectvoidremove an observer from my list of observersbooleansave()save this DataObjectbooleansetDataList(CommonDataList dataList) set this DataObject's DataListvoidsetDescription(String description) set this DataObject's descriptionbooleansetId(long id) set this DataObject's IDvoidsetModified(boolean mod) set whether this object has been modifiedvoidset this DataObject's NamevoidsetParent(DataObject parent) set this objects parent DataObjectMethods inherited from interface hec.event.DataChangeListener
DataChangedMethods inherited from interface hec.model.DataStruct
getIdMethods inherited from interface hec.event.LockListener
locked
-
Method Details
-
setId
boolean setId(long id) set this DataObject's ID -
getName
String getName()return this DataObject's Name -
getDescription
String getDescription()return this DataObject's Description -
setName
set this DataObject's Name -
setDescription
set this DataObject's description -
loadId
boolean loadId()load this DataObject's ID info -
loadData
boolean loadData()load this DataObject's Data -
reload
void reload()reload this objects data -
locked
tell this object whether someone else has it's data locked or not -
save
boolean save()save this DataObject -
setDataList
set this DataObject's DataList -
getDataList
CommonDataList getDataList()return this DataObject's DataList -
copyInto
copy DataObject do's data into this one -
copyInto
copy the DataStructs data into this DataObject -
getObjectReferences
DataObjectReference[] getObjectReferences()get an array of this DataObject's DataObjectReferences. -
addObjectReference
add a DataObjectReference to this object -
removeObjectReference
void removeObjectReference(int pos) remove a DataObjectReference to this object -
addObserver
add an observer to myself -
removeObserver
remove an observer from my list of observers -
setModified
void setModified(boolean mod) set whether this object has been modified -
isModified
boolean isModified()see if this object's data has been modified -
getData
DataStruct getData()return this objects data -
isLoaded
boolean isLoaded()has this objects data been loaded? -
setParent
set this objects parent DataObject -
getParent
DataObject getParent()get this objects parent Dataobject (if any) -
incrementRefCnt
void incrementRefCnt()for counts of DataObjectReferences refering to this object -
decrementRefCnt
void decrementRefCnt() -
getRefCnt
int getRefCnt() -
delete
void delete()Call when a data object is deleted. Allows the object to clean up after itself
-