public class BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable
BSHMethod
Modifier and Type | Field and Description |
---|---|
protected BSHMethod |
abortMethod |
protected BSHMethod |
commitMethod |
protected BSHMethod |
prepareForAbortMethod |
protected BSHMethod |
prepareMethod |
logger, realm
Constructor and Description |
---|
BSHTransactionParticipant()
Creates a new instance of BSHTransactionParticipant
|
Modifier and Type | Method and Description |
---|---|
void |
abort(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
void |
commit(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
protected void |
defaultAbort(long id,
java.io.Serializable context,
LogEvent ev) |
protected void |
defaultCommit(long id,
java.io.Serializable context,
LogEvent ev) |
protected int |
defaultPrepare(long id,
java.io.Serializable context,
LogEvent ev) |
protected java.lang.Object |
executeMethod(BSHMethod m,
long id,
java.io.Serializable context,
LogEvent evt,
java.lang.String resultName) |
int |
prepare(long id,
java.io.Serializable context)
Called by TransactionManager in preparation for a transaction
|
int |
prepareForAbort(long id,
java.io.Serializable context)
Called by TransactionManager in preparation for a transaction
that is known to abort.
|
void |
setConfiguration(org.jdom2.Element e) |
protected BSHMethod prepareMethod
protected BSHMethod prepareForAbortMethod
protected BSHMethod commitMethod
protected BSHMethod abortMethod
public BSHTransactionParticipant()
public void abort(long id, java.io.Serializable context)
TransactionParticipant
abort
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextprotected void defaultAbort(long id, java.io.Serializable context, LogEvent ev)
public void commit(long id, java.io.Serializable context)
TransactionParticipant
commit
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextprotected void defaultCommit(long id, java.io.Serializable context, LogEvent ev)
public int prepare(long id, java.io.Serializable context)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextpublic int prepareForAbort(long id, java.io.Serializable context)
AbortParticipant
prepareForAbort
in interface AbortParticipant
id
- the Transaction identifiercontext
- transaction contextprotected int defaultPrepare(long id, java.io.Serializable context, LogEvent ev)
public void setConfiguration(org.jdom2.Element e) throws ConfigurationException
setConfiguration
in interface XmlConfigurable
e
- Configuration elementConfigurationException
- on error