public class UnmodifiableDataList extends NamedType implements DataList, hec.csinterface.DataCallBack
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
UnmodifiableDataList(hec.rmi.csinterface.RmiDataList rd,
DataListContainer parent,
java.lang.String objClass)
Constructor for the UnmodifiableDataList object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataListListener(hec.event.DataListListener listener)
Adds a feature to the DataListListener attribute of the
UnmodifiableDataList object
|
boolean |
addDataObject(DataObject dataObj)
add a DataObject to my list
|
boolean |
addNewObject(DataObject dObj)
add a new object to the DataStorage and my list
|
DataObject |
addNewObject2(DataObject dObj)
add a new object to the DataStorage and my list
|
boolean |
addNewObjectReference(long ownerId,
java.lang.String newObjClass,
DataObject dObj)
Adds a feature to the NewObjectReference attribute of the
UnmodifiableDataList object
|
boolean |
addNewObjectReference(long ownerId,
java.lang.String newObjClass,
java.lang.String name,
java.lang.String description)
add a new Object Reference to an object in this list
|
boolean |
backupData(java.lang.String backupDir)
back up the data for this data list
|
boolean |
backupObjectData(java.lang.String backupDir,
DataObject dObj)
back up the data for this object
|
java.lang.Object |
callNativeMethod(java.lang.Object obj)
call a native method in the RmiDataList's DataStorage
|
boolean |
doesExist(java.lang.String name)
Returns true of there is a DataObject in this list that has the given
name.
|
DataObject |
findObjectById(long objId,
java.lang.String objClass)
find the DataObject with the ID objId of the class objClass in this
DataList or any of it's sibling's Lists
|
long |
findObjectIdByName(java.lang.String name)
given the DataObject's name return the first DataObject's Id that
matches that name
|
CommonDataListContainer |
getCommonDataListContainer()
Gets the commonDataListContainer attribute of the UnmodifiableDataList
object
|
DataListContainer |
getDataListContainer()
return this DataList's DataListContainer
|
int |
getGmtOffset()
Gets the gmtOffset attribute of the UnmodifiableDataList object
|
long |
getLastModifiedTime()
Gets the lastModifiedTime attribute of the UnmodifiableDataList object
|
java.lang.String |
getModelName()
Gets the modelName attribute of the UnmodifiableDataList object
|
java.util.List |
getNamesList()
return a Vector containing the names of objects that are held.
|
DataObject |
getObject(long objId)
return the DataObject in this list that has the id of objID
|
DataObject |
getObject(long objId,
boolean loadObject)
Gets the object attribute of the UnmodifiableDataList object
|
DataObject |
getObject(java.lang.String name)
Gets the object attribute of the UnmodifiableDataList object
|
DataStruct[] |
getObjectArray()
returns the list of initialized DataObjects.
|
java.lang.String |
getObjectClass()
Gets the objectClass attribute of the UnmodifiableDataList object
|
int |
getObjectCount()
return how many object we have.
|
DataObject[] |
getObjects()
returns the list of initialized DataObjects
|
int |
getUnitSystem()
Gets the unitSystem attribute of the UnmodifiableDataList object
|
boolean |
hasBeenInitd()
has this DataList been init'd?
|
boolean |
init()
initialize this DataList
|
boolean |
isModified()
Gets the modified attribute of the UnmodifiableDataList object
|
java.util.Iterator |
iterator()
Description of the Method
|
java.lang.Object |
loadObject(DataObject dObj)
load an object
|
java.lang.Object |
loadObject(long id)
Description of the Method
|
DataObject |
newDataObject(DataStruct dstruct)
create a new DataObject, initialize it to dstruct and return it.
|
DataObject |
newDataObject(java.lang.String name,
java.lang.String description)
Description of the Method
|
void |
notify(hec.event.AbstractDataEvent ade)
Description of the Method
|
boolean |
register()
register listener with remote side.
|
boolean |
reload(java.lang.String user)
Description of the Method
|
int |
removeAll()
Description of the Method
|
void |
removeDataListListener(hec.event.DataListListener listener)
Description of the Method
|
boolean |
removeObject(long objId)
remove the given object with id
|
boolean |
saveAll(java.lang.String user)
save all the DataObjects in my list
|
boolean |
saveObject(java.lang.Object obj)
save the object back to permanent storage
|
void |
setModelName(java.lang.String model)
Sets the modelName attribute of the UnmodifiableDataList object
|
boolean |
workspaceClosing()
called when the workspace is closing
|
addModifiableListener, clone, compareTo, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isValid, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetModifiedpublic UnmodifiableDataList(hec.rmi.csinterface.RmiDataList rd,
DataListContainer parent,
java.lang.String objClass)
public void setModelName(java.lang.String model)
setModelName in interface DataListpublic CommonDataListContainer getCommonDataListContainer()
getCommonDataListContainer in interface CommonDataListpublic DataListContainer getDataListContainer()
getDataListContainer in interface DataListpublic int getGmtOffset()
getGmtOffset in interface CommonDataListpublic long getLastModifiedTime()
getLastModifiedTime in interface DataListpublic java.lang.String getModelName()
getModelName in interface DataListpublic final boolean isModified()
isModified in interface CommonDataListisModified in interface DataListisModified in interface rma.lang.ModifiableisModified in class NamedTypepublic java.util.List getNamesList()
public DataObject getObject(long objId)
getObject in interface CommonDataListgetObject in interface DataListobjId - Description of the Parameterpublic DataObject getObject(long objId, boolean loadObject)
objId - Description of the ParameterloadObject - Description of the Parameterpublic DataObject getObject(java.lang.String name)
getObject in interface CommonDataListname - Description of the Parameterpublic DataStruct[] getObjectArray()
getObjectArray in interface CommonDataListpublic java.lang.String getObjectClass()
getObjectClass in interface CommonDataListgetObjectClass in interface DataListpublic int getObjectCount()
getObjectCount in interface CommonDataListgetObjectCount in interface DataListpublic DataObject[] getObjects()
getObjects in interface DataListpublic int getUnitSystem()
getUnitSystem in interface CommonDataListpublic boolean hasBeenInitd()
hasBeenInitd in interface DataListpublic boolean init()
public final boolean register()
public DataObject findObjectById(long objId, java.lang.String objClass)
findObjectById in interface CommonDataListobjId - Description of the ParameterobjClass - Description of the Parameterpublic long findObjectIdByName(java.lang.String name)
name - Description of the Parameterpublic final boolean saveObject(java.lang.Object obj)
saveObject in interface CommonDataListobj - Description of the Parameterpublic final boolean saveAll(java.lang.String user)
public final DataObject newDataObject(java.lang.String name, java.lang.String description)
newDataObject in interface CommonDataListname - Description of the Parameterdescription - Description of the Parameterpublic final DataObject newDataObject(DataStruct dstruct)
dstruct - Description of the Parameterpublic final boolean addDataObject(DataObject dataObj)
addDataObject in interface DataListdataObj - The feature to be added to the DataObject attributepublic final boolean addNewObject(DataObject dObj)
addNewObject in interface CommonDataListaddNewObject in interface DataListdObj - The feature to be added to the NewObject attributepublic final DataObject addNewObject2(DataObject dObj)
addNewObject2 in interface DataListdObj - The feature to be added to the NewObject2 attributepublic final boolean addNewObjectReference(long ownerId,
java.lang.String newObjClass,
DataObject dObj)
ownerId - The feature to be added to the NewObjectReference
attributenewObjClass - The feature to be added to the NewObjectReference
attributedObj - The feature to be added to the NewObjectReference
attributepublic final boolean addNewObjectReference(long ownerId,
java.lang.String newObjClass,
java.lang.String name,
java.lang.String description)
ownerId - The feature to be added to the NewObjectReference
attributenewObjClass - The feature to be added to the NewObjectReference
attributename - The feature to be added to the NewObjectReference
attributedescription - The feature to be added to the NewObjectReference
attributepublic final boolean workspaceClosing()
workspaceClosing in interface DataListpublic final void notify(hec.event.AbstractDataEvent ade)
notify in interface hec.csinterface.DataCallBackade - Description of the Parameterpublic java.lang.Object loadObject(DataObject dObj)
loadObject in interface CommonDataListdObj - Description of the Parameterpublic java.lang.Object loadObject(long id)
loadObject in interface DataListid - Description of the Parameterpublic final boolean removeObject(long objId)
removeObject in interface CommonDataListobjId - Description of the Parameterpublic final int removeAll()
removeAll in interface CommonDataListpublic java.lang.Object callNativeMethod(java.lang.Object obj)
callNativeMethod in interface CommonDataListobj - Description of the Parameterpublic java.util.Iterator iterator()
public boolean doesExist(java.lang.String name)
doesExist in interface CommonDataListdoesExist in interface DataListname - - the name to search forpublic final void addDataListListener(hec.event.DataListListener listener)
addDataListListener in interface CommonDataListlistener - The feature to be added to the DataListListener
attributepublic final void removeDataListListener(hec.event.DataListListener listener)
removeDataListListener in interface CommonDataListlistener - Description of the Parameterpublic final boolean backupObjectData(java.lang.String backupDir,
DataObject dObj)
backupObjectData in interface CommonDataListbackupDir - Description of the ParameterdObj - Description of the Parameterpublic final boolean backupData(java.lang.String backupDir)
backupData in interface CommonDataListbackupDir - Description of the Parameter