org.objectweb.cjdbc.controller.virtualdatabase.protocol
Class SetSavepoint

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedTransactionMarker
      extended byorg.objectweb.cjdbc.controller.virtualdatabase.protocol.SetSavepoint
All Implemented Interfaces:
java.io.Serializable

public class SetSavepoint
extends DistributedTransactionMarker

Execute a distributed set savepoint

Version:
1.0
Author:
Jean-Bernard van Zuylen
See Also:
Serialized Form

Field Summary
private  int numberOfEnabledBackends
           
private  java.lang.String savepointName
           
private static long serialVersionUID
           
private  java.lang.Long tid
           
private  TransactionMarkerMetaData tm
           
 
Fields inherited from class org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedTransactionMarker
transactionId
 
Constructor Summary
SetSavepoint(long transactionId, java.lang.String savepointName)
          Creates a new SetSavepoint message.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object executeCommand(DistributedRequestManager drm)
          Code to be executed by the distributed request manager receiving the command.
 java.lang.String getSavepointName()
          Returns the savepointName value.
 void scheduleCommand(DistributedRequestManager drm)
          Schedule the command (i.e. commit or rollback).
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.cjdbc.controller.virtualdatabase.protocol.DistributedTransactionMarker
getTransactionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

SetSavepoint

public SetSavepoint(long transactionId,
                    java.lang.String savepointName)
Creates a new SetSavepoint message.

Parameters:
transactionId - id of the transaction
savepointName - the savepoint name
Method Detail

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(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(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.