diff options
author | Tom Tromey <tromey@redhat.com> | 2001-10-24 21:39:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-10-24 21:39:24 +0000 |
commit | 6dee3a2320540b9b654d9a5ef7626e90246ffe80 (patch) | |
tree | 77f03cf3fdeebbd2596223d2c7c3196a423c195c /libjava/javax/transaction | |
parent | e1cb83c58069ad5b04dcd161564d159562dd8f25 (diff) | |
download | gcc-6dee3a2320540b9b654d9a5ef7626e90246ffe80.zip gcc-6dee3a2320540b9b654d9a5ef7626e90246ffe80.tar.gz gcc-6dee3a2320540b9b654d9a5ef7626e90246ffe80.tar.bz2 |
Makefile.in: Rebuilt.
2001-10-24 Tom Tromey <tromey@redhat.com>
Warren Levy <warrenl@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (javax_source_files): New macro.
(ordinary_java_source_files): Added javax_source_files.
(libgcj.jar): Search javax for class files.
* javax/naming/LinkException.java (toString): Wrote.
(toString(boolean)): Likewise.
* javax/naming/ldap/InitialLdapContext.java: New file.
* javax/naming/directory/InitialDirContext.java: Wrote.
* javax/naming/spi/NamingManager.java (getPlusPath): Now has
package-private protection.
(getURLContext): Likewise.
(NamingManager): Likewise.
* javax/naming/spi/DirectoryManager.java: New file.
* javax/naming/directory/BasicAttributes.java: New file.
* javax/naming/directory/BasicAttribute.java: New file.
* javax/naming/spi/ResolveResult.java
(ResolveResult(Object,String)): Wrote.
(appendRemainingName): Uncommented body.
(appendRemainingComponent): Likewise.
* javax/naming/ldap/ControlFactory.java: New file.
* javax/naming/directory/AttributeModificationException.java
(toString): Wrote.
* javax/naming/spi/NamingManager.java (NamingManager): New
constructor.
(setInitialContextFactoryBuilder): Wrote.
(getInitialContext): Look in system properties for class name as
well. Use Class.forName().
(getURLContext): Wrote.
(ofb): New field.
(setObjectFactoryBuilder): Wrote.
(getObjectInstance): Wrote.
(getContinuationContext): Wrote.
(getPlusPath): New private method.
(getStateToBind): Wrote.
* javax/naming/CannotProceedException.java: Added missing methods &
fields.
* javax/naming/LinkException.java: Added missing methods & fields.
* javax/naming/ReferralException.java (ReferralException): Made
constructor protected per spec.
Added missing abstract methods.
* javax/naming/directory/Attribute.java: Updated copyright.
* javax/naming/directory/AttributeModificationException.java: Ditto.
* javax/naming/directory/Attributes.java: Ditto.
* javax/naming/directory/DirContext.java: Ditto.
* javax/naming/spi/NamingManager.java: Ditto.
* javax/naming/spi/ResolveResult.java: Added comment.
* javax/naming/directory/Attribute.java: Added missing interface
methods.
* javax/naming/directory/AttributeModificationException.java:
Added missing methods & fields.
* javax/naming/directory/directory/Attributes.java: Added missing
interface methods.
* javax/naming/directory/SearchControls.java: Maded serialized fields
private.
* javax/naming/event/NamingEvent.java: Added comment.
* javax/naming/event/NamingExceptionEvent.java: Maded serialized field
private.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
serialized field private.
* javax/naming/spi/NamingManager.java: Added missing field and stubbed
missing methods.
* javax/naming/directory/DirContext.java: Added missing interface
fields & methods.
* javax/naming/directory/InitialDirContext.java: Stubbed missing
methods.
* javax/naming/directory/ModificationItem.java: New class.
* javax/naming/directory/SearchResult.java: New class.
* javax/naming/directory/SearchControls.java: New class.
* javax/naming/event/EventContext.java: New class.
* javax/naming/event/EventDirContext.java: New class.
* javax/naming/event/NamespaceChangeListener.java: New class.
* javax/naming/event/NamingEvent.java: New class.
* javax/naming/event/NamingExceptionEvent.java: New class.
* javax/naming/event/NamingListener.java: New class.
* javax/naming/event/ObjectChangeListener.java: New class.
* javax/naming/ldap/Control.java: New class.
* javax/naming/ldap/ExtendedRequest.java: New class.
* javax/naming/ldap/ExtendedResponse.java: New class.
* javax/naming/ldap/HasControls.java: New class.
* javax/naming/ldap/LdapContext.java: New class.
* javax/naming/ldap/LdapReferralException.java: New class.
* javax/naming/ldap/UnsolicitedNotification.java: New class.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
* javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
* javax/naming/spi/DirObjectFactory.java: New class.
* javax/naming/spi/DirStateFactory.java: New class.
* javax/naming/spi/ObjectFactoryBuilder.java: New class.
* javax/naming/spi/ResolveResult.java: New class.
* javax/naming/spi/Resolver.java: New class.
* javax/naming/spi/StateFactory.java: New class.
* javax/naming/spi/ObjectFactory.java: Made an interface per spec.
* java/rmi/RemoteException.java: New class.
* javax/transaction/HeuristicCommitException.java: New class.
* javax/transaction/HeuristicMixedException.java: New class.
* javax/transaction/HeuristicRollbackException.java: New class.
* javax/transaction/NotSupportedException.java: New class.
* javax/transaction/RollbackException.java: New class.
* javax/transaction/Status.java: New class.
* javax/transaction/Synchronization.java: New class.
* javax/transaction/SystemException.java: New class.
* javax/transaction/Transaction.java: New class.
* javax/transaction/TransactionManager.java: New class.
* javax/transaction/UserTransaction.java: New class.
* javax/transaction/xa/XAException.java: Added public static fields.
* javax/transaction/xa/XAResource.java: New class.
* javax/transaction/xa/Xid.java: New class.
* javax/naming/CompoundName.java (CompoundName(String)): Reverse
elements if required. Handle case where quote is at end of
string.
* javax/naming/CompoundName.java (CompoundName(String)): Handle
text left at end of parsing.
(toString): Handle empty element at beginning.
* javax/naming/CompositeName.java (toString): Handle empty element
at beginning.
(CompositeName(String)): Handle text left at end of parsing.
Correctly compute boundary condition for quoting.
* javax/naming/CompoundName.java: New file.
* javax/naming/CompositeName.java: New file.
* javax/naming/Binding.java: New file.
* javax/naming/LinkRef.java: New file.
* javax/naming/NameClassPair.java: New file.
* javax/naming/Reference.java (addrs, classFactory,
classFactoryLocation): New fields.
(className): Now protected.
(Reference): New constructors.
(add): Now public. Implemented.
(get(String)): Likewise.
(add(int,RefAddr)): New method.
(clear): Likewise.
(clone): Likewise.
(equals): Likewise.
(get(int)): Likewise.
(getAll): Likewise.
(getFactoryClassLocation): Likewise.
(getFactoryClassName): Likewise.
(hashCode): Likewise.
(remove): Likewise.
(size): Likewise.
(toString): Likewise.
* javax/transaction/xa/XAException.java: New file.
* javax/transaction/TransactionRolledbackException.java: New file.
* javax/transaction/TransactionRequiredException.java: New file.
* javax/transaction/InvalidTransactionException.java: New file.
* javax/naming/directory/SchemaViolationException.java: Use
correct package. Import NamingException.
* javax/naming/directory/NoSuchAttributeException.java,
javax/naming/directory/InvalidSearchFilterException.java,
javax/naming/directory/InvalidSearchControlsException.java,
javax/naming/directory/InvalidAttributesException.java,
javax/naming/directory/InvalidAttributeValueException.java,
javax/naming/directory/InvalidAttributeIdentifierException.java,
javax/naming/directory/AttributeModificationException.java,
javax/naming/directory/AttributeInUseException.java: Likewise.
* javax/naming/directory/InitialDirContext.java (getAttributes):
Stub implementation.
* javax/naming/RefAddr.java (RefAddr): Reindented.
(equals): Renamed and reindented.
* javax/naming/BinaryRefAddr.java (equals): Renamed and
reindented.
Co-Authored-By: Warren Levy <warrenl@redhat.com>
From-SVN: r46474
Diffstat (limited to 'libjava/javax/transaction')
17 files changed, 527 insertions, 0 deletions
diff --git a/libjava/javax/transaction/HeuristicCommitException.java b/libjava/javax/transaction/HeuristicCommitException.java new file mode 100644 index 0000000..0646a23 --- /dev/null +++ b/libjava/javax/transaction/HeuristicCommitException.java @@ -0,0 +1,27 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicCommitException extends java.lang.Exception +{ + public HeuristicCommitException () + { + super(); + } + + public HeuristicCommitException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/HeuristicMixedException.java b/libjava/javax/transaction/HeuristicMixedException.java new file mode 100644 index 0000000..f351da3 --- /dev/null +++ b/libjava/javax/transaction/HeuristicMixedException.java @@ -0,0 +1,27 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicMixedException extends java.lang.Exception +{ + public HeuristicMixedException () + { + super(); + } + + public HeuristicMixedException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/HeuristicRollbackException.java b/libjava/javax/transaction/HeuristicRollbackException.java new file mode 100644 index 0000000..7ad3782 --- /dev/null +++ b/libjava/javax/transaction/HeuristicRollbackException.java @@ -0,0 +1,27 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class HeuristicRollbackException extends java.lang.Exception +{ + public HeuristicRollbackException () + { + super(); + } + + public HeuristicRollbackException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/InvalidTransactionException.java b/libjava/javax/transaction/InvalidTransactionException.java new file mode 100644 index 0000000..f5bb718 --- /dev/null +++ b/libjava/javax/transaction/InvalidTransactionException.java @@ -0,0 +1,29 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +import java.rmi.RemoteException; + +/** + * @author Tom Tromey <tromey@redhat.com> + * @date April 18, 2001 + */ + +public class InvalidTransactionException extends RemoteException +{ + public InvalidTransactionException () + { + super(); + } + + public InvalidTransactionException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/NotSupportedException.java b/libjava/javax/transaction/NotSupportedException.java new file mode 100644 index 0000000..767babb --- /dev/null +++ b/libjava/javax/transaction/NotSupportedException.java @@ -0,0 +1,27 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class NotSupportedException extends java.lang.Exception +{ + public NotSupportedException () + { + super(); + } + + public NotSupportedException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/RollbackException.java b/libjava/javax/transaction/RollbackException.java new file mode 100644 index 0000000..7bc77ee --- /dev/null +++ b/libjava/javax/transaction/RollbackException.java @@ -0,0 +1,27 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class RollbackException extends java.lang.Exception +{ + public RollbackException () + { + super(); + } + + public RollbackException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/Status.java b/libjava/javax/transaction/Status.java new file mode 100644 index 0000000..84f1e7c --- /dev/null +++ b/libjava/javax/transaction/Status.java @@ -0,0 +1,28 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract 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/libjava/javax/transaction/Synchronization.java b/libjava/javax/transaction/Synchronization.java new file mode 100644 index 0000000..046f64d --- /dev/null +++ b/libjava/javax/transaction/Synchronization.java @@ -0,0 +1,20 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface Synchronization +{ + public void beforeCompletion(); + public void afterCompletion(int status); +} diff --git a/libjava/javax/transaction/SystemException.java b/libjava/javax/transaction/SystemException.java new file mode 100644 index 0000000..e279aca --- /dev/null +++ b/libjava/javax/transaction/SystemException.java @@ -0,0 +1,35 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public class SystemException extends java.lang.Exception +{ + public int errorCode; + + public SystemException () + { + super(); + } + + public SystemException (String msg) + { + super(msg); + } + + public SystemException(int errcode) + { + super (); + this.errorCode = errcode; + } +} diff --git a/libjava/javax/transaction/Transaction.java b/libjava/javax/transaction/Transaction.java new file mode 100644 index 0000000..632707c --- /dev/null +++ b/libjava/javax/transaction/Transaction.java @@ -0,0 +1,33 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; +import javax.transaction.xa.XAResource; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface Transaction +{ + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, java.lang.SecurityException, SystemException; + public boolean delistResource(XAResource xaRes, int flag) + throws java.lang.IllegalStateException, SystemException; + public boolean enlistResource(XAResource xaRes) + throws RollbackException, java.lang.IllegalStateException, SystemException; + public int getStatus() throws SystemException; + public void registerSynchronization(Synchronization sync) + throws RollbackException, java.lang.IllegalStateException, SystemException; + public void rollback() + throws java.lang.IllegalStateException, SystemException; + public void setRollbackOnly() + throws java.lang.IllegalStateException, SystemException; +} diff --git a/libjava/javax/transaction/TransactionManager.java b/libjava/javax/transaction/TransactionManager.java new file mode 100644 index 0000000..9f5f57c --- /dev/null +++ b/libjava/javax/transaction/TransactionManager.java @@ -0,0 +1,35 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface TransactionManager +{ + public void begin() throws NotSupportedException, SystemException; + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, java.lang.SecurityException, + java.lang.IllegalStateException, SystemException; + public int getStatus() throws SystemException; + public Transaction getTransaction() throws SystemException; + public void resume(Transaction tobj) + throws InvalidTransactionException, java.lang.IllegalStateException, + SystemException; + public void rollback() + throws java.lang.IllegalStateException, java.lang.SecurityException, + SystemException; + public void setRollbackOnly() + throws java.lang.IllegalStateException, SystemException; + public void setTransactionTimeout(int seconds) throws SystemException; + public Transaction suspend() throws SystemException; +} diff --git a/libjava/javax/transaction/TransactionRequiredException.java b/libjava/javax/transaction/TransactionRequiredException.java new file mode 100644 index 0000000..e845a9f --- /dev/null +++ b/libjava/javax/transaction/TransactionRequiredException.java @@ -0,0 +1,29 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +import java.rmi.RemoteException; + +/** + * @author Tom Tromey <tromey@redhat.com> + * @date April 18, 2001 + */ + +public class TransactionRequiredException extends RemoteException +{ + public TransactionRequiredException () + { + super(); + } + + public TransactionRequiredException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/TransactionRolledbackException.java b/libjava/javax/transaction/TransactionRolledbackException.java new file mode 100644 index 0000000..96dd8dd --- /dev/null +++ b/libjava/javax/transaction/TransactionRolledbackException.java @@ -0,0 +1,29 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +import java.rmi.RemoteException; + +/** + * @author Tom Tromey <tromey@redhat.com> + * @date April 18, 2001 + */ + +public class TransactionRolledbackException extends RemoteException +{ + public TransactionRolledbackException () + { + super(); + } + + public TransactionRolledbackException (String msg) + { + super(msg); + } +} diff --git a/libjava/javax/transaction/UserTransaction.java b/libjava/javax/transaction/UserTransaction.java new file mode 100644 index 0000000..eb02a6c --- /dev/null +++ b/libjava/javax/transaction/UserTransaction.java @@ -0,0 +1,30 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface UserTransaction +{ + public void begin() throws NotSupportedException, SystemException; + public void commit() + throws RollbackException, HeuristicMixedException, + HeuristicRollbackException, java.lang.SecurityException, + java.lang.IllegalStateException, SystemException; + public void rollback() + throws java.lang.IllegalStateException, java.lang.SecurityException, + SystemException; + public void setRollbackOnly() + throws java.lang.IllegalStateException, SystemException; + public int getStatus() throws SystemException; + public void setTransactionTimeout(int seconds) throws SystemException; +} diff --git a/libjava/javax/transaction/xa/XAException.java b/libjava/javax/transaction/xa/XAException.java new file mode 100644 index 0000000..43ede1d --- /dev/null +++ b/libjava/javax/transaction/xa/XAException.java @@ -0,0 +1,60 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction.xa; + +/** + * @author Tom Tromey <tromey@redhat.com> + * @date April 18, 2001 + */ + +public class XAException extends Exception +{ + public int errorCode; + public static final int XA_RBBASE = 100; + public static final int XA_RBROLLBACK = 100; + public static final int XA_RBCOMMFAIL = 101; + public static final int XA_RBDEADLOCK = 102; + public static final int XA_RBINTEGRITY = 103; + public static final int XA_RBOTHER = 104; + public static final int XA_RBPROTO = 105; + public static final int XA_RBTIMEOUT = 106; + public static final int XA_RBTRANSIENT = 107; + public static final int XA_RBEND = 107; + public static final int XA_NOMIGRATE = 9; + public static final int XA_HEURHAZ = 8; + public static final int XA_HEURCOM = 7; + public static final int XA_HEURRB = 6; + public static final int XA_HEURMIX = 5; + public static final int XA_RETRY = 4; + public static final int XA_RDONLY = 3; + public static final int XAER_ASYNC = -2; + public static final int XAER_RMERR = -3; + public static final int XAER_NOTA = -4; + public static final int XAER_INVAL = -5; + public static final int XAER_PROTO = -6; + public static final int XAER_RMFAIL = -7; + public static final int XAER_DUPID = -8; + public static final int XAER_OUTSIDE = -9; + + public XAException () + { + super (); + } + + public XAException (String msg) + { + super (msg); + } + + public XAException (int errcode) + { + super (); + this.errorCode = errcode; + } +} diff --git a/libjava/javax/transaction/xa/XAResource.java b/libjava/javax/transaction/xa/XAResource.java new file mode 100644 index 0000000..226850c --- /dev/null +++ b/libjava/javax/transaction/xa/XAResource.java @@ -0,0 +1,40 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction.xa; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface XAResource +{ + public static final int TMENDRSCAN = 8388608; + public static final int TMFAIL = 536870912; + public static final int TMJOIN = 2097152; + public static final int TMNOFLAGS = 0; + public static final int TMONEPHASE = 1073741824; + public static final int TMRESUME = 134217728; + public static final int TMSTARTRSCAN = 16777216; + public static final int TMSUCCESS = 67108864; + public static final int TMSUSPEND = 33554432; + public static final int XA_RDONLY = 3; + public static final int XA_OK = 0; + + public void commit(Xid xid, boolean onePhase) throws XAException; + public void end(Xid xid, int flags) throws XAException; + public void forget(Xid xid) throws XAException; + public int getTransactionTimeout() throws XAException; + public boolean isSameRM(XAResource xares) throws XAException; + public int prepare(Xid xid) throws XAException; + public Xid[] recover(int flag) throws XAException; + public void rollback(Xid xid) throws XAException; + public boolean setTransactionTimeout(int seconds) throws XAException; + public void start(Xid xid, int flags) throws XAException; +} diff --git a/libjava/javax/transaction/xa/Xid.java b/libjava/javax/transaction/xa/Xid.java new file mode 100644 index 0000000..2edf0c5 --- /dev/null +++ b/libjava/javax/transaction/xa/Xid.java @@ -0,0 +1,24 @@ +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package javax.transaction.xa; + +/** + * @author Warren Levy <warrenl@redhat.com> + * @date May 25, 2001 + */ + +public abstract interface Xid +{ + public static final int MAXGTRIDSIZE = 64; + public static final int MAXBQUALSIZE = 64; + + public int getFormatId(); + public byte[] getGlobalTransactionId(); + public byte[] getBranchQualifier(); +} |