[Pride-users] Extension Descriptor and documentation enhancement
Brought to you by:
jlessner
|
From: Benjamin R. <fir...@us...> - 2004-10-15 07:44:14
|
Hi,
I'm (still) using PriDE quite extensively, and I stumbled upon some
issues, which I wanted to communicate.
1) I think it should be noted in the javadoc of SQLExpression that the
following code is perfectly valid:
exp = exp.and("some_colname",
SQLExpression.Operator.BETWEEN,
(Object) new Long[]
{pObj.getLeft(), pObj.getRight()});
I think it would be even better, to add an extra and() and or() method
to avoid this nasty casting of an array to an object.
2) What are ExtensionDescriptors? They are in the code, but mentioned
nowhere.
3) I think it would be nice, to have some kind of "native" support of
ORDER BY expressions in PriDE. I need to apply an ORDER BY to statements
very often in my application. I resolved this, by extending the
RecordDescriptor's getConstraint() method, and appending the appropriate
ORDER BY at every invocation. Maybe something like this could go into
the core of PriDE (I can give you the code, I used).
That's it for now, thanks for providing such a nice and easy framework.
Benjamin
|