|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Models all sorts of data storage.
Method Summary | |
void |
addDatastoreListener(DatastoreListener l)
Registers a new DatastoreListener with this datastore |
LanguageResource |
adopt(LanguageResource lr)
Adopt a resource for persistence. |
void |
close()
Close the data store. |
void |
create()
Create a new data store. |
void |
delete()
Delete the data store. |
void |
delete(String lrClassName,
String lrId)
Delete a resource from the data store. |
LanguageResource |
getLr(String lrClassName,
String dataStoreInstanceId)
Get a resource from the persistent store. |
List |
getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present. |
String |
getLrName(String lrId)
Get the name of an LR from its ID. |
List |
getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present. |
List |
getLrTypes()
Get a list of the types of LR that are present in the data store. |
URL |
getStorageUrl()
Get the URL for the underlying storage mechanism. |
boolean |
isAutoSaving()
Get the autosaving behaviour of the LR. |
void |
open()
Open a connection to the data store. |
void |
removeDatastoreListener(DatastoreListener l)
Removes a a previously registered DatastoreListener
from the list listeners for this datastore |
void |
setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store. |
void |
setStorageUrl(URL storageUrl)
Set the URL for the underlying storage mechanism. |
void |
sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent image. |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, getName, setFeatures, setName |
Method Detail |
public void setStorageUrl(URL storageUrl) throws PersistenceException
public URL getStorageUrl()
public void create() throws PersistenceException, UnsupportedOperationException
public void open() throws PersistenceException
public void close() throws PersistenceException
public void delete() throws PersistenceException, UnsupportedOperationException
public void delete(String lrClassName, String lrId) throws PersistenceException
lrId
- a data-store specific unique identifier for the resourcelrClassName
- class name of the type of resourcepublic void sync(LanguageResource lr) throws PersistenceException
public void setAutoSaving(boolean autoSaving) throws UnsupportedOperationException
public boolean isAutoSaving()
public LanguageResource adopt(LanguageResource lr) throws PersistenceException
public LanguageResource getLr(String lrClassName, String dataStoreInstanceId) throws PersistenceException
public List getLrTypes() throws PersistenceException
public List getLrIds(String lrType) throws PersistenceException
public List getLrNames(String lrType) throws PersistenceException
public String getLrName(String lrId) throws PersistenceException
public void addDatastoreListener(DatastoreListener l)
DatastoreListener
with this datastorepublic void removeDatastoreListener(DatastoreListener l)
DatastoreListener
from the list listeners for this datastore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |