• 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
Re: decoding an EO from NSXMLInputStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: decoding an EO from NSXMLInputStream


  • Subject: Re: decoding an EO from NSXMLInputStream
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 4 Apr 2005 11:28:11 -0700

Go to the JavaDocs for EOEditingContext, then look for the link "Using EOEditingContext to Archive Custom Objects in Web Objects Framework" that is just above see also. On my machine it is
file:///Developer/Documentation/WebObjects/Reference/API/com/ webobjects/eocontrol/concepts/ EOEditingContextConcepts.html#ARCHIVINGOBJECTS


An excerpt:
"It also has the methods setSubstitutionEditingContext and substitutionEditingContext. These control which EOEditingContext deserialized enterprise objects are placed into. Unless you have set an explicit substitution context, the EOEnterpriseObjects will be deserialized into the EOEditingContext in the serialized stream (i.e. a transitory EOEditingContext for which you do not have a reference)."


Chuck

On Apr 4, 2005, at 8:02 AM, Jean-François Veillette wrote:

I use
ByteArrayInputStream istream = new ByteArrayInputStream(e.getBytes("UTF-8"));
NSXMLInputStream p = new NSXMLInputStream(istream);
NSDictionary ui = (NSDictionary)p.readObject();
p.close();
To get back a dictionary in which I have, among other values, an EOQualifiers qualifying based an EnterpriseObject.
I can get back my eo and reapply the qualifier to a new fetch spec, but I wonder why and how ???
When NSXMLInputStream is reading an EO, in which eoEditingContext is it putting it into ?


I'm in early development of this system, I did not tested it extensively, but to my surprise it just work so far. I thought I would have to make some more management about deserializing an eo, give an eoeditingcontext to deserialize into, or anything like that.

I'm afraid I'll hit a wall sooner or later, any experience with deserializing an eo from a xml stream ?
Anything I should know before it's too late ?


thanks !

- jfv
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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: decoding an EO from NSXMLInputStream
      • From: Jean-François Veillette <email@hidden>
References: 
 >decoding an EO from NSXMLInputStream (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: EODisplaygroup sorting in database
  • Next by Date: Re: decoding an EO from NSXMLInputStream
  • Previous by thread: decoding an EO from NSXMLInputStream
  • Next by thread: Re: decoding an EO from NSXMLInputStream
  • Index(es):
    • Date
    • Thread