public class TxWorkManager extends Object
| Constructor and Description |
|---|
TxWorkManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addWork(javax.resource.spi.work.Work work,
Transaction tx)
Add the specified work unit to the specified transaction.
|
static javax.resource.spi.work.Work |
getWork(Transaction tx)
Get the work currently associated with the transaction.
|
static boolean |
hasWork(Transaction tx)
Does the transaction have any work associated with it?
|
static void |
removeWork(javax.resource.spi.work.Work work,
Transaction tx)
Remove the specified unit of work from the transaction.
|
public static void addWork(javax.resource.spi.work.Work work,
Transaction tx)
throws javax.resource.spi.work.WorkCompletedException
work - The work to associate with the transaction.tx - The transaction to have associated with the work.javax.resource.spi.work.WorkCompletedException - thrown if there is already work
associated with the transaction.public static void removeWork(javax.resource.spi.work.Work work,
Transaction tx)
work - the work to remove.tx - the transaction the work should be disassociated from.public static boolean hasWork(Transaction tx)
tx - the transaction to check.true if there is work associated with the transaction,
false otherwise.public static javax.resource.spi.work.Work getWork(Transaction tx)
tx - the transaction.null if there is none.Copyright © 2014 JBoss by Red Hat. All rights reserved.