Commit Graph

8 Commits

Author SHA1 Message Date
Robert von Burg 930e85fdfe [New] exposing FileDao in Transaction so users can bypass tx 2014-08-23 20:47:37 +02:00
Robert von Burg 40eec73bb1 [Bugfix] fixed missing exception on transaction result on error case 2014-01-10 23:14:17 +01:00
Robert von Burg 6305bdc69f [Minor] caught an NPE when the Transaction fails but no cause is set 2013-12-22 23:03:14 +01:00
Robert von Burg 6bff06669f [Project] Changed all licence references to Apache License 2.0 2013-12-15 13:38:36 +01:00
Robert von Burg 2665aa31b6 [New] implemented a TransactionResult
This allows reflecting on actual changes performed by the transaction if
this is needed by the caller. One use case would be to perform observer
updates after a transaction was completed.
2013-11-14 19:21:49 +01:00
Robert von Burg 87f82e1979 [New] implemented locking for all persistence operations
A LockingTest tests the locking, but still needs to be extended to test
further use cases, but basic locking works.
2013-10-20 01:14:59 +02:00
Robert von Burg bce78769c0 [New] added testing of the *byId() methods
Here i found a conceptual problem where the *byId() methods didn't
properly resolve ObjectRefs and add them to the TX because, we added the
ObjectRefs to the filter, which made the TX resolve PersistenContexts by
the wrong type.

Now we always add the same type of object to the ObjectFilter; the
PersistentContext. This means that when we call ObjectDao.add(T), etc.
we must already create such the context. This helps resolve another
issue at the back of my mind: We don't want to partially commit a TX if
such a basic information as the object's CTX is not available.
2013-10-19 17:43:36 +02:00
Robert von Burg 4c7f0fc460 [Major] implemented new ObjectRef referencing of objects with locking
Locking is not yet implemented, but is now prepared. This is once again
a major rewrite but this has lead to easier use and less if/else
constructs but far more object oriented delegation and double
dispatching where possible
2013-10-15 22:26:58 +02:00
Renamed from src/test/java/ch/eitchnet/xmlpers/test/impl/rewrite/DefaultPersistenceTransaction.java (Browse further)