Package | Description |
---|---|
gate | |
gate.corpora | |
gate.creole | |
gate.persist | |
gate.util.persistence |
Modifier and Type | Method and Description |
---|---|
LanguageResource |
DataStore.adopt(LanguageResource lr)
Adopt a resource for persistence.
|
boolean |
DataStore.canReadLR(Object lrID)
Checks if the user (identified by the sessionID)
has read access to the LR
|
boolean |
DataStore.canWriteLR(Object lrID)
Checks if the user (identified by the sessionID)
has write access to the LR
|
void |
DataStore.close()
Close the data store.
|
void |
DataStore.create()
Create a new data store.
|
static DataStore |
Factory.createDataStore(String dataStoreClassName,
String storageUrl)
Create a new DataStore and open it.
|
void |
DataStore.delete()
Delete the data store.
|
void |
DataStore.delete(String lrClassName,
Object lrId)
Delete a resource from the data store.
|
List |
DataStore.findLrIds(List constraints)
Get a list of LRs that satisfy some set or restrictions
|
List |
DataStore.findLrIds(List constraints,
String lrType)
Get a list of LRs that satisfy some set or restrictions and are
of a particular type
|
LanguageResource |
DataStore.getLr(String lrClassName,
Object lrId)
Get a resource from the persistent store.
|
List<String> |
DataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present.
|
String |
DataStore.getLrName(Object lrId)
Get the name of an LR from its ID.
|
List<String> |
DataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present.
|
List<String> |
DataStore.getLrTypes()
Get a list of the types of LR that are present in the data store.
|
LanguageResource |
LanguageResource.getParent()
Returns the parent LR of this LR.
|
protected static DataStore |
Factory.instantiateDataStore(String dataStoreClassName,
String storageUrl)
Instantiate a DataStore (not open or created).
|
boolean |
DataStore.lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store.
|
void |
DataStore.open()
Open a connection to the data store.
|
static DataStore |
Factory.openDataStore(String dataStoreClassName,
String storageUrl)
Open an existing DataStore.
|
void |
DataStore.setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store.
|
void |
LanguageResource.setDataStore(DataStore dataStore)
Set the data store that this LR lives in.
|
void |
LanguageResource.setParent(LanguageResource parentLR)
Sets the parent LR of this LR.
|
void |
DataStore.setStorageUrl(String storageUrl)
Set the URL as string for the underlying storage mechanism.
|
void |
LanguageResource.sync()
Save: synchonise the in-memory image of the LR with the persistent
image.
|
void |
DataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent
image.
|
void |
DataStore.unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store.
|
Modifier and Type | Method and Description |
---|---|
void |
DocumentImpl.setDataStore(DataStore dataStore) |
void |
SerialCorpusImpl.setDataStore(DataStore dataStore) |
Modifier and Type | Method and Description |
---|---|
LanguageResource |
AbstractLanguageResource.getParent()
Returns the parent LR of this LR.
|
void |
AbstractLanguageResource.setDataStore(DataStore dataStore)
Set the data store that this LR lives in.
|
void |
AbstractLanguageResource.setParent(LanguageResource parentLR)
Sets the parent LR of this LR.
|
void |
AbstractLanguageResource.sync()
Save: synchonise the in-memory image of the LR with the persistent
image.
|
Modifier and Type | Method and Description |
---|---|
LanguageResource |
SerialDataStore.adopt(LanguageResource lr)
Adopt a resource for persistence.
|
boolean |
SerialDataStore.canReadLR(Object lrID)
Checks if the user (identified by the sessionID)
has read access to the LR
|
boolean |
SerialDataStore.canWriteLR(Object lrID)
Checks if the user (identified by the sessionID)
has write access to the LR
|
void |
LuceneDataStoreImpl.close()
Close the data store.
|
void |
SerialDataStore.close()
Close the data store.
|
void |
SerialDataStore.create()
Create a new data store.
|
void |
SerialDataStore.delete()
Delete the data store.
|
void |
LuceneDataStoreImpl.delete(String lrClassName,
Object lrPersistenceId)
Delete a resource from the data store.
|
void |
SerialDataStore.delete(String lrClassName,
Object lrPersistenceId)
Delete a resource from the data store.
|
List |
SerialDataStore.findLrIds(List constraints)
Get a list of LRs that satisfy some set or restrictions
|
List |
SerialDataStore.findLrIds(List constraints,
String lrType)
Get a list of LRs that satisfy some set or restrictions and are
of a particular type
|
LanguageResource |
LuceneDataStoreImpl.getLr(String lrClassName,
Object lrPersistenceId) |
LanguageResource |
SerialDataStore.getLr(String lrClassName,
Object lrPersistenceId) |
List<String> |
SerialDataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present.
|
List<String> |
SerialDataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present.
|
List<String> |
SerialDataStore.getLrTypes()
Get a list of the types of LR that are present in the data store.
|
boolean |
SerialDataStore.lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store.
|
void |
LuceneDataStoreImpl.open()
Open a connection to the data store.
|
void |
SerialDataStore.open()
Open a connection to the data store.
|
void |
SerialDataStore.setStorageUrl(String urlString)
Set the URL for the underlying storage mechanism.
|
void |
LuceneDataStoreImpl.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent
image.
|
void |
SerialDataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent
image.
|
void |
SerialDataStore.unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store.
|
Constructor and Description |
---|
SerialDataStore(String storageDirUrl)
Construction requires a file protocol URL
pointing to the storage directory used for
the serialised classes.
|
Modifier and Type | Method and Description |
---|---|
Object |
MapPersistence.createObject()
Creates a new object from the data contained.
|
Object |
AnalyserRunningStrategyPersistence.createObject() |
Object |
PRPersistence.createObject()
Creates a new object from the data contained.
|
Object |
PersistenceManager.SlashDevSlashNull.createObject()
Returns null
|
Object |
PersistenceManager.RRPersistence.createObject() |
Object |
PersistenceManager.URLHolder.createObject()
Creates a new object from the data contained.
|
Object |
UnconditionalRunningStrategyPersistence.createObject() |
Object |
LRPersistence.createObject()
Creates a new object from the data contained.
|
Object |
SerialAnalyserControllerPersistence.createObject()
Creates a new object from the data contained.
|
Object |
ControllerPersistence.createObject()
Creates a new object from the data contained.
|
Object |
CollectionPersistence.createObject()
Creates a new object from the data contained.
|
Object |
LanguageAnalyserPersistence.createObject()
Creates a new object from the data contained.
|
Object |
CorpusPersistence.createObject()
Creates a new object from the data contained.
|
Object |
ConditionalControllerPersistence.createObject()
Creates a new object from the data contained.
|
Object |
DSPersistence.createObject()
Creates a new object from the data contained.
|
Object |
ConditionalSerialAnalyserControllerPersistence.createObject()
Creates a new object from the data contained.
|
Object |
Persistence.createObject()
Creates a new object from the data contained.
|
void |
MapPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
AnalyserRunningStrategyPersistence.extractDataFromSource(Object source) |
void |
PRPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
PersistenceManager.SlashDevSlashNull.extractDataFromSource(Object source)
Does nothing
|
void |
PersistenceManager.RRPersistence.extractDataFromSource(Object source) |
void |
PersistenceManager.URLHolder.extractDataFromSource(Object source) |
void |
UnconditionalRunningStrategyPersistence.extractDataFromSource(Object source) |
void |
LRPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
SerialAnalyserControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
ControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
CollectionPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
LanguageAnalyserPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
CorpusPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
ConditionalControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
DSPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
ConditionalSerialAnalyserControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
void |
Persistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the
original source object.
|
static Serializable |
PersistenceManager.getPersistentRepresentation(Object target)
Recursively traverses the provided object and replaces it and all
its contents with the appropriate persistent equivalent classes.
|
static Object |
PersistenceManager.getTransientRepresentation(Object target) |
static Object |
PersistenceManager.getTransientRepresentation(Object target,
String containingControllerName,
Map<String,Map<String,Object>> initParamOverrides) |
static Object |
PersistenceManager.loadObjectFromFile(File file) |
static Object |
PersistenceManager.loadObjectFromUri(URI uri) |
static Object |
PersistenceManager.loadObjectFromUrl(URL url) |
static Class<?> |
PersistenceManager.registerPersistentEquivalent(Class<?> transientType,
Class<?> persistentType)
Sets the persistent equivalent type to be used to (re)store a given
type of transient objects.
|
static void |
PersistenceManager.saveObjectToFile(Object obj,
File file)
Save the given object to the file, without using $gatehome$.
|
static void |
PersistenceManager.saveObjectToFile(Object obj,
File file,
boolean usegatehome,
boolean warnaboutgatehome)
Save the given object to the given file.
|
static URI |
PersistenceManager.URLHolder.unpackPersistentRepresentation(URI context,
String persistent) |
Copyright © 2024 GATE. All rights reserved.