com.metamatrix.metadata.runtime.spi
Interface RuntimeBaseConnector

All Superinterfaces:
TransactionInterface
All Known Subinterfaces:
MetaBaseConnector
All Known Implementing Classes:
JDBCConnector

public interface RuntimeBaseConnector
extends TransactionInterface


Method Summary
 void commit()
          Make all changes made during this transaction's lifetime and release any data source locks currently held by the associated Connection.
 void rollback()
          Drops all changes made during this transaction's lifetime and release any data source locks currently held by the associated Connection.
 
Methods inherited from interface com.metamatrix.common.connection.TransactionInterface
close, isClosed, isReadonly
 

Method Detail

commit

void commit()
            throws ManagedConnectionException
Make all changes made during this transaction's lifetime and release any data source locks currently held by the associated Connection. A transaction can be committed or rolled back any number of times throughout its lifetime, and throughout its lifetime the transaction is guaranteed to have the same connection.

Specified by:
commit in interface TransactionInterface
Throws:
ManagedConnectionException - if an error occurred within or during communication with the associated connection.

rollback

void rollback()
              throws ManagedConnectionException
Drops all changes made during this transaction's lifetime and release any data source locks currently held by the associated Connection. Once this method is executed, the transaction (after rolling back) becomes invalid, and the connection referenced by this transaction is returned to the pool.

Calling this method on a read-only transaction is unneccessary (and discouraged, since the implementation does nothing in that case anyway).

Specified by:
rollback in interface TransactionInterface
Throws:
ManagedConnectionException - if an error occurred within or during communication with the associated connection.


Copyright © 2009. All Rights Reserved.