No, there is no easy way to throw them all in. If this is a performance bottleneck, you could always write converters for each of your JDO managed entities.
On Tue, Nov 24, 2009 at 6:48 PM, Erem <[email protected]> wrote: > Ikai, > > Thanks for the response. The issue is that I have two types of objects > that need to be persisted: > > (1) a bunch of JDO managed objects > (2) a bunch of low-level Entity objects. > > Is there any way that I could batch put all of them at once through > the same API rather then calling the JDO api followed by the low-level > api? > > On Nov 24, 5:09 pm, "Ikai L (Google)" <[email protected]> wrote: > > Erem, > > > > You can use the makePersistentAll() method of PersistenceManager to batch > > put items. See here: > > > > http://code.google.com/appengine/docs/java/datastore/creatinggettinga... > > > > This was introduced in SDK 1.2.5. > > > > > > > > On Mon, Nov 23, 2009 at 2:37 PM, Erem <[email protected]> wrote: > > > Hey all, > > > > > Are there any built in tools in the API to translate a managed JDO > > > object into a low-level Entity? > > > > > I want to do a batch put of some JDO-managed objects and some low- > > > level Entities. If I could translate JDO-managed objects into bigtable > > > Entities, I could do this in one call to the low-level API rather than > > > one call to persistenceManager.makePersistentAll(Collection) and > > > another to datastoreService.put(Iterable<Entity>). > > > > > Thanks for the help! > > > > > Erem > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine for Java" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]> > <google-appengine-java%[email protected]<google-appengine-java%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=. > > > > -- > > Ikai Lan > > Developer Programs Engineer, Google App Engine > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
