diff options
author | Mark Wielaard <mark@klomp.org> | 2002-11-26 22:45:56 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2002-11-26 22:45:56 +0000 |
commit | 2501ab8f3f430b69247c9510d04cf274c9ccf595 (patch) | |
tree | 1c75e9065e1f74de5063756ad2693f48d63a7d86 /javax/transaction | |
parent | 8fe1791a82cf0e4bf9ffa24b374afbb2dc7ec3d2 (diff) | |
download | classpath-2501ab8f3f430b69247c9510d04cf274c9ccf595.tar.gz |
* javax/transaction/HeuristicCommitException.java: New file from gcj,
* javax/transaction/HeuristicMixedException.java: Likewise.
* javax/transaction/HeuristicRollbackException.java: Likewise.
* javax/transaction/NotSupportedException.java: Likewise.
* javax/transaction/RollbackException.java: Likewise.
* javax/transaction/Status.java: Likewise.
* javax/transaction/Synchronization.java: Likewise.
* javax/transaction/SystemException.java: Likewise.
* javax/transaction/Transaction.java: Likewise.
* javax/transaction/TransactionManager.java: Likewise.
* javax/transaction/UserTransaction.java: Likewise.
* javax/transaction/Makefile.am (SUBDIRS): Add transaction.
* javax/transaction/Makefile: New file.
* javax/transaction/.cvsignore: Likewise.
* javax/transaction/xa/Makefile.am: Likewise.
* javax/transaction/xa/.cvsignore: Likewise.
* configure.in (AC_OUTPUT): Add new Makefiles.am.
Diffstat (limited to 'javax/transaction')
-rw-r--r-- | javax/transaction/.cvsignore | 2 | ||||
-rw-r--r-- | javax/transaction/HeuristicCommitException.java | 57 | ||||
-rw-r--r-- | javax/transaction/HeuristicMixedException.java | 57 | ||||
-rw-r--r-- | javax/transaction/HeuristicRollbackException.java | 57 | ||||
-rw-r--r-- | javax/transaction/Makefile.am | 19 | ||||
-rw-r--r-- | javax/transaction/NotSupportedException.java | 57 | ||||
-rw-r--r-- | javax/transaction/RollbackException.java | 57 | ||||
-rw-r--r-- | javax/transaction/Status.java | 58 | ||||
-rw-r--r-- | javax/transaction/Synchronization.java | 50 | ||||
-rw-r--r-- | javax/transaction/SystemException.java | 65 | ||||
-rw-r--r-- | javax/transaction/Transaction.java | 70 | ||||
-rw-r--r-- | javax/transaction/TransactionManager.java | 72 | ||||
-rw-r--r-- | javax/transaction/UserTransaction.java | 64 | ||||
-rw-r--r-- | javax/transaction/xa/.cvsignore | 2 | ||||
-rw-r--r-- | javax/transaction/xa/Makefile.am | 7 |
15 files changed, 694 insertions, 0 deletions
diff --git a/javax/transaction/.cvsignore b/javax/transaction/.cvsignore new file mode 100644 index 000000000..3dda72986 --- /dev/null +++ b/javax/transaction/.cvsignore @@ -0,0 +1,2 @@ +Makefile.in +Makefile diff --git a/javax/transaction/HeuristicCommitException.java b/javax/transaction/HeuristicCommitException.java new file mode 100644 index 000000000..e1ef8e2de --- /dev/null +++ b/javax/transaction/HeuristicCommitException.java @@ -0,0 +1,57 @@ +/* HeuristicCommitException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicCommitException extends Exception +{ + public HeuristicCommitException () + { + super(); + } + + public HeuristicCommitException (String msg) + { + super(msg); + } +} diff --git a/javax/transaction/HeuristicMixedException.java b/javax/transaction/HeuristicMixedException.java new file mode 100644 index 000000000..68986b606 --- /dev/null +++ b/javax/transaction/HeuristicMixedException.java @@ -0,0 +1,57 @@ +/* HeuristicMixedException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicMixedException extends Exception +{ + public HeuristicMixedException () + { + super(); + } + + public HeuristicMixedException (String msg) + { + super(msg); + } +} diff --git a/javax/transaction/HeuristicRollbackException.java b/javax/transaction/HeuristicRollbackException.java new file mode 100644 index 000000000..72ac3b4d4 --- /dev/null +++ b/javax/transaction/HeuristicRollbackException.java @@ -0,0 +1,57 @@ +/* HeuristicRollbackException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicRollbackException extends Exception +{ + public HeuristicRollbackException () + { + super(); + } + + public HeuristicRollbackException (String msg) + { + super(msg); + } +} diff --git a/javax/transaction/Makefile.am b/javax/transaction/Makefile.am new file mode 100644 index 000000000..71d4a5bcb --- /dev/null +++ b/javax/transaction/Makefile.am @@ -0,0 +1,19 @@ +## Input file for automake to generate the Makefile.in used by configure + +SUBDIRS = xa + +EXTRA_DIST = \ +HeuristicCommitException.java \ +HeuristicMixedException.java \ +HeuristicRollbackException.java \ +InvalidTransactionException.java \ +NotSupportedException.java \ +RollbackException.java \ +Status.java \ +Synchronization.java \ +SystemException.java \ +Transaction.java \ +TransactionManager.java \ +TransactionRequiredException.java \ +TransactionRolledbackException.java \ +UserTransaction.java diff --git a/javax/transaction/NotSupportedException.java b/javax/transaction/NotSupportedException.java new file mode 100644 index 000000000..b239574fc --- /dev/null +++ b/javax/transaction/NotSupportedException.java @@ -0,0 +1,57 @@ +/* NotSupportedException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class NotSupportedException extends Exception +{ + public NotSupportedException () + { + super(); + } + + public NotSupportedException (String msg) + { + super(msg); + } +} diff --git a/javax/transaction/RollbackException.java b/javax/transaction/RollbackException.java new file mode 100644 index 000000000..c8706f5bb --- /dev/null +++ b/javax/transaction/RollbackException.java @@ -0,0 +1,57 @@ +/* RollbackException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class RollbackException extends Exception +{ + public RollbackException () + { + super(); + } + + public RollbackException (String msg) + { + super(msg); + } +} diff --git a/javax/transaction/Status.java b/javax/transaction/Status.java new file mode 100644 index 000000000..7068602b1 --- /dev/null +++ b/javax/transaction/Status.java @@ -0,0 +1,58 @@ +/* Status.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public interface Status +{ + public static final int STATUS_ACTIVE = 0; + public static final int STATUS_MARKED_ROLLBACK = 1; + public static final int STATUS_PREPARED = 2; + public static final int STATUS_COMMITTED = 3; + public static final int STATUS_ROLLEDBACK = 4; + public static final int STATUS_UNKNOWN = 5; + public static final int STATUS_NO_TRANSACTION = 6; + public static final int STATUS_PREPARING = 7; + public static final int STATUS_COMMITTING = 8; + public static final int STATUS_ROLLING_BACK = 9; +} diff --git a/javax/transaction/Synchronization.java b/javax/transaction/Synchronization.java new file mode 100644 index 000000000..7a1dfa5ce --- /dev/null +++ b/javax/transaction/Synchronization.java @@ -0,0 +1,50 @@ +/* Synchronization.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public interface Synchronization +{ + public void beforeCompletion(); + public void afterCompletion(int status); +} diff --git a/javax/transaction/SystemException.java b/javax/transaction/SystemException.java new file mode 100644 index 000000000..ed9c9e4f2 --- /dev/null +++ b/javax/transaction/SystemException.java @@ -0,0 +1,65 @@ +/* SystemException.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class SystemException extends Exception +{ + public int errorCode; + + public SystemException () + { + super(); + } + + public SystemException (String msg) + { + super(msg); + } + + public SystemException(int errcode) + { + super (); + this.errorCode = errcode; + } +} diff --git a/javax/transaction/Transaction.java b/javax/transaction/Transaction.java new file mode 100644 index 000000000..11aca0121 --- /dev/null +++ b/javax/transaction/Transaction.java @@ -0,0 +1,70 @@ +/* Transaction.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +import javax.transaction.xa.XAResource; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public interface Transaction +{ + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, SecurityException, SystemException; + + public boolean delistResource(XAResource xaRes, int flag) + throws IllegalStateException, SystemException; + + public boolean enlistResource(XAResource xaRes) + throws RollbackException, IllegalStateException, SystemException; + + public int getStatus() throws SystemException; + + public void registerSynchronization(Synchronization sync) + throws RollbackException, IllegalStateException, SystemException; + + public void rollback() + throws IllegalStateException, SystemException; + + public void setRollbackOnly() + throws IllegalStateException, SystemException; +} diff --git a/javax/transaction/TransactionManager.java b/javax/transaction/TransactionManager.java new file mode 100644 index 000000000..e0501afb1 --- /dev/null +++ b/javax/transaction/TransactionManager.java @@ -0,0 +1,72 @@ +/* TransactionManager.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public interface TransactionManager +{ + public void begin() throws NotSupportedException, SystemException; + + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, SecurityException, + IllegalStateException, SystemException; + + public int getStatus() throws SystemException; + + public Transaction getTransaction() throws SystemException; + + public void resume(Transaction tobj) + throws InvalidTransactionException, IllegalStateException, + SystemException; + + public void rollback() + throws IllegalStateException, SecurityException, SystemException; + + public void setRollbackOnly() + throws IllegalStateException, SystemException; + + public void setTransactionTimeout(int seconds) throws SystemException; + + public Transaction suspend() throws SystemException; +} diff --git a/javax/transaction/UserTransaction.java b/javax/transaction/UserTransaction.java new file mode 100644 index 000000000..fe8aad78a --- /dev/null +++ b/javax/transaction/UserTransaction.java @@ -0,0 +1,64 @@ +/* UserTransaction.java -- + Copyright (C) 2001, 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public interface UserTransaction +{ + public void begin() throws NotSupportedException, SystemException; + + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, SecurityException, + IllegalStateException, SystemException; + + public void rollback() + throws IllegalStateException, SecurityException, SystemException; + + public void setRollbackOnly() + throws IllegalStateException, SystemException; + + public int getStatus() throws SystemException; + + public void setTransactionTimeout(int seconds) throws SystemException; +} diff --git a/javax/transaction/xa/.cvsignore b/javax/transaction/xa/.cvsignore new file mode 100644 index 000000000..3dda72986 --- /dev/null +++ b/javax/transaction/xa/.cvsignore @@ -0,0 +1,2 @@ +Makefile.in +Makefile diff --git a/javax/transaction/xa/Makefile.am b/javax/transaction/xa/Makefile.am new file mode 100644 index 000000000..8d9a18ab3 --- /dev/null +++ b/javax/transaction/xa/Makefile.am @@ -0,0 +1,7 @@ +## Input file for automake to generate the Makefile.in used by configure + +EXTRA_DIST = \ +xa/XAException.java \ +xa/XAResource.java \ +xa/Xid.java + |