lumis.portal.transaction
Interface ITransaction

Package class diagram package ITransaction
All Superinterfaces:
ITransaction
All Known Subinterfaces:
ITransactionHibernate, ITransactionJdbc, ITransactionSPI
All Known Implementing Classes:
TransactionHibernate

@StableMinor(version="5.5",
             sinceVersion="4.2")
public interface ITransaction
extends ITransaction

Represents a transaction that offers persistence access. An instance of transaction is not thread-safe.

It is important to always call ITransaction.dispose() for a transaction after it is used. To guarantee this, it should be called inside a finally block. (See code example in lumis.portal.transaction).

Since:
4.2.0

Method Summary
 ITransaction getByConnectionId(String id)
          Returns an ITransaction that represents the same transaction but that returns the connection with the given id as default.
 
Methods inherited from interface lumis.util.ITransaction
addObserver, begin, commit, dispose, getAttribute, isActive, removeAttribute, removeObserver, rollback, setAttribute
 

Method Detail

getByConnectionId

ITransaction getByConnectionId(String id)
                               throws DaoException
Description copied from interface: ITransaction
Returns an ITransaction that represents the same transaction but that returns the connection with the given id as default. How the id represents the connection is defined by the concrete class that implements this interface.

Specified by:
getByConnectionId in interface ITransaction
Parameters:
id - the connection id.
Returns:
the ITransaction object.
Throws:
DaoException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.