Community
Participate
Working Groups
- Add exportChanges(OutputStream) and importChanges(InputStream) to CDOTransaction. - Provide a CDOFileSystemTransaction that redefines the commit() semantics to use exportChanges() - Add push() to CDOFileSystemTransaction.
Created attachment 154649 [details] Patch v1 - just a temp save
Created attachment 154683 [details] Patch v2 - initial tests passing Open issues: - CDOPushSavepoint - rollback()
Created attachment 154813 [details] Patch v3 I added CDOResource.OPTION_SAVE_OVERRIDE_TRANSACTION. Used by CDOEditor.
Created attachment 154894 [details] Patch v4 - depends on patch in bug 298334
Committed to HEAD
Created attachment 155093 [details] A test case for the push transaction I confirm that I'm the only author and I apply the EPL.
Committed test case to HEAD
Created attachment 155094 [details] Some other tests for the addition of new objects in a push transaction I confirm that I'm the only author and I apply the EPL.
Created attachment 155095 [details] Some other test cases regarding objects removal I confirm that I'm the only author and I apply the EPL.
Example: File file = new File("changes.bin"); file.delete(); // Open a new transaction and wrap it in a push transaction CDOPushTransaction transaction1 = new CDOPushTransaction(session.openTransaction(), file); // Commit to local file transaction1.commit(); transaction1.close(); // Open a new push transaction and load changes from local file CDOPushTransaction transaction2 = new CDOPushTransaction(session.openTransaction(), file); // Push changes to the repository transaction2.push(); transaction2.close();
Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/