-
1. Re: jdbc2.StoreManager2 and key-generators
aloubyansky Apr 11, 2007 5:56 AM (in response to jesper.pedersen)The second option is ok. Would you like to contribute?
-
2. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen Apr 11, 2007 6:16 AM (in response to jesper.pedersen)Sure.
I'll port the keygen package and create an issue in JIRA - hopefully the work should finished some time next week for inclusion on Branch_4_2 and HEAD.
Thanks for your feedback. -
3. Re: jdbc2.StoreManager2 and key-generators
aloubyansky Apr 11, 2007 6:20 AM (in response to jesper.pedersen)Great! Thanks!
-
4. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen Apr 16, 2007 4:19 AM (in response to jesper.pedersen)There is a bug in JDBCEntityBridge2::getQualifiedTableName().
The method should do the same as the JDBCEntityBridge::getQualifiedTableName() namelySQLUtil.fixTableName(metadata.getDefaultTableName(), dataSource);
Should the bug be fixed in the constructor (as local variable) or in the method ?
I'm for the fix in the constructor. -
5. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen Apr 16, 2007 5:09 AM (in response to jesper.pedersen)Looking at the next at the next exception in our trace it seems that jdbc2.AbstractQueryCommand doesn't implement LIMIT/OFFSET functionality such the jdbc.JDBCAbstractQueryCommand does. Correct ?
If so, how should jdbc2.AbstractQueryCommand implement this functionality ?
The interface between the two classes are different, so the OFFSET/LIMIT information isn't directly available. -
6. Re: jdbc2.StoreManager2 and key-generators
aloubyansky Apr 16, 2007 7:13 AM (in response to jesper.pedersen)"jesper.pedersen" wrote:
There is a bug in JDBCEntityBridge2::getQualifiedTableName().
The method should do the same as the JDBCEntityBridge::getQualifiedTableName() namelySQLUtil.fixTableName(metadata.getDefaultTableName(), dataSource);
Should the bug be fixed in the constructor (as local variable) or in the method ?
I'm for the fix in the constructor.
Yes, in the ctor or init. -
7. Re: jdbc2.StoreManager2 and key-generators
aloubyansky Apr 16, 2007 7:17 AM (in response to jesper.pedersen)"jesper.pedersen" wrote:
Looking at the next at the next exception in our trace it seems that jdbc2.AbstractQueryCommand doesn't implement LIMIT/OFFSET functionality such the jdbc.JDBCAbstractQueryCommand does. Correct ?
If so, how should jdbc2.AbstractQueryCommand implement this functionality ?
The interface between the two classes are different, so the OFFSET/LIMIT information isn't directly available.
Probably, in a similar way. Seems like static fetchCollection is the place to offset and pass the limit to collectionStrategy.readResultSet(con, ps, rs, factory); -
8. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen Apr 16, 2007 7:26 AM (in response to jesper.pedersen)Ok -- that is also the way we are looking at it currently.
We will start to submit the patches tomorrow as 3 different issues:
1) QualifiedTableName in EntityBridge2
2) LIMIT/OFFSET functionality in AbstractQueryCommand
3) Key generators for StoreManager2
As they are unrelated (in some way).
Thanks, Alex. -
9. Re: jdbc2.StoreManager2 and key-generators
aloubyansky Apr 16, 2007 7:55 AM (in response to jesper.pedersen)Thanks!
-
10. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen Apr 17, 2007 5:48 AM (in response to jesper.pedersen)The first patches has been submitted.
JBAS-2629 -- updated to provide more fail-safe implementation
JBAS-4339 -- entitybridge2 patch
JBAS-4340 -- key generators patch
The LIMIT/OFFSET patch will be submitted after further internal testing - properly next week.
We will see if we can provide additional key generator implementations - Hsqldb and PostgreSQL have been tested internally.
Thanks for your help Alex. -
11. Re: jdbc2.StoreManager2 and key-generators
jesper.pedersen May 9, 2007 5:49 AM (in response to jesper.pedersen)The LIMIT/OFFSET patch has been submitted under JBAS-4408.
Thanks in advance.