|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.config.spi.xml.ConfigTransaction
public class ConfigTransaction
Field Summary | |
---|---|
static int |
NO_SERVER_INITIALIZATION_ACTION
|
static int |
SERVER_FORCE_INITIALIZATION
|
static int |
SERVER_INITIALIZATION
|
static int |
SERVER_SHUTDOWN
|
static int |
SERVER_STARTED
|
Constructor Summary | |
---|---|
protected |
ConfigTransaction(TransactionID txnID,
long defaultTimeoutSeconds)
|
Method Summary | |
---|---|
void |
addObjects(java.lang.Object key,
java.lang.Object value)
Call to add an object to the set of objects that changed during this transaction. |
void |
begin(java.lang.String principal,
int reason,
boolean readOnly)
This method is implemented by this class so that the actual lock can be obtained prior to the transaction beginning. |
void |
commit()
Complete the transaction represented by this TransactionObject. |
boolean |
contains(java.lang.Object key)
|
int |
getAction()
|
long |
getBeginTime()
|
java.lang.String |
getLockAcquiredBy()
Returns the name that holds the lock. |
java.lang.Object |
getObject(java.lang.Object key)
Returns the objects that changed during this transaction. |
java.util.Collection |
getObjects()
Returns the objects that changed during this transaction |
int |
getStatus()
Obtain the status of the transaction associated with this object. |
TransactionID |
getTransactionID()
Returns the transaction id that uniquely identifies this transaction |
boolean |
isReadOnly()
|
void |
rollback()
Roll back the transaction represented by this TransactionObject. |
void |
setAction(int actionPerformed)
|
void |
setRollbackOnly()
Modify the transaction such that the only possible outcome of the transaction is to roll back the transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SERVER_INITIALIZATION
public static final int SERVER_SHUTDOWN
public static final int SERVER_FORCE_INITIALIZATION
public static final int SERVER_STARTED
public static final int NO_SERVER_INITIALIZATION_ACTION
Constructor Detail |
---|
protected ConfigTransaction(TransactionID txnID, long defaultTimeoutSeconds)
Method Detail |
---|
public int getStatus()
TransactionException
- if the status for this transaction could
not be obtained.public long getBeginTime()
public void begin(java.lang.String principal, int reason, boolean readOnly) throws TransactionException
TransactionException
public java.lang.String getLockAcquiredBy()
public TransactionID getTransactionID()
public boolean isReadOnly()
public int getAction()
public void setAction(int actionPerformed)
public void setRollbackOnly() throws TransactionException
TransactionException
- if the rollback flag is unable to be set
for this transaction.public void commit() throws TransactionException
TransactionException
- if the transaction is unable to commit.public void rollback() throws TransactionException
TransactionException
- if the transaction is unable to roll back.public java.util.Collection getObjects()
public void addObjects(java.lang.Object key, java.lang.Object value)
key
- is the id of the configurationvalue
- is the configuration containerConfiguration}
public java.lang.Object getObject(java.lang.Object key)
Configurations}.
public boolean contains(java.lang.Object key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |