public class HasEntry extends java.lang.Object implements GroupSelector, Configurable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO |
static java.lang.String |
UNKNOWN |
static java.lang.String |
YES |
Constructor and Description |
---|
HasEntry() |
Modifier and Type | Method and Description |
---|---|
void |
abort(long id,
java.io.Serializable o)
Called by TransactionManager upon transaction commit.
|
void |
commit(long id,
java.io.Serializable o)
Called by TransactionManager upon transaction commit.
|
int |
prepare(long id,
java.io.Serializable o)
Called by TransactionManager in preparation for a transaction
|
java.lang.String |
select(long id,
java.io.Serializable ser) |
void |
setConfiguration(Configuration cfg) |
public static final java.lang.String YES
public static final java.lang.String NO
public static final java.lang.String UNKNOWN
public int prepare(long id, java.io.Serializable o)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic java.lang.String select(long id, java.io.Serializable ser)
select
in interface GroupSelector
id
- transaction idser
- transaction contextpublic void commit(long id, java.io.Serializable o)
TransactionParticipant
commit
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void abort(long id, java.io.Serializable o)
TransactionParticipant
abort
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void setConfiguration(Configuration cfg)
setConfiguration
in interface Configurable
cfg
- Configuration object