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
Robert von Burg
1430c9217b
Fixed remaining failing tests by implementing the replacing of objects
...
in the filter as required
2013-08-12 11:54:57 +02:00
U-PX\rvb
6fe7cce9fe
Merge branch 'master' of github.com:eitch/ch.eitchnet.utils
2013-08-12 11:10:51 +02:00
Robert von Burg
c4e6c5e65d
Refactored InitializationHelper so it can take an InputStream
...
Also renamed it to PrivilegeInitializationHelper
2013-08-12 11:04:42 +02:00
Robert von Burg
f53c20d515
extended XmlHelper to take InputStream and always use \n as line sep
2013-08-12 11:02:02 +02:00
Robert von Burg
4263f46934
[Major] Refactoring the ObjectFilter to no longer rely on an interface
...
Now the objects put into the cache no longer need to implement an
interface, this makes it easier to adopt the filter in different
scenarios.
Tests written to validate that the filter works as expected. Still some
outstanding tests which currently fail
2013-08-10 00:37:21 +02:00
Robert von Burg
3b2a397063
[Devel] still implementing new visitor pattern
2013-08-08 00:34:49 +02:00
Robert von Burg
d7f10a731f
[Minor] fixed compiler warnings
...
fixed multiple compiler warnings about broken JavaDocs and pom which was
still set to Java 1.6, now changed to 1.7
2013-08-08 00:32:39 +02:00
Robert von Burg
300399e9c0
Merge branch 'master' of git@github.com:eitch/ch.eitchnet.utils.git
2013-08-08 00:01:38 +02:00
Robert von Burg
2bc24c68c8
[New] set new version to 0.2.0-SNAPSHOT
2013-08-08 00:00:47 +02:00
Robert von Burg
d2ee280dbe
[New] Refactored the ObjectCache to not used a generic T in the class
...
There was no use and it only made the code unreadable.
2013-08-08 00:00:18 +02:00
Robert von Burg
0605dd784f
[Devel] reimplementing using visitor pattern
...
Changing to the visitor pattern will make it easier to implement a SAX
reader and writer
2013-08-07 22:55:18 +02:00
Robert von Burg
6eb34ff532
[Minor] fixed problem with build on mvn cli
...
The problem was due to a naming problem with the PrivilegeMessages class
and property bundle having the same name and being in the same package.
Moved the properties file now to the resources directory
2013-04-19 21:33:18 +02:00
Robert von Burg
7700694a84
[New] add new method ArraysHelper.copyOf(byte[])
2013-04-09 19:25:07 +02:00