Commit Graph

769 Commits

Author SHA1 Message Date
Robert von Burg d88bb9d074 [Project] added eitchnet dependencies to module build 2014-03-08 18:32:05 +01:00
Robert von Burg fcfdbbd9f7 [Project] fixed empty problem when iterating projects list 2014-03-08 17:36:33 +01:00
Robert von Burg d93b25751e [Project] modifies scripts to use project.lst for iteration and added relevant ch.eitchnet.* projects to list 2014-03-08 17:30:21 +01:00
Robert von Burg 13a158c868 [Project] modifies scripts to use project.lst for iteration and added relevant ch.eitchnet.* projects to list 2014-03-08 17:22:35 +01:00
Robert von Burg b0b580677b [Bugfix] fixed lower case name attribute in Enums.xml 2014-03-03 23:36:21 +01:00
Robert von Burg cfe36bcfeb [Bugfix] fixed lower case name attribute in Enums.xml 2014-03-03 23:36:04 +01:00
Robert von Burg c8d41ac497 [Minor] RuntimeMock.assertServiceResult is static 2014-03-03 23:35:45 +01:00
Robert von Burg 411b7e00df [Major] Implemented tests for all Services
These tests are simple success tests, failure tests come later. Each
tests makes tests that the service works in CACHED, TRANSACTIONAL and
TRANSIENT data store mode.
2014-03-03 23:35:17 +01:00
Robert von Burg ffc8be7498 [Minor] Testbase dependency management is scope test
also added postgresql dependency management
2014-03-03 23:33:21 +01:00
Robert von Burg 0dae330e72 [Major] Multiple issues
- setId() and setName() don't allow empty values
- added Locator.newBuilder(String)
- fixed wrong locator created by ParameterizedElement
- Better exception handling when parsing from XML as Sax
2014-03-03 23:32:33 +01:00
Robert von Burg c7cb42724e [Major] Multiple issues
- Documented ComponentContainer.getComponent()
- StrolchRealm try lock timeout is configurable
- added DataStoreMode.isTransient()
- documented Command
- fixed lower case name attributes in Enums.xml
2014-03-03 23:30:35 +01:00
Robert von Burg 692f80fa61 [Bugfix] Don't close unopened connection
When a PostgreSQL transaction is opened without any objects being
modified or queried, then the connection won't be opened, thus no need
to close it.
2014-03-03 23:22:55 +01:00
Robert von Burg 9555f562fa [Bugfix] don't check db connection for realms which are transient 2014-03-03 18:42:12 +01:00
Robert von Burg 17bf200d3c [Minor] cleaned up exception message 2014-03-03 18:41:26 +01:00
Robert von Burg 1f287fe121 [Minor] all commands now lock their elements before doing their work 2014-02-26 21:32:12 +01:00
Robert von Burg b1e24f8a59 [New] Implemented StrolchTransaction.addCommand(), Command.undo()
Commands are now supposed to be added to the StrolchTransaction so that
when a TX is committed, the commands are first verified and then
Command.doCommand() is called.

But most important of all, in case of an exception, Command.undo() is
called so that each Command can properly undo its changes so that also
in memory changes are rolled back.

Now all Services call tx.addCommand(Command) instead of directly calling
Command.doCommand()
2014-02-26 21:13:47 +01:00
Robert von Burg 66e70fce75 [New] Implemented StrolchTransaction.addCommand(), Command.undo()
Commands are now supposed to be added to the StrolchTransaction so that
when a TX is committed, the commands are first verified and then
Command.doCommand() is called.

But most important of all, in case of an exception, Command.undo() is
called so that each Command can properly undo its changes so that also
in memory changes are rolled back.
2014-02-26 20:43:26 +01:00
Robert von Burg d15d163ebf [New] Added New StrolchElementVisitor for StrolchRootElement
Also added getParent() and getRootElement() on StrolchElement
2014-02-26 20:37:42 +01:00
Robert von Burg b8981cc592 [New] Implemented Command.undo() for all commands
This lead to the ElementMaps returning replaced elements when calling
update() or updateAll().

Further now the StrolchTransaction has methods to check the state easier
than comparing with the TransactionState enum
2014-02-25 21:21:42 +01:00
Robert von Burg 20f0417d93 [New] Implemented Command.undo() for all commands 2014-02-25 21:19:41 +01:00
Robert von Burg 911a92ad5e [Minor] Added update count checking when executing INSERT, UPDATE, DEL 2014-02-25 21:19:10 +01:00
Robert von Burg 2446682c9a [New] Added SetParameterService and Command 2014-02-24 22:29:02 +01:00
Robert von Burg c3a556df81 [Minor] trying to fix broken LockingTest which has an infinite loop 2014-02-24 21:57:57 +01:00
Robert von Burg 859ca6a89d [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:33 +01:00
Robert von Burg 069361f476 [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:24 +01:00
Robert von Burg 4a0e26d05b [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:17 +01:00
Robert von Burg e11625998a [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:02 +01:00
Robert von Burg 902a153043 [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:48:59 +01:00
Robert von Burg 7147bc1570 [New] added a new StrolchRootElement interface for Resource and Order 2014-02-24 21:48:53 +01:00
Robert von Burg 9f3cbf06f1 [New] Implemented locking for Strolch elements
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:47:45 +01:00
Robert von Burg a7a4d4f5dd [Minor] fixed broken test due to typo 2014-02-19 01:03:48 +01:00
Robert von Burg ecfb2c8e00 [New] added realm testing with different connections 2014-02-19 00:53:00 +01:00
Robert von Burg 9d72df10b1 [Minor] allow for overriding the realm in which the tests run 2014-02-19 00:11:46 +01:00
Robert von Burg be033f3e35 [New] PostgreSqlPersistenceHandler now expects a config for each realm
Now each realm which is CACHED or TRANSACTIONAL and thus uses a
PersistenceHandler must have a dbUrl, dbUsername and dbPassword
configured
2014-02-19 00:11:14 +01:00
Robert von Burg d6ebf330c7 [New] Implemented separate DataStoreMode for each StrolchRealm
added new component state mode SETUP which is before initialize which is
where configurations can be loaded, but no other components may be used
2014-02-19 00:09:25 +01:00
Robert von Burg 0d7914b026 [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:52 +01:00
Robert von Burg b8f03ffd5d [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:36 +01:00
Robert von Burg 0189eab99a [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:27 +01:00
Robert von Burg 1f4755939a [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:24 +01:00
Robert von Burg 6de097116f [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:17 +01:00
Robert von Burg b9c7278911 [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:09 +01:00
Robert von Burg 7322894078 [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:08:06 +01:00
Robert von Burg 14de9b29df [New] Implemented separate DataStoreMode for each StrolchRealm 2014-02-17 22:07:54 +01:00
Robert von Burg c1a84fc480 [Bugfix] fixed NPE when CLI argument is missing 2014-02-17 21:46:23 +01:00
Robert von Burg af33df7503 [Minor] added logging of work done when exporting model 2014-02-14 21:45:48 +01:00
Robert von Burg a7e4faa5c1 [Minor] added protected logger field to Command 2014-02-14 21:45:09 +01:00
Robert von Burg bb9caf6554 [New] XmlExportModelService now has multi file support
Also added tests for exporting model
2014-02-14 21:18:14 +01:00
Robert von Burg c37792fead [New] added RuntimeMock.assertServiceResult() 2014-02-14 21:17:30 +01:00
Robert von Burg bb3f3e7854 [Minor] there is no getDefaultRealm() method anymore 2014-02-13 22:22:11 +01:00
Robert von Burg 8e273b1306 [Minor] there is no getDefaultRealm() method anymore 2014-02-13 22:22:04 +01:00