Status.java, [...]: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

	* javax/transaction/Status.java,
	javax/transaction/Synchronization.java,
	javax/transaction/Transaction.java,
	javax/transaction/TransactionManager.java,
	javax/transaction/UserTransaction.java,
	javax/transaction/xa/XAResource.java,
	javax/transaction/xa/Xid.java:
	Removing redundant modifiers.

From-SVN: r72365
This commit is contained in:
Michael Koch 2003-10-11 19:18:24 +00:00 committed by Michael Koch
parent 89889f2494
commit 9d82a4b34c
8 changed files with 71 additions and 60 deletions

View File

@ -1,3 +1,14 @@
2003-10-11 Michael Koch <konqueror@gmx.de>
* javax/transaction/Status.java,
javax/transaction/Synchronization.java,
javax/transaction/Transaction.java,
javax/transaction/TransactionManager.java,
javax/transaction/UserTransaction.java,
javax/transaction/xa/XAResource.java,
javax/transaction/xa/Xid.java:
Removing redundant modifiers.
2003-10-11 Michael Koch <konqueror@gmx.de>
* javax/print/attribute/Attribute.java,

View File

@ -45,14 +45,14 @@ package javax.transaction;
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;
int STATUS_ACTIVE = 0;
int STATUS_MARKED_ROLLBACK = 1;
int STATUS_PREPARED = 2;
int STATUS_COMMITTED = 3;
int STATUS_ROLLEDBACK = 4;
int STATUS_UNKNOWN = 5;
int STATUS_NO_TRANSACTION = 6;
int STATUS_PREPARING = 7;
int STATUS_COMMITTING = 8;
int STATUS_ROLLING_BACK = 9;
}

View File

@ -45,6 +45,6 @@ package javax.transaction;
public interface Synchronization
{
public void beforeCompletion();
public void afterCompletion(int status);
void beforeCompletion();
void afterCompletion(int status);
}

View File

@ -47,24 +47,24 @@ import javax.transaction.xa.XAResource;
public interface Transaction
{
public void commit()
void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException, SystemException;
public boolean delistResource(XAResource xaRes, int flag)
boolean delistResource(XAResource xaRes, int flag)
throws IllegalStateException, SystemException;
public boolean enlistResource(XAResource xaRes)
boolean enlistResource(XAResource xaRes)
throws RollbackException, IllegalStateException, SystemException;
public int getStatus() throws SystemException;
int getStatus() throws SystemException;
public void registerSynchronization(Synchronization sync)
void registerSynchronization(Synchronization sync)
throws RollbackException, IllegalStateException, SystemException;
public void rollback()
void rollback()
throws IllegalStateException, SystemException;
public void setRollbackOnly()
void setRollbackOnly()
throws IllegalStateException, SystemException;
}

View File

@ -45,28 +45,28 @@ package javax.transaction;
public interface TransactionManager
{
public void begin() throws NotSupportedException, SystemException;
void begin() throws NotSupportedException, SystemException;
public void commit()
void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException,
IllegalStateException, SystemException;
public int getStatus() throws SystemException;
int getStatus() throws SystemException;
public Transaction getTransaction() throws SystemException;
Transaction getTransaction() throws SystemException;
public void resume(Transaction tobj)
void resume(Transaction tobj)
throws InvalidTransactionException, IllegalStateException,
SystemException;
public void rollback()
void rollback()
throws IllegalStateException, SecurityException, SystemException;
public void setRollbackOnly()
void setRollbackOnly()
throws IllegalStateException, SystemException;
public void setTransactionTimeout(int seconds) throws SystemException;
void setTransactionTimeout(int seconds) throws SystemException;
public Transaction suspend() throws SystemException;
Transaction suspend() throws SystemException;
}

View File

@ -45,20 +45,20 @@ package javax.transaction;
public interface UserTransaction
{
public void begin() throws NotSupportedException, SystemException;
void begin() throws NotSupportedException, SystemException;
public void commit()
void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException,
IllegalStateException, SystemException;
public void rollback()
void rollback()
throws IllegalStateException, SecurityException, SystemException;
public void setRollbackOnly()
void setRollbackOnly()
throws IllegalStateException, SystemException;
public int getStatus() throws SystemException;
int getStatus() throws SystemException;
public void setTransactionTimeout(int seconds) throws SystemException;
void setTransactionTimeout(int seconds) throws SystemException;
}

View File

@ -44,26 +44,26 @@ package javax.transaction.xa;
public 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;
int TMENDRSCAN = 8388608;
int TMFAIL = 536870912;
int TMJOIN = 2097152;
int TMNOFLAGS = 0;
int TMONEPHASE = 1073741824;
int TMRESUME = 134217728;
int TMSTARTRSCAN = 16777216;
int TMSUCCESS = 67108864;
int TMSUSPEND = 33554432;
int XA_RDONLY = 3;
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;
void commit(Xid xid, boolean onePhase) throws XAException;
void end(Xid xid, int flags) throws XAException;
void forget(Xid xid) throws XAException;
int getTransactionTimeout() throws XAException;
boolean isSameRM(XAResource xares) throws XAException;
int prepare(Xid xid) throws XAException;
Xid[] recover(int flag) throws XAException;
void rollback(Xid xid) throws XAException;
boolean setTransactionTimeout(int seconds) throws XAException;
void start(Xid xid, int flags) throws XAException;
}

View File

@ -44,10 +44,10 @@ package javax.transaction.xa;
public interface Xid
{
public static final int MAXGTRIDSIZE = 64;
public static final int MAXBQUALSIZE = 64;
int MAXGTRIDSIZE = 64;
int MAXBQUALSIZE = 64;
public int getFormatId();
public byte[] getGlobalTransactionId();
public byte[] getBranchQualifier();
int getFormatId();
byte[] getGlobalTransactionId();
byte[] getBranchQualifier();
}