• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EOSQLExpression's formatValueForAttribute()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: EOSQLExpression's formatValueForAttribute()
      • From: Ray Kiddy <email@hidden>
  • Prev by Date: Re: [OT] Entity Modeler, how to create a many to many
  • Next by Date: Re: EOSQLExpression's formatValueForAttribute()
  • Previous by thread: Re: [OT] Entity Modeler, how to create a many to many
  • Next by thread: Re: EOSQLExpression's formatValueForAttribute()
  • Index(es):
    • Date
    • Thread