lumis.portal.transaction.spi
Interface ITransactionSPI

Package class diagram package ITransactionSPI
All Superinterfaces:
ITransaction
All Known Implementing Classes:
TransactionHibernate

public interface ITransactionSPI
extends ITransaction

The transaction interface used internally by the portal framework. ITransaction implementations must also implement this interface.

Since:
4.2.0

Method Summary
 long getCreationTimeMillis()
          Returns the time this transaction object was created.
 Throwable getTransactionCreationTrace()
          Returns a throwable used just as a trace to the transaction creation.
 void setTransactionProviderCallback(ITransactionProviderCallback callback)
          Sets the transaction provider callback object to be used by this transaction.
 
Methods inherited from interface lumis.portal.transaction.ITransaction
getByConnectionId
 
Methods inherited from interface lumis.util.ITransaction
addObserver, begin, commit, dispose, getAttribute, isActive, removeAttribute, removeObserver, rollback, setAttribute
 

Method Detail

setTransactionProviderCallback

void setTransactionProviderCallback(ITransactionProviderCallback callback)
Sets the transaction provider callback object to be used by this transaction.

Parameters:
callback - the callback object.
Since:
4.2.0

getTransactionCreationTrace

Throwable getTransactionCreationTrace()
Returns a throwable used just as a trace to the transaction creation. Instead of manually manipulating StackTraceElement, using a throwable also provides higher-level methods.

Since:
6.1.0
See Also:
Throwable.getStackTrace()

getCreationTimeMillis

long getCreationTimeMillis()
Returns the time this transaction object was created.

Returns:
the difference, measured in milliseconds, between this object creation time and midnight, January 1, 1970 UTC.
Since:
6.2.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.