Hey guys, quick question for a possible workaround to test if the
datastore is read only.

Could I just fetch an object and modify it at the beginning of my call
like:

Obj foo = pm.getObjectById(...)

try {
  foo.setUnusedVariable(0);
} catch (CapabilityDisabledException e) {
 // Datastore is read-only! Alert user
}

Would this work? Or does CapabilityDisabledException only get thrown
when the PersistenceManager is closed?

Thanks

On 19 July, 06:48, coltsith <[email protected]> wrote:
> Okay, thanks guys. I'll keep on the lookout for the next release.
>
> On Jul 15, 7:50 pm, Don Schwarz <[email protected]> wrote:
>
>
>
> > This will be supported in Java in the next release.
>
> > On Thu, Jul 15, 2010 at 6:10 PM, Ikai L (Google) <[email protected]> wrote:
>
> > > I'd appreciate if members of this group didn't "bump" topics - it creates
> > > noise, and we do make an effort to respond to topics, even older ones.
>
> > > There's capabilitiesAPI, unfortunately, this is Python only for now.
>
> > >http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app...
>
> > > <http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app...>
> > > On Wed, Jul 14, 2010 at 9:48 PM, coltsith <[email protected]> wrote:
>
> > >> bump bump pump it up!
>
> > >> On Jul 8, 6:01 am, coltsith <[email protected]> wrote:
> > >> > Is there a way to do this? I've like to be able to check if the data
> > >> > store is read only before I start all the work, rather than catch the
> > >> > CapabilityAPI exception.
>
> > >> > Thanks
>
> > >> --
> > >> 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%2B
> > >>  [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
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine
>
> > >  --
> > > 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%2B
> > >  [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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.

Reply via email to