lass="blockList">
<h4>setRollbackOnly</h4>
<pre>void&nbsp;setRollbackOnly()
              throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a>,
                     <a href="../../jakarta/transaction/SystemException.html" title="class in jakarta.transaction">SystemException</a></pre>
<div class="block">Modify the transaction associated with the target object such that
 the only possi