EOSQLExpression's formatValueForAttribute()
EOSQLExpression's formatValueForAttribute()
- Subject: EOSQLExpression's formatValueForAttribute()
- From: Ricardo Parada <email@hidden>
- Date: Sat, 6 Jan 2007 10:17:32 -0600
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden