org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class ReleaseSavepoint
java.lang.Object
org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedTransactionMarker
org.objectweb.cjdbc.controller.virtualdatabase.protocol.ReleaseSavepoint
- All Implemented Interfaces:
- java.io.Serializable
- public class ReleaseSavepoint
- extends DistributedTransactionMarker
Execute a distributed release savepoint
- Version:
- 1.0
- Author:
- Jean-Bernard van Zuylen
- See Also:
- Serialized Form
Constructor Summary |
ReleaseSavepoint(long transactionId,
java.lang.String savepointName)
Creates a new ReleaseSavepoint 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
savepointName
private java.lang.String savepointName
tm
private TransactionMarkerMetaData tm
tid
private java.lang.Long tid
numberOfEnabledBackends
private int numberOfEnabledBackends
ReleaseSavepoint
public ReleaseSavepoint(long transactionId,
java.lang.String savepointName)
- Creates a new
ReleaseSavepoint
message
- Parameters:
transactionId
- the transaction identifiersavepointName
- the savepoint name
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
- Description copied from class:
DistributedTransactionMarker
- Code to be executed by the distributed request manager receiving the
command.
- Specified by:
executeCommand
in class DistributedTransactionMarker
- Parameters:
drm
- a distributed request manager
- Returns:
- an Object to be sent back to the caller
- Throws:
java.sql.SQLException
- if an error occurs.- See Also:
DistributedTransactionMarker.executeCommand(org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager)
getSavepointName
public java.lang.String getSavepointName()
- Returns the savepointName value.
- Returns:
- Returns the savepointName.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class DistributedTransactionMarker
- See Also:
Object.equals(java.lang.Object)
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.