Hi Ahmad, I have done a extensive analysis about sequence key generators. A PDF with the results is attached to this issue.
First page shows which database engines Castor currently supports. The columns are:
| column |
description |
| 1. |
Name of database engine. |
| 2. |
Does checkSupportedFactory(PersistenceFactory) throw an exception. |
| 3. - 6. |
Does logic in constructor throw an exception and if not which style will be used dependend on database engine, returning and trigger. |
| 7. - 10. |
Does getValue() method throw an exception or does it return a value. |
| 11. - 13. |
Does old/new test suite cover this use case or have it been tested in the past |
| 14. |
For the use case not covered do I have used it at any time. |
On second page I have provided the possibilities that I have found for the different database engines to use sequences including the SQL statements to execute.
Based upon this results I will now review logic of Castor.
Regards
Ralf
First part of refactoring.