| DatabaseDataStore |

    1   /*
    2    *  DatabaseDataStore.java
    3    *
    4    *  Copyright (c) 1998-2001, The University of Sheffield.
    5    *
    6    *  This file is part of GATE (see http://gate.ac.uk/), and is free
    7    *  software, licenced under the GNU Library General Public License,
    8    *  Version 2, June 1991 (in the distribution as file licence.html,
    9    *  and also available at http://gate.ac.uk/gate/licence.html).
    10   *
    11   *  Marin Dimitrov, 18/Sep/2001
    12   *
    13   *  $Id: DatabaseDataStore.java,v 1.5 2001/10/23 16:06:13 marin Exp $
    14   */
    15
    16
    17  package gate.persist;
    18
    19  import gate.*;
    20
    21  public interface DatabaseDataStore extends DataStore {
    22
    23    /** --- */
    24    public void beginTrans()
    25      throws PersistenceException,UnsupportedOperationException;
    26
    27
    28    /** --- */
    29    public void commitTrans()
    30      throws PersistenceException,UnsupportedOperationException;
    31
    32    /** --- */
    33    public void rollbackTrans()
    34      throws PersistenceException,UnsupportedOperationException;
    35
    36    /** --- */
    37    public Long timestamp()
    38      throws PersistenceException;
    39
    40    /** --- */
    41    public void deleteSince(Long timestamp)
    42      throws PersistenceException;
    43
    44    /** --- */
    45    public void setDriver(String driverName)
    46      throws PersistenceException;
    47
    48    /** --- */
    49    public String getDatabaseID();
    50
    51  }
    52

| DatabaseDataStore |