org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class Rollback
java.lang.Object
org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedTransactionMarker
org.objectweb.cjdbc.controller.virtualdatabase.protocol.Rollback
- All Implemented Interfaces:
- java.io.Serializable
- public class Rollback
- extends DistributedTransactionMarker
Execute a distributed rollback.
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
- See Also:
- Serialized Form
Constructor Summary |
Rollback(java.lang.String login,
long transactionId)
Creates a new Rollback message. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
tm
private transient TransactionMarkerMetaData tm
tid
private transient java.lang.Long tid
numberOfEnabledBackends
private transient int numberOfEnabledBackends
transactionStartedOnThisController
private transient boolean transactionStartedOnThisController
login
private java.lang.String login
Rollback
public Rollback(java.lang.String login,
long transactionId)
- Creates a new
Rollback
message.
- Parameters:
login
- login that rollback the transactiontransactionId
- id of the transaction to commit
scheduleCommand
public void scheduleCommand(DistributedRequestManager drm)
throws java.sql.SQLException
- Description copied from class:
DistributedTransactionMarker
- Schedule the command (i.e. commit or rollback). This method blocks until
the command is scheduled.
- Specified by:
scheduleCommand
in class DistributedTransactionMarker
- Parameters:
drm
- a distributed request manager
- Throws:
java.sql.SQLException
- if an error occurs.- See Also:
DistributedTransactionMarker.scheduleCommand(org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager)
executeCommand
public java.lang.Object executeCommand(DistributedRequestManager drm)
throws java.sql.SQLException
- Execution of a distributed rollback command on the specified
DistributedRequestManager
- Specified by:
executeCommand
in class DistributedTransactionMarker
- Parameters:
drm
- the DistributedRequestManager that will execute the rollback
- Returns:
- Boolean.TRUE if everything went fine or a SQLException if an error
occured
- Throws:
java.sql.SQLException
- if an error occurs
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.