Commit Graph

3575 Commits

Author SHA1 Message Date
Robert von Burg f5431e0f0e Initial Commit 2013-10-23 19:55:25 +02:00
Robert von Burg cf6b5bbea9 Initial commit 2013-10-23 10:48:13 -07:00
Robert von Burg 61fef4d5c9 Initial commit 2013-10-23 10:47:32 -07:00
Robert von Burg cae2b4d5c4 Initial commit 2013-10-23 10:46:34 -07:00
Robert von Burg 3af2005dd0 Initial commit 2013-10-23 10:44:50 -07:00
Robert von Burg 35e91e0464 Initial commit 2013-10-23 10:43:40 -07:00
Robert von Burg f24a10992c [New] added test to check acquiring locks
Added a test which checks that a TX fails if a lock can not be acquired,
but succeeds before the timeout to acquire the lock is exceeded.

Further fixed the brittle tests by using a different semaphore to
synchronize the threads.
2013-10-21 18:48:23 +02: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 f176960ba9 [New] added ObjectFilter.getAll() further informations
added ObjectFilter.getAll(Class, String) and
ObjectFilter.getAll(Class<V> clazz)
2013-10-20 00:17:20 +02:00
Robert von Burg 3c006b541a [New] implemented a test to allow multiple operations
This test makes sure that updating after adding, or any other operation
in the same TX works properly. Found a problem where the
PersistenceContext didn't implement hashCode() and equals() which lead
to each operation being added even though a previous operation was
already registered
2013-10-19 21:28:11 +02:00
Robert von Burg 3c623bd20c [Project] Set maven parent for this project to ch.eitchnet.parent 2013-10-19 21:28:02 +02:00
Robert von Burg 5be5cd3fa0 [Minor] fixed compiler warnings 2013-10-19 17:49:27 +02:00
Robert von Burg 30ddf3cfbf [New] implemented a basic test for multiple realms (mandates) 2013-10-19 17:45:33 +02:00
Robert von Burg 977d604a95 [New] created tests for object with no subType
This is implemented with the Book model in the test folder
2013-10-19 17:44: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 a0d5904db9 [Minor] added default IoMode, so that it must no be set on each TX 2013-10-16 18:53:32 +02:00
Robert von Burg 0d106c0714 [Minor] refactored tests to have a base class for cleaning up and
preparing the db store
2013-10-16 07:59:03 +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
Robert von Burg 200f2081ec [New] added a new ClassHelper utility class 2013-10-08 22:02:42 +02:00
Robert von Burg 601692d3d9 [New] added further constants to StringHelper 2013-10-08 19:57:40 +02:00
Robert von Burg d3e77afef2 [Minor] cleaned up compiler warnings 2013-10-08 19:00:27 +02:00
Robert von Burg 41a7198cdd [New] added newline constant to StringHelper 2013-10-08 18:57:27 +02:00
Robert von Burg 3357787f32 [Major] rewrite is working with ObjectDao with including operations 2013-10-08 18:49:46 +02:00
Robert von Burg ca9c21e0e2 [New] rewrite is now working as test. 2013-10-06 18:42:55 +02:00
Robert von Burg f81dec8939 [New] working on rewrite 2013-10-06 12:32:57 +02:00
Robert von Burg bacc6d72fd [Project] fixed /src/main to /src/test reference 2013-09-27 20:40:02 +02:00
Robert von Burg 403f59b82c [Project] fixed reference of src/main/ to /src/test 2013-09-27 20:30:55 +02:00
Robert von Burg 15a118e0e5 [Major] major rewrite, re-thinking the API
it is still not really nice how one has to use the persistence layer,
thus in the test folder i am currently implementing a completely new API
where simple use is central - but not forgetting SAX and DOM being used
transparently.
2013-09-27 20:23:48 +02:00
Robert von Burg 6f0c623d20 [Project] added dependency of ch.eitchnet.utils:0.2.0-SNAPSHOT 2013-09-21 10:07:31 +02:00
Robert von Burg b7a4762a05 [Minor] Made Base encoding/decoding performance tests configurable
To enable them, set the system property
ch.eitchnet.utils.test.runPerfTests=true
2013-09-21 10:03:27 +02:00
Robert von Burg a5ffe0a6cc [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:11:40 +02:00
Robert von Burg a68c44c9fd [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:11:34 +02:00
Robert von Burg 3d8fa992d4 [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:03:05 +02:00
Robert von Burg 9f9f7b0216 [Project] changed Java version frm 1.6 to 1.7 in pom.xml 2013-09-16 07:47:08 +02:00
Robert von Burg daf34735ae [Project] changed Java version frm 1.6 to 1.7 in pom.xml 2013-09-16 07:46:57 +02:00
Robert von Burg 31c6acec6c [Minor] fixed failing test due to different formatting of xml writing 2013-09-15 21:57:42 +02:00
Robert von Burg e6f8343af7 [Minor] fixed compiler warnings 2013-09-15 21:45:40 +02:00
Robert von Burg c9cbb53475 [Minor] changed map declaration to be its interface 2013-09-15 21:44:50 +02:00
Robert von Burg f9c613ca46 [Minor] fixed compiler warnings 2013-09-15 21:43:52 +02:00
Robert von Burg c7ba5054de [Minor] fixed compiler warnings 2013-09-15 21:42:04 +02:00
Robert von Burg fed2bffa36 [Major] major rewrite, now implemented SAX and DOM methods.
Now DOM implementation is working as well with a test scenario
2013-09-15 21:41:00 +02:00
Robert von Burg 23cbca6f89 [Minor] fixed compile error due to wrong import to test classes 2013-09-15 20:55:16 +02:00
Robert von Burg 289cee3f51 [Major] major rewrite, now implemented SAX and DOM methods.
SAX works, DOM does not yet work. Simpler implementation now by not
having to modify domain objects so they can be persisted.
2013-09-14 08:45:12 +02:00
Robert von Burg 759eb036b5 Merge branch 'master' of git@github.com:eitch/ch.eitchnet.utils.git 2013-08-30 09:47:39 +02:00
Robert von Burg f391055c6a [Devel] reimplementing using visitor pattern
Changing to the visitor pattern will make it easier to implement a SAX
reader and writer

This is a commit so that i don't loose my work. The code currently does
not compile
2013-08-30 09:43:45 +02:00
Robert von Burg 209a220331 [Major] Moved property helper methods to PropertiesHelper
Moved the property helper methods from SystemHelper to a new class
PropertiesHelper and added methods where one can pass in the actual
properties thus not being restricted to the system properties
2013-08-20 18:46:46 +02:00
Robert von Burg 1c07555448 [Minor] small code cleanup
added default constructor, instead of instantiating instance variables
at declaration
2013-08-20 18:45:18 +02:00
U-PX\rvb 984ae06df6 [Project] modified pom.xml to also generate javadocs and also deploy those to nexus 2013-08-20 09:06:55 +02:00
Robert von Burg 618369378e Merge branch 'master' of github.com:eitch/li.strolch.model 2013-08-12 18:10:53 +02:00
Robert von Burg 874acc5828 fixed wrong namespace in PrivilegeModel.xsd 2013-08-12 17:00:05 +02:00