{
return;
}
// get the persistent entity from the timer
TimerEntity timerEntity = timer.getPersistentState();
// TODO: Now all that bolierplate for tx management (which
// needs to go once we have the timer service "managed")
Transaction previousTx = null;
boolean newTxStarted = false;
try
{
previousTx = this.transactionManager.getTransaction();
// we persist with REQUIRED tx semantics
// if there's no current tx in progress, then create a new one
if (previousTx == null)
{
this.startNewTx();
newTxStarted = true;
}
EntityManager em = this.getCurrentEntityManager();
// merge the state
TimerEntity mergedTimerEntity = em.merge(timerEntity);
// do the actual persistence
em.persist(mergedTimerEntity);
}