|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.sgs.impl.service.transaction.TransactionImpl0951
public final class TransactionImpl0951
Provides an implementation of Transaction. Changes made: The equals method was overwritten because of wrapped transaction classes
Constructor Summary | |
---|---|
TransactionImpl0951(long tid,
long timeout,
com.sun.sgs.profile.ProfileCollector collector)
Creates an instance with the specified transaction ID, timeout, and collector. |
Method Summary | |
---|---|
void |
abort(Throwable cause)
|
void |
checkTimeout()
|
void |
commit()
Commits this transaction |
boolean |
equals(Object object)
Returns true if the argument is an instance of the same
class with the same transaction ID. |
Throwable |
getAbortCause()
|
long |
getCreationTime()
|
byte[] |
getId()
|
long |
getTimeout()
|
int |
hashCode()
Returns a hash code value for this object. |
boolean |
isAborted()
|
void |
join(com.sun.sgs.service.TransactionParticipant participant)
|
String |
toString()
Returns a string representation of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransactionImpl0951(long tid, long timeout, com.sun.sgs.profile.ProfileCollector collector)
Method Detail |
---|
public byte[] getId()
getId
in interface com.sun.sgs.service.Transaction
public long getCreationTime()
getCreationTime
in interface com.sun.sgs.service.Transaction
public long getTimeout()
getTimeout
in interface com.sun.sgs.service.Transaction
public void checkTimeout()
checkTimeout
in interface com.sun.sgs.service.Transaction
public void join(com.sun.sgs.service.TransactionParticipant participant)
join
in interface com.sun.sgs.service.Transaction
public void abort(Throwable cause)
abort
in interface com.sun.sgs.service.Transaction
public boolean isAborted()
isAborted
in interface com.sun.sgs.service.Transaction
public Throwable getAbortCause()
getAbortCause
in interface com.sun.sgs.service.Transaction
public String toString()
toString
in class Object
public boolean equals(Object object)
true
if the argument is an instance of the same
class with the same transaction ID.
equals
in class Object
true
if the argument equals this instance,
otherwise false
public int hashCode()
hashCode
in class Object
public void commit() throws Exception
commit
in interface IPdsTransaction
com.sun.sgs.app.TransactionNotActiveException
- if the transaction has been
aborted
com.sun.sgs.app.TransactionAbortedException
- if a call to prepare
on a transaction
participant aborts the transaction but does not throw an
exception
IllegalStateException
- if prepare
has been called on any
transaction participant and abort
has
not been called on the transaction
Exception
- any exception thrown when calling prepare
on
a participantTransactionHandle.commit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |