|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use PersistenceException | |
gate | |
gate.corpora | |
gate.creole | |
gate.gui | |
gate.persist | |
gate.security | |
gate.util.persistence |
Uses of PersistenceException in gate |
Methods in gate that throw PersistenceException | |
void |
LanguageResource.setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
LanguageResource.sync()
Save: synchonise the in-memory image of the LR with the persistent image. |
static DataStore |
Factory.openDataStore(String dataStoreClassName,
String storageUrl)
Open an existing DataStore. |
static DataStore |
Factory.createDataStore(String dataStoreClassName,
String storageUrl)
Create a new DataStore and open it. |
protected static DataStore |
Factory.instantiateDataStore(String dataStoreClassName,
String storageUrl)
Instantiate a DataStore (not open or created). |
static AccessController |
Factory.createAccessController(String jdbcURL)
Creates and opens a new AccessController (if not available in the pool). |
void |
DataStore.setStorageUrl(String storageUrl)
Set the URL as string for the underlying storage mechanism. |
void |
DataStore.create()
Create a new data store. |
void |
DataStore.open()
Open a connection to the data store. |
void |
DataStore.close()
Close the data store. |
void |
DataStore.delete()
Delete the data store. |
void |
DataStore.delete(String lrClassName,
Object lrId)
Delete a resource from the data store. |
void |
DataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent image. |
void |
DataStore.setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store. |
LanguageResource |
DataStore.adopt(LanguageResource lr,
SecurityInfo secInfo)
Adopt a resource for persistence. |
LanguageResource |
DataStore.getLr(String lrClassName,
Object lrId)
Get a resource from the persistent store. |
List |
DataStore.getLrTypes()
Get a list of the types of LR that are present in the data store. |
List |
DataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present. |
List |
DataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present. |
String |
DataStore.getLrName(Object lrId)
Get the name of an LR from its ID. |
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 |
SecurityInfo |
DataStore.getSecurityInfo(LanguageResource lr)
get security information for LR . |
void |
DataStore.setSecurityInfo(LanguageResource lr,
SecurityInfo si)
set security information for LR . |
boolean |
DataStore.lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store. |
void |
DataStore.unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store. |
Uses of PersistenceException in gate.corpora |
Methods in gate.corpora that throw PersistenceException | |
void |
SerialCorpusImpl.setDataStore(DataStore dataStore)
|
Uses of PersistenceException in gate.creole |
Methods in gate.creole that throw PersistenceException | |
void |
AbstractLanguageResource.setDataStore(DataStore dataStore)
Set the data store that this LR lives in. |
void |
AbstractLanguageResource.sync()
Save: synchonise the in-memory image of the LR with the persistent image. |
Uses of PersistenceException in gate.gui |
Methods in gate.gui that throw PersistenceException | |
static Session |
UserGroupEditor.login(AccessController ac,
Component parent)
|
Uses of PersistenceException in gate.persist |
Methods in gate.persist that throw PersistenceException | |
abstract String |
JDBCDataStore.getLrName(Object lrId)
Get the name of an LR from its ID. |
void |
JDBCDataStore.setStorageUrl(String storageUrl)
Set the URL for the underlying storage mechanism. |
void |
JDBCDataStore.create()
Create a new data store. |
void |
JDBCDataStore.open()
Open a connection to the data store. |
void |
JDBCDataStore.close()
Close the data store. |
void |
JDBCDataStore.delete()
Delete the data store. |
abstract void |
JDBCDataStore.delete(String lrClassName,
Object lrId)
Delete a resource from the data store. |
abstract void |
JDBCDataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent image. |
void |
JDBCDataStore.setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store. |
abstract LanguageResource |
JDBCDataStore.adopt(LanguageResource lr,
SecurityInfo secInfo)
Adopt a resource for persistence. |
abstract LanguageResource |
JDBCDataStore.getLr(String lrClassName,
Object lrPersistenceId)
Get a resource from the persistent store. |
abstract List |
JDBCDataStore.getLrTypes()
Get a list of the types of LR that are present in the data store. |
abstract List |
JDBCDataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present. |
abstract List |
JDBCDataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present. |
abstract boolean |
JDBCDataStore.canReadLR(Object lrID)
Checks if the user (identified by the sessionID) has read access to the LR |
abstract boolean |
JDBCDataStore.canWriteLR(Object lrID)
Checks if the user (identified by the sessionID) has write access to the LR |
void |
JDBCDataStore.beginTrans()
--- |
void |
JDBCDataStore.commitTrans()
--- |
void |
JDBCDataStore.rollbackTrans()
--- |
Long |
JDBCDataStore.timestamp()
--- |
void |
JDBCDataStore.deleteSince(Long timestamp)
--- |
void |
JDBCDataStore.setDriver(String driverName)
--- |
abstract String |
JDBCDataStore.readDatabaseID()
--- |
String |
OracleDataStore.getLrName(Object lrId)
Get the name of an LR from its ID. |
void |
OracleDataStore.setStorageUrl(String storageUrl)
Set the URL for the underlying storage mechanism. |
void |
OracleDataStore.create()
Create a new data store. |
void |
OracleDataStore.open()
Open a connection to the data store. |
void |
OracleDataStore.close()
Close the data store. |
void |
OracleDataStore.delete()
Delete the data store. |
void |
OracleDataStore.delete(String lrClassName,
Object lrId)
Delete a resource from the data store. |
private void |
OracleDataStore.deleteDocument(Long lrId)
helper method for delete() never call it directly beause proper events will not be fired |
private void |
OracleDataStore.deleteCorpus(Long lrId)
helper method for delete() never call it directly beause proper events will not be fired |
void |
OracleDataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent image. |
private void |
OracleDataStore._sync(LanguageResource lr,
boolean openNewTrans)
Save: synchonise the in-memory image of the LR with the persistent image. |
void |
OracleDataStore.setAutoSaving(boolean autoSaving)
Set method for the autosaving behaviour of the data store. |
LanguageResource |
OracleDataStore.adopt(LanguageResource lr,
SecurityInfo secInfo)
Adopt a resource for persistence. |
private LanguageResource |
OracleDataStore._adopt(LanguageResource lr,
SecurityInfo secInfo,
boolean openNewTrans)
helper for adopt() |
private Long |
OracleDataStore.createLR(String lrType,
String lrName,
SecurityInfo si,
Long lrParentID)
helper for adopt() never call directly |
private void |
OracleDataStore.updateDocumentContent(Long docContentID,
DocumentContent content)
updates the content of the document if it is binary or a long string (that does not fit into VARCHAR2) |
private Document |
OracleDataStore.createDocument(Document doc,
SecurityInfo secInfo)
helper for adopt creates a LR of type Document |
private Document |
OracleDataStore.createDocument(Document doc,
Long corpusID,
SecurityInfo secInfo)
helper for adopt creates a LR of type Document |
private void |
OracleDataStore.createAnnotationSet(Long lrID,
AnnotationSet aset)
creates an entry for annotation set in the database |
private Corpus |
OracleDataStore.createCorpus(Corpus corp,
SecurityInfo secInfo)
creates a LR of type Corpus |
LanguageResource |
OracleDataStore.getLr(String lrClassName,
Object lrPersistenceId)
Get a resource from the persistent store. |
List |
OracleDataStore.getLrTypes()
Get a list of the types of LR that are present in the data store. |
List |
OracleDataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present. |
List |
OracleDataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present. |
Long |
OracleDataStore.timestamp()
Gets a timestamp marker that will be used for all changes made in the database so that subsequent calls to deleteSince() could restore (partly) the database state as it was before the update. |
boolean |
OracleDataStore.canReadLR(Object lrID)
Checks if the user (identified by the sessionID) has read access to the LR |
boolean |
OracleDataStore.canWriteLR(Object lrID)
Checks if the user (identified by the sessionID) has write access to the LR |
private boolean |
OracleDataStore.canAccessLR(Long lrID,
int mode)
Checks if the user (identified by the sessionID) has some access (read/write) to the LR |
private Long |
OracleDataStore._createFeature(Long entityID,
int entityType,
String key,
Object value,
int valueType)
creates a feature of the specified type/value/valueType/key for the specified entity Entity is one of: LR, Annotation Value types are: boolean, int, long, string, float, Object |
private void |
OracleDataStore._updateFeatureLOB(Long featID,
Object value,
int valueType)
updates the value of a feature where the value is string (>4000 bytes, stored as CLOB) or Object (stored as BLOB) |
private void |
OracleDataStore.createFeature(Long entityID,
int entityType,
String key,
Object value)
creates a feature with the specified type/key/value for the specified entity entitties are either LRs ot Annotations valid values are: boolean, int, long, string, float, Object, boolean List, int List, long List, string List, float List, Object List |
private void |
OracleDataStore.createFeatures(Long entityID,
int entityType,
FeatureMap features)
helper metod iterates a FeatureMap and creates all its features in the database |
SecurityInfo |
OracleDataStore.getSecurityInfo(LanguageResource lr)
get security information for LR . |
void |
OracleDataStore.setSecurityInfo(LanguageResource lr,
SecurityInfo si)
set security information for LR . |
private DatabaseCorpusImpl |
OracleDataStore.readCorpus(Object lrPersistenceId)
helper method for getLR - reads LR of type Corpus |
private DatabaseDocumentImpl |
OracleDataStore.readDocument(Object lrPersistenceId)
helper method for getLR - reads LR of type Document |
private FeatureMap |
OracleDataStore.readFeatures(Long entityID,
int entityType)
reads the features of an entity entities are of type LR or Annotation |
String |
OracleDataStore.readDatabaseID()
reads the ID of the database every database should have unique string ID |
private void |
OracleDataStore.syncDocument(Document doc)
helper for sync() - saves a Document in the database |
private void |
OracleDataStore._syncLR(Long lrID,
String newName)
helper for sync() NEVER call directly |
private void |
OracleDataStore._syncDocument(Document doc)
helper for sync() - never call directly |
private void |
OracleDataStore._syncDocumentContent(Document doc)
helper for sync() - never call directly |
private void |
OracleDataStore._syncAddedAnnotations(Document doc,
AnnotationSet as,
Collection changes)
helper for sync() - never call directly |
private void |
OracleDataStore._syncChangedAnnotations(Document doc,
AnnotationSet as,
Collection changes)
helper for sync() - never call directly |
private void |
OracleDataStore._syncRemovedAnnotations(Document doc,
AnnotationSet as,
Collection changes)
helper for sync() - never call directly |
private void |
OracleDataStore._syncAnnotationSets(Document doc,
Collection removedSets,
Collection addedSets)
helper for sync() - never call directly |
private void |
OracleDataStore._syncAnnotations(Document doc)
helper for sync() - never call directly |
private void |
OracleDataStore._syncFeatures(LanguageResource lr)
helper for sync() - never call directly |
private void |
OracleDataStore.syncCorpus(Corpus corp)
helper for sync() - saves a Corpus in the database |
boolean |
OracleDataStore.lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store. |
private boolean |
OracleDataStore._lockLr(Long lrID)
helper for lockLR() never call directly |
void |
OracleDataStore.unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store. |
private User |
OracleDataStore.getLockingUser(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store. |
private User |
OracleDataStore.getLockingUser(Long lrID)
Releases the exlusive lock on a resource from the persistent store. |
private void |
OracleDataStore.addDocumentToCorpus(Long docID,
Long corpID)
adds document to corpus in the database if the document is already part of the corpus nothing changes |
void |
SerialDataStore.setStorageUrl(String urlString)
Set the URL for the underlying storage mechanism. |
void |
SerialDataStore.create()
Create a new data store. |
void |
SerialDataStore.delete()
Delete the data store. |
void |
SerialDataStore.delete(String lrClassName,
Object lrPersistenceId)
Delete a resource from the data store. |
LanguageResource |
SerialDataStore.adopt(LanguageResource lr,
SecurityInfo secInfo)
Adopt a resource for persistence. |
void |
SerialDataStore.open()
Open a connection to the data store. |
void |
SerialDataStore.close()
Close the data store. |
void |
SerialDataStore.sync(LanguageResource lr)
Save: synchonise the in-memory image of the LR with the persistent image. |
LanguageResource |
SerialDataStore.getLr(String lrClassName,
Object lrPersistenceId)
Get a resource from the persistent store. |
List |
SerialDataStore.getLrTypes()
Get a list of the types of LR that are present in the data store. |
List |
SerialDataStore.getLrIds(String lrType)
Get a list of the IDs of LRs of a particular type that are present. |
List |
SerialDataStore.getLrNames(String lrType)
Get a list of the names of LRs of a particular type that are present. |
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 |
SecurityInfo |
SerialDataStore.getSecurityInfo(LanguageResource lr)
get security information for LR . |
void |
SerialDataStore.setSecurityInfo(LanguageResource lr,
SecurityInfo si)
set security information for LR . |
boolean |
SerialDataStore.lockLr(LanguageResource lr)
Try to acquire exlusive lock on a resource from the persistent store. |
void |
SerialDataStore.unlockLr(LanguageResource lr)
Releases the exlusive lock on a resource from the persistent store. |
static void |
DBHelper.cleanup(ResultSet rs)
--- |
static void |
DBHelper.cleanup(Statement stmt)
--- |
void |
DatabaseDataStore.beginTrans()
--- |
void |
DatabaseDataStore.commitTrans()
--- |
void |
DatabaseDataStore.rollbackTrans()
--- |
Long |
DatabaseDataStore.timestamp()
--- |
void |
DatabaseDataStore.deleteSince(Long timestamp)
--- |
void |
DatabaseDataStore.setDriver(String driverName)
--- |
Constructors in gate.persist that throw PersistenceException | |
SerialDataStore(String storageDirUrl)
Construction requires a file protocol URL pointing to the storage directory used for the serialised classes. |
Uses of PersistenceException in gate.security |
Methods in gate.security that throw PersistenceException | |
void |
Group.setName(String newName,
Session s)
--- |
void |
Group.addUser(Long userID,
Session s)
--- |
void |
Group.addUser(User usr,
Session s)
--- |
void |
Group.removeUser(Long userID,
Session s)
--- |
void |
Group.removeUser(User usr,
Session s)
--- |
void |
GroupImpl.setName(String newName,
Session s)
--- |
void |
GroupImpl.addUser(Long userID,
Session s)
--- |
void |
GroupImpl.addUser(User usr,
Session s)
--- |
void |
GroupImpl.removeUser(Long userID,
Session s)
--- |
void |
GroupImpl.removeUser(User usr,
Session s)
--- |
void |
AccessControllerImpl.open()
--- |
void |
AccessControllerImpl.close()
--- |
Group |
AccessControllerImpl.findGroup(String name)
--- |
Group |
AccessControllerImpl.findGroup(Long id)
--- |
User |
AccessControllerImpl.findUser(String name)
--- |
User |
AccessControllerImpl.findUser(Long id)
--- |
Group |
AccessControllerImpl.createGroup(String name,
Session s)
--- |
void |
AccessControllerImpl.deleteGroup(Long id,
Session s)
--- |
void |
AccessControllerImpl.deleteGroup(Group grp,
Session s)
--- |
User |
AccessControllerImpl.createUser(String name,
String passwd,
Session s)
--- |
void |
AccessControllerImpl.deleteUser(User usr,
Session s)
--- |
void |
AccessControllerImpl.deleteUser(Long id,
Session s)
--- |
Session |
AccessControllerImpl.login(String usr_name,
String passwd,
Long prefGroupID)
--- |
List |
AccessControllerImpl.listGroups()
-- |
List |
AccessControllerImpl.listUsers()
-- |
private boolean |
AccessControllerImpl.canDeleteGroup(Group grp)
|
private boolean |
AccessControllerImpl.canDeleteUser(User usr)
|
private void |
AccessControllerImpl.init()
|
Group |
AccessController.findGroup(String name)
--- |
Group |
AccessController.findGroup(Long id)
--- |
User |
AccessController.findUser(String name)
--- |
User |
AccessController.findUser(Long id)
--- |
Group |
AccessController.createGroup(String name,
Session s)
--- |
void |
AccessController.deleteGroup(Long id,
Session s)
--- |
void |
AccessController.deleteGroup(Group grp,
Session s)
--- |
User |
AccessController.createUser(String name,
String passwd,
Session s)
--- |
void |
AccessController.deleteUser(User usr,
Session s)
--- |
void |
AccessController.deleteUser(Long id,
Session s)
--- |
Session |
AccessController.login(String usr_name,
String passwd,
Long prefGroupID)
--- |
void |
AccessController.open()
--- |
void |
AccessController.close()
--- |
List |
AccessController.listUsers()
-- |
List |
AccessController.listGroups()
-- |
void |
UserImpl.setName(String newName,
Session s)
changes user name Only members of the ADMIN group have sufficient privileges. |
void |
UserImpl.setPassword(String newPass,
Session s)
changes user password Only members of the ADMIN group and the user himself have sufficient privileges |
void |
User.setName(String newName,
Session s)
changes user name Only members of the ADMIN group have sufficient privileges. |
void |
User.setPassword(String newPass,
Session s)
changes user password Only members of the ADMIN group and the user himself have sufficient privileges |
Uses of PersistenceException in gate.util.persistence |
Methods in gate.util.persistence that throw PersistenceException | |
void |
ResourcePersistence.extractDataFromSource(Object source)
|
Object |
ResourcePersistence.createObject()
|
void |
PRPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
PRPersistence.createObject()
Creates a new object from the data contained. |
void |
LRPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
LRPersistence.createObject()
Creates a new object from the data contained. |
void |
DSPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
DSPersistence.createObject()
Creates a new object from the data contained. |
void |
ControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
ControllerPersistence.createObject()
Creates a new object from the data contained. |
void |
SerialAnalyserControllerPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
SerialAnalyserControllerPersistence.createObject()
Creates a new object from the data contained. |
void |
JDBCDSPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
JDBCDSPersistence.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. |
Object |
MapPersistence.createObject()
Creates a new object from the data contained. |
void |
LanguageAnalyserPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
LanguageAnalyserPersistence.createObject()
Creates a new object from the data contained. |
void |
Persistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
Persistence.createObject()
Creates a new object from the data contained. |
void |
CorpusPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
CorpusPersistence.createObject()
Creates a new object from the data contained. |
(package private) static Serializable |
PersistenceManager.getPersistentRepresentation(Object target)
Recursively traverses the provided object and replaces it and all its contents with the appropiate persistent equivalent classes. |
(package private) static Object |
PersistenceManager.getTransientRepresentation(Object target)
|
static void |
PersistenceManager.saveObjectToFile(Object obj,
File file)
|
static Object |
PersistenceManager.loadObjectFromFile(File file)
|
static Class |
PersistenceManager.registerPersitentEquivalent(Class transientType,
Class persistentType)
Sets the persistent equivalent type to be used to (re)store a given type of transient objects. |
void |
PersistenceManager.SlashDevSlashNull.extractDataFromSource(Object source)
Does nothing |
Object |
PersistenceManager.SlashDevSlashNull.createObject()
Returns null |
void |
PersistenceManager.URLHolder.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
PersistenceManager.URLHolder.createObject()
Creates a new object from the data contained. |
void |
CollectionPersistence.extractDataFromSource(Object source)
Populates this Persistence with the data that needs to be stored from the original source object. |
Object |
CollectionPersistence.createObject()
Creates a new object from the data contained. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |