home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / prosrc.bin / Connection.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  797 b   |  34 lines

  1. /**
  2.  * @(#)Connection.java
  3.  *
  4.  * Copyright (c) 1997 Symantec Corporation. All Rights Reserved.
  5.  *
  6.  */
  7.  
  8. /**
  9.  * This interface abstracts transaction support from common connection function.
  10.  * Since the binding package is not limited to JDBC or any other data access API,
  11.  * further connection function applicable only to JDBC does not appear in this interface.
  12.  */
  13.  
  14. package symantec.itools.db.beans.binding;
  15.  
  16. public interface Connection
  17. {
  18.     /**
  19.      * Start a transaction.
  20.      */
  21.     public void beginTransaction();
  22.     
  23.     /**
  24.      * End a transaction.
  25.      *
  26.      * @param boolean commit
  27.      */
  28.     public void endTransaction(boolean commit);
  29.  
  30.     /**
  31.      * Is every persistence operation an atomic transaction.
  32.      */
  33.     public boolean isAutoCommit();
  34. }