|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.util.TransactionTemplate
public class TransactionTemplate
A helper class for running code with a PersistenceAdapter in a transaction.
| Constructor Summary | |
|---|---|
TransactionTemplate(PersistenceAdapter persistenceAdapter,
ConnectionContext context)
|
|
| Method Summary | |
|---|---|
ConnectionContext |
getContext()
|
PersistenceAdapter |
getPersistenceAdapter()
|
void |
run(Callback task)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionTemplate(PersistenceAdapter persistenceAdapter,
ConnectionContext context)
| Method Detail |
|---|
public void run(Callback task)
throws java.io.IOException
java.io.IOExceptionpublic ConnectionContext getContext()
public PersistenceAdapter getPersistenceAdapter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||