Java 8 INVALID_TRANSACTION - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 INVALID_TRANSACTION class.

This code example shows how to use the following methods:
 
    public void importTransaction(PropagationContext propagationContext) { 
        if (propagationContext == null) { 
            throw new TRANSACTION_REQUIRED("Transaction required"); 
        } 
        throw new INVALID_TRANSACTION("Transaction cannot be imported"); 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:
 
	// already begun? 
 
	if (_originalTransaction != null) 
	{ 
	    throw new INVALID_TRANSACTION();
	} 
 
	CurrentImple current = OTSImpleManager.current();
 
	_originalTransaction = current.suspend();
 
	if (jtsLogger.logger.isTraceEnabled()) { 
        jtsLogger.logger.trace("TopLevelTransaction::begin - suspend transaction " + _originalTransaction); 
    } 
 
	super.begin(); 
    } 
 
    public synchronized void commit (boolean report_heuristics) throws SystemException, NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction
4
CodeRank
This code example shows how to use the following methods:
public class NotRequired implements OperationTxPolicy, Serializable { 
    public static final OperationTxPolicy INSTANCE = new NotRequired(); 
 
    public void importTransaction(PropagationContext propagationContext) { 
        if (propagationContext != null) { 
            throw new INVALID_TRANSACTION("Transactions cannot be imported, and might also be not allowed for this method"); 
        } 
    } 
} 
4
CodeRank
See Code Examples for Java 8 INVALID_TRANSACTION Methods: