List of usage examples for org.apache.commons.transaction.file FileResourceManager prepareTransaction
public int prepareTransaction(Object txId) throws ResourceManagerException
From source file:de.thorstenberger.examServer.dao.AbstractTransactionalFileIO.java
/** * Commit the changes to the current working directory atomically. * * @param txId/* ww w . j a v a 2s .co m*/ * id of the current transaction */ protected void commitTransaction(final String txId) { final FileResourceManager frm = getFRM(); try { frm.prepareTransaction(txId); frm.commitTransaction(txId); } catch (final ResourceManagerException e) { rollback(txId, e); throw new TaskModelPersistenceException(e); } }