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 |
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