Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.store.jdbc
Class TransactionContext

    java.lang.Object
      org.codehaus.activemq.store.jdbc.TransactionContext

public class TransactionContext
extends java.lang.Object

Helps keep track of the current transaction/JDBC connection.

Version:
  $Revision: 1.1 $

Constructor Summary
`TransactionContext()`

Method Summary
`static java.sql.Connection` | `getConnection()`
`static int` | `getTransactionCount()`
`static java.sql.Connection` | `popConnection()` Pops off the current Connection from the stack
`static void` | `pushConnection(java.sql.Connection connection)` Sets the current transaction, possibly including nesting

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TransactionContext

    public TransactionContext()

Method Detail

### getConnection

    public static java.sql.Connection getConnection()

  Returns:
    the current thread local connection that is associated with the JMS transaction or null if there is no transaction in progress.

### popConnection

    public static java.sql.Connection popConnection()

  Pops off the current Connection from the stack

### pushConnection

    public static void pushConnection(java.sql.Connection connection)

  Sets the current transaction, possibly including nesting

### getTransactionCount

    public static int getTransactionCount()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.