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

Field Summary
static String DS_ICON_NAME
          the icon for this resource
 
Fields inherited from interface gate.DataStore
DATASTORE_FEATURE_NAME, LR_ID_FEATURE_NAME
 
Constructor Summary
PostgresDataStore()
           
 
Method Summary
 List findLrIds(List constraints)
          Get a list of LRs that satisfy some set or restrictions
 List findLrIds(List constraints, String lrType)
          Get a list of LRs that satisfy some set or restrictions and are of a particular type
 boolean lockLr(LanguageResource lr)
          Try to acquire exlusive lock on a resource from the persistent store.
 void setSecurityInfo(LanguageResource parm1, SecurityInfo parm2)
          set security information for LR .
 void unlockLr(LanguageResource lr)
          Releases the exlusive lock on a resource from the persistent store.
 
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
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 

Field Detail

DS_ICON_NAME

public static final String DS_ICON_NAME
the icon for this resource
Constructor Detail

PostgresDataStore

public PostgresDataStore()
Method Detail

setSecurityInfo

public void setSecurityInfo(LanguageResource parm1,
                            SecurityInfo parm2)
                     throws PersistenceException,
                            SecurityException
Description copied from interface: DataStore
set security information for LR .

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
Overrides:
findLrIds in class JDBCDataStore

findLrIds

public List findLrIds(List constraints)
               throws PersistenceException
Description copied from class: JDBCDataStore
Get a list of LRs that satisfy some set or restrictions
Overrides:
findLrIds in class JDBCDataStore

unlockLr

public void unlockLr(LanguageResource lr)
              throws PersistenceException,
                     SecurityException
Releases the exlusive lock on a resource from the persistent store.

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