| org.datashare.PersistenceInterface
PersistenceInterface | public interface PersistenceInterface (Code) | | this interface shall be implemented by the class that provides the ability to save/retrieve
any data that is to be persisted by DataShare.
author: Charles Wood version: 1.0 |
Method Summary | |
void | delete(String table, String searchString) | int | findCount(String table, String searchString) | boolean | initialize() must be called first, initializes any required databases/tables, etc. | String | save(String table, Hashtable properties) | void | saveFunctionDataToDisk(String ownerKeyString, SessionInfo si, ChannelInfo ci, String fileExtension, byte[] fileContents, String mimeType) THIS IS ADS SPECIFIC
saves the file on the server's disk drive. | Enumeration | searchForUserObjects(String table, String searchString) Returns an Enumeration of Objects, the value of which is set to the 'userObject' field of the
properties attribute that was used to create the persisted object. | String | update(String table, String key, Object object) |
initialize | boolean initialize()(Code) | | must be called first, initializes any required databases/tables, etc.
The database is ready to use after a successful call to this method.
true if successful, false otherwise. |
saveFunctionDataToDisk | void saveFunctionDataToDisk(String ownerKeyString, SessionInfo si, ChannelInfo ci, String fileExtension, byte[] fileContents, String mimeType)(Code) | | THIS IS ADS SPECIFIC
saves the file on the server's disk drive.
Parameters: ownerKeyString - the user whose copy folder we wish to save the file into Parameters: si - Session that had this function Parameters: ci - Channel that had this function Parameters: fileExtension - the part of the filename that comes after the '.' Parameters: fileContents - the text file converted to Parameters: mimeType - the type of file to be saved, see second column of ads\config\types.cfg |
searchForUserObjects | Enumeration searchForUserObjects(String table, String searchString)(Code) | | Returns an Enumeration of Objects, the value of which is set to the 'userObject' field of the
properties attribute that was used to create the persisted object. (in English, if you create a
pesisted object with a properties key='userObject', value=(SessionInfo instance), the Enumeration
will return the SessionInfo object as an Object).
|
|
|