gate.persist
Class PostgresDataStore
java.lang.Object
gate.util.AbstractFeatureBearer
gate.persist.JDBCDataStore
gate.persist.PostgresDataStore
- All Implemented Interfaces:
- CreoleListener, DatabaseDataStore, DataStore, EventListener, FeatureBearer, NameBearer, Serializable
- public class PostgresDataStore
- extends JDBCDataStore
- See Also:
- Serialized Form
Methods inherited from class gate.persist.JDBCDataStore |
addDatastoreListener, adopt, beginTrans, canReadLR, canWriteLR, close, commitTrans, create, datastoreClosed, datastoreCreated, datastoreOpened, delete, delete, deleteSince, getComment, getDatabaseID, getIconName, getLr, getLrIds, getLrName, getLrNames, getLrTypes, getName, getSecurityInfo, getSession, getStorageUrl, isAutoSaving, open, removeDatastoreListener, resourceLoaded, resourceRenamed, resourceUnloaded, rollbackTrans, setAutoSaving, setName, setSession, setStorageUrl, sync, timestamp |
DS_ICON_NAME
public static final String DS_ICON_NAME
- the icon for this resource
- See Also:
- Constant Field Values
PostgresDataStore
public PostgresDataStore()
setSecurityInfo
public void setSecurityInfo(LanguageResource parm1,
SecurityInfo parm2)
throws PersistenceException,
SecurityException
- Description copied from interface:
DataStore
- set security information for LR .
- Throws:
PersistenceException
SecurityException
findLrIds
public List findLrIds(List constraints,
String lrType)
throws PersistenceException
- Description copied from class:
JDBCDataStore
- Get a list of LRs that satisfy some set or restrictions and are
of a particular type
- Specified by:
findLrIds
in interface DataStore
- Specified by:
findLrIds
in class JDBCDataStore
- Throws:
PersistenceException
findLrIds
public List findLrIds(List constraints)
throws PersistenceException
- Description copied from class:
JDBCDataStore
- Get a list of LRs that satisfy some set or restrictions
- Specified by:
findLrIds
in interface DataStore
- Specified by:
findLrIds
in class JDBCDataStore
- Throws:
PersistenceException
unlockLr
public void unlockLr(LanguageResource lr)
throws PersistenceException,
SecurityException
- Releases the exlusive lock on a resource from the persistent store.
- Throws:
PersistenceException
SecurityException
lockLr
public boolean lockLr(LanguageResource lr)
throws PersistenceException,
SecurityException
- Try to acquire exlusive lock on a resource from the persistent store.
Always call unlockLR() when the lock is no longer needed
- Throws:
PersistenceException
SecurityException