Hi All,
There is a method in EOSQLExpression as follows:
public String formatValueForAttribute(Object value, EOAttribute
attribute)
which is supposed to format a value as a string ready for inclusion
in a SQL statement / query.
However the method doesn't seem to really do what it advertises. It
always returns "NULL".
So I went ahead and decompiled the subclasses all the way to the
super class EOSQLExpression:
OraclePlugIn$OracleExpression.java extends
JDBCExpression.java extends EOSQLExpression.java
What I found out is that I'm right. The method doesn't do anything.
Either that or I'm missing something.
I was interested in formatting NSTimestamp and String values mostly.
I see EOSQLExpression has formatStringValue() which I may be able to
use for String values. I still need something for NSTimestamp values
and I may have to write my own.
Any advise on this is appreciated.
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com