gate
Interface LRDBWrapper

All Superinterfaces:
FeatureBearer, LanguageResource, Resource, Serializable
All Known Implementing Classes:
DocumentWrapper, CorpusWrapper

public interface LRDBWrapper
extends LanguageResource

This interface should be implemented by any persistent language resource.


Method Summary
 void beginTransaction()
          Starts a transaction.
 void commit()
          Commits the reads/writes
 void disconnect()
          Disconnects from the Datastore object, that is returns the connection
 void rollback()
          Rolls back all the actions performed since the last beginTransaction call
 
Methods inherited from interface gate.LanguageResource
getDataStore, setDataStore, sync
 
Methods inherited from interface gate.Resource
init
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, getName, setFeatures, setName
 

Method Detail

rollback

public void rollback()
              throws SQLException
Rolls back all the actions performed since the last beginTransaction call

beginTransaction

public void beginTransaction()
                      throws SQLException
Starts a transaction. All database actions should be enclosed between a beginTransaction() and a commit()/rollback() call.

commit

public void commit()
            throws SQLException
Commits the reads/writes

disconnect

public void disconnect()
                throws GateException
Disconnects from the Datastore object, that is returns the connection