/** * Now methods to return the identities of the currently running * transactions, and those which have terminated but left entries in the * object store. * * WARNING: these methods should be used sparingly since they *must* lock * the transaction database while examining it, and this will prevent any * new transactions from being created/started. * * @param the * type of transaction (active, unresolved) to get data on. * @since JTS 2.1. */ public org.omg.CosTransactions.otid_t[] numberOfTransactions (com.arjuna.ArjunaOTS.TransactionType t) throws Inactive, NoTransaction, SystemException { switch (t.value()) { case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeActive: return activeTransactions(); case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeUnresolved: return unresolvedTransactions(); default: throw new BAD_OPERATION(); } }
/** * Now methods to return the identities of the currently running * transactions, and those which have terminated but left entries in the * object store. * * WARNING: these methods should be used sparingly since they *must* lock * the transaction database while examining it, and this will prevent any * new transactions from being created/started. * * @param the * type of transaction (active, unresolved) to get data on. * @since JTS 2.1. */ public org.omg.CosTransactions.otid_t[] numberOfTransactions (com.arjuna.ArjunaOTS.TransactionType t) throws Inactive, NoTransaction, SystemException { switch (t.value()) { case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeActive: return activeTransactions(); case com.arjuna.ArjunaOTS.TransactionType._TransactionTypeUnresolved: return unresolvedTransactions(); default: throw new BAD_OPERATION(); } }