lumis.portal.transaction
Interface 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
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.