/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
/** * @param xaResourceRecord The record to reassociate. * * @return the XAResource than can be used to commit/rollback the specified * record. */ public XAResource getNewXAResource(XAResourceRecord xaResourceRecord) { return getNewXAResource(xaResourceRecord.getXid()); }
@Test public void testInvalid () throws Exception { XAResourceRecord xares = new XAResourceRecord(); assertEquals(xares.getXid(), null); assertEquals(xares.value(), null); assertEquals(xares.topLevelOnePhaseCommit(), TwoPhaseOutcome.ONE_PHASE_ERROR); assertEquals(xares.topLevelPrepare(), TwoPhaseOutcome.PREPARE_NOTOK); assertEquals(xares.topLevelAbort(), TwoPhaseOutcome.FINISH_ERROR); assertEquals(xares.topLevelCommit(), TwoPhaseOutcome.FINISH_ERROR); }