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 TypeMethodDescriptionboolean
add a DataObjectReference to this objectvoid
add an observer to myselfvoid
copyInto
(DataObject doObj) copy DataObject do's data into this onevoid
copyInto
(DataStruct dsObj) copy the DataStructs data into this DataObjectvoid
void
delete()
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)int
void
for counts of DataObjectReferences refering to this objectboolean
isLoaded()
has this objects data been loaded?boolean
see if this object's data has been modifiedboolean
loadData()
load this DataObject's Databoolean
loadId()
load this DataObject's ID infovoid
tell this object whether someone else has it's data locked or notvoid
reload()
reload this objects datavoid
removeObjectReference
(int pos) remove a DataObjectReference to this objectvoid
remove an observer from my list of observersboolean
save()
save this DataObjectboolean
setDataList
(CommonDataList dataList) set this DataObject's DataListvoid
setDescription
(String description) set this DataObject's descriptionboolean
setId
(long id) set this DataObject's IDvoid
setModified
(boolean mod) set whether this object has been modifiedvoid
set this DataObject's Namevoid
setParent
(DataObject parent) set this objects parent DataObjectMethods inherited from interface hec.event.DataChangeListener
DataChanged
Methods inherited from interface hec.model.DataStruct
getId
Methods 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
-