DatabaseDataStore.java
01 /*
02  *  DatabaseDataStore.java
03  *
04  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
05  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06  *
07  *  This file is part of GATE (see http://gate.ac.uk/), and is free
08  *  software, licenced under the GNU Library General Public License,
09  *  Version 2, June 1991 (in the distribution as file licence.html,
10  *  and also available at http://gate.ac.uk/gate/licence.html).
11  *
12  *  Marin Dimitrov, 18/Sep/2001
13  *
14  *  $Id: DatabaseDataStore.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15  */
16 
17 
18 package gate.persist;
19 
20 import gate.DataStore;
21 
22 public interface DatabaseDataStore extends DataStore {
23 
24   /** --- */
25   public void beginTrans()
26     throws PersistenceException,UnsupportedOperationException;
27 
28 
29   /** --- */
30   public void commitTrans()
31     throws PersistenceException,UnsupportedOperationException;
32 
33   /** --- */
34   public void rollbackTrans()
35     throws PersistenceException,UnsupportedOperationException;
36 
37   /** --- */
38   public Long timestamp()
39     throws PersistenceException;
40 
41   /** --- */
42   public void deleteSince(Long timestamp)
43     throws PersistenceException;
44 
45   /** --- */
46 /*  public void setDriver(String driverName)
47     throws PersistenceException;
48 */
49   /** --- */
50   public String getDatabaseID();
51 
52 }