home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / javax / jts / UserTransaction.class (.txt) < prev   
Encoding:
Java Class File  |  1999-04-09  |  1002 b   |  27 lines

  1. package javax.jts;
  2.  
  3. public interface UserTransaction {
  4.    int STATUS_ACTIVE = 0;
  5.    int STATUS_MARKED_ROLLBACK = 1;
  6.    int STATUS_PREPARED = 2;
  7.    int STATUS_COMMITTED = 3;
  8.    int STATUS_ROLLEDBACK = 4;
  9.    int STATUS_UNKNOWN = 5;
  10.    int STATUS_NO_TRANSACTION = 6;
  11.    int STATUS_PREPARING = 7;
  12.    int STATUS_COMMITTING = 8;
  13.    int STATUS_ROLLING_BACK = 9;
  14.  
  15.    void begin() throws IllegalStateException;
  16.  
  17.    void commit() throws TransactionRolledbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException;
  18.  
  19.    void rollback() throws IllegalStateException, SecurityException;
  20.  
  21.    void setRollbackOnly() throws IllegalStateException;
  22.  
  23.    int getStatus();
  24.  
  25.    void setTransactionTimeout(int var1);
  26. }
  27.