Search in sources :

Example 11 with TransactionInfo

use of org.jaffa.transaction.services.configdomain.TransactionInfo in project jaffa-framework by jaffa-projects.

the class LockingService method deleteLockingTransactions.

/**
 * Browses all Transactions looking for the locks, as specified in the transaction-configuration for the input dataBean.
 * Deletes the matching Transactions.
 *
 * @param uow      The UOW.
 * @param dataBean Any serializable object.
 * @throws FrameworkException    Indicates some system error.
 * @throws ApplicationExceptions Indicates application error(s).
 */
public static void deleteLockingTransactions(UOW uow, Object dataBean) throws FrameworkException, ApplicationExceptions {
    // Load transaction configuration
    TransactionInfo transactionInfo = ConfigurationService.getInstance().getTransactionInfo(dataBean);
    // Delete the matching Transactions
    deleteLockingTransactions(uow, dataBean, transactionInfo);
}
Also used : TransactionInfo(org.jaffa.transaction.services.configdomain.TransactionInfo)

Aggregations

TransactionInfo (org.jaffa.transaction.services.configdomain.TransactionInfo)11 ContextKey (org.jaffa.loader.ContextKey)5 TransactionField (org.jaffa.transaction.domain.TransactionField)3 Config (org.jaffa.transaction.services.configdomain.Config)3 TypeInfo (org.jaffa.transaction.services.configdomain.TypeInfo)3 UOW (org.jaffa.persistence.UOW)2 Method (java.lang.reflect.Method)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1 ApplicationException (org.jaffa.exceptions.ApplicationException)1 FrameworkException (org.jaffa.exceptions.FrameworkException)1 JaffaMessagingFrameworkException (org.jaffa.modules.messaging.services.JaffaMessagingFrameworkException)1 IllegalPersistentStateRuntimeException (org.jaffa.persistence.exceptions.IllegalPersistentStateRuntimeException)1 PostLoadFailedException (org.jaffa.persistence.exceptions.PostLoadFailedException)1 QueryFailedException (org.jaffa.persistence.exceptions.QueryFailedException)1 Transaction (org.jaffa.transaction.domain.Transaction)1 TransactionPayload (org.jaffa.transaction.domain.TransactionPayload)1