Mats,

Here is some java to persist data retrieved from db as a GData entry.

// create an entry obj
GoogleBaseEntry gentry = new GoogleBaseEntry() ;

// set an attribute record_id  from db query results for cache_id
gentry.getGoogleBaseAttributes().addTextAttribute("record_id",
Integer.toString(rs.getInt("cache_id")));
...
feed.addEntry(gentry);
// eventually you send this feed to GBase

You would substitute a get on your objects attribute for the
rs.getInd().

You could be a lot more sophisticated, but this is the basic idea.

-=beeky


On Oct 30, 4:33 pm, Mats <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've started playing around with Google Base and the .NET API today.
> I'm planning to build an application where I want to persist objects
> to Google Base. The thing is that I don't know exactly how the object
> will look when I'm saving it, would it be possible to create objects
> on the fly (sample code would be much appreciated :-) ) or am I
> missing some other concept here?
>
> Greetings,
>
> Mats
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to