public abstract class AbstractDBFDataStorage extends AbstractDataStorage
| Constructor and Description |
|---|
AbstractDBFDataStorage(hec.rmi.csinterface.RmiDataList parent,
java.lang.String clsType)
Constructor for the DBFDataStorage object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract long |
addNewObject(java.lang.Object obj)
Adds a new object to the end of the DBF file.
|
abstract DataObject |
addNewObject2(java.lang.Object obj)
Adds a new object to the end of the dbf file.
|
abstract boolean |
backupData(java.lang.String backupDir,
DataObject obj)
creats a backup of the dbf file
|
java.lang.Object |
callNativeMethod(java.lang.Object obj)
This method is overridden and returns null.
|
abstract java.lang.Object[] |
getDataObjectIdList(java.lang.String objClass)
Returns a List of data objects that are in this storage
|
java.lang.reflect.Method[] |
getMethodsByName(java.lang.String methodName)
return a list of methods that have the methodName
|
abstract DataStruct[] |
getObjectList(java.lang.String objClass) |
boolean |
init()
This method initializes the DBFStorage Object.
|
abstract java.lang.Object |
loadObject(long id,
java.lang.String objClass)
loads a record from the database into the given data object.
|
abstract java.lang.Object |
loadObject(java.lang.String name,
java.lang.String objClass)
loads and object from the database based on the name of the object
|
abstract boolean |
removeObject(long objId,
java.lang.String objClass)
removes an object from the database.
|
abstract boolean |
save()
Saves the currently loaded record to the database.
|
abstract boolean |
storeObject(java.lang.Object obj)
store obj out to permanent storage
|
void |
workspaceClosing() |
compress, getFilename, getLastModifiedTime, getObjectCount, reload, removeObjectpublic AbstractDBFDataStorage(hec.rmi.csinterface.RmiDataList parent,
java.lang.String clsType)
parent - The reference to the owner data list.public abstract long addNewObject(java.lang.Object obj)
addNewObject in interface DataStorageaddNewObject in class AbstractDataStorageobj - The data object to add to the filepublic abstract DataObject addNewObject2(java.lang.Object obj)
addNewObject2 in interface DataStorageaddNewObject2 in class AbstractDataStorageobj - The object to addpublic abstract boolean backupData(java.lang.String backupDir,
DataObject obj)
backupData in interface DataStoragebackupData in class AbstractDataStoragebackupDir - The backup directory to write toobj - public java.lang.Object callNativeMethod(java.lang.Object obj)
callNativeMethod in interface DataStoragecallNativeMethod in class AbstractDataStorageobj - The object that represents the native method to callpublic abstract java.lang.Object[] getDataObjectIdList(java.lang.String objClass)
objClass - The string representation of the object classpublic java.lang.reflect.Method[] getMethodsByName(java.lang.String methodName)
AbstractDataStoragepublic abstract DataStruct[] getObjectList(java.lang.String objClass)
objClass - public boolean init()
public abstract java.lang.Object loadObject(long id,
java.lang.String objClass)
id - The identifier of the record/object to loadobjClass - The class of the object to loadpublic abstract java.lang.Object loadObject(java.lang.String name,
java.lang.String objClass)
loadObject in interface DataStorageloadObject in class AbstractDataStoragename - The name of the object to loadobjClass - the class of the object to loadpublic abstract boolean removeObject(long objId,
java.lang.String objClass)
removeObject in interface DataStorageremoveObject in class AbstractDataStorageobjId - The object identifier of the object to removeobjClass - The class representation of the object to removepublic abstract boolean save()
save in interface DataStoragesave in class AbstractDataStoragepublic abstract boolean storeObject(java.lang.Object obj)
DataStoragepublic void workspaceClosing()
workspaceClosing in interface DataStorageworkspaceClosing in class AbstractDataStorage