com.metamatrix.platform.config.spi.xml
Class ConfigUserTransactionFactory

java.lang.Object
  extended by com.metamatrix.platform.config.spi.xml.ConfigUserTransactionFactory

public class ConfigUserTransactionFactory
extends java.lang.Object


Constructor Summary
ConfigUserTransactionFactory()
          Construct a factory that can be used to create read or write transactions.
 
Method Summary
 ConfigUserTransaction createReadTransaction(java.lang.String principal)
          Create a new instance of a UserTransaction that may be used to read information.
 ConfigUserTransaction createWriteTransaction(java.lang.String principal)
          Create a new instance of a UserTransaction that may be used to write and/or update information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigUserTransactionFactory

public ConfigUserTransactionFactory()
Construct a factory that can be used to create read or write transactions.

Method Detail

createReadTransaction

public ConfigUserTransaction createReadTransaction(java.lang.String principal)
                                            throws TransactionException
Create a new instance of a UserTransaction that may be used to read information. Read transactions do not have a source object associated with them (since they never directly modify data).

Returns:
the new transaction object
Throws:
TransactionException

createWriteTransaction

public ConfigUserTransaction createWriteTransaction(java.lang.String principal)
                                             throws TransactionException
Create a new instance of a UserTransaction that may be used to write and/or update information. The transaction will not have a source object associated with it.

Parameters:
principal - the name to be associated with this transaction
Returns:
the new transaction object
Throws:
TransactionException


Copyright © 2009. All Rights Reserved.