db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Adams <matt...@matthewadams.org>
Subject Re: JDO 2.2 : read-only datastore
Date Wed, 18 Jun 2008 13:41:44 GMT
Why not also require modifications to PCs to throw JDOUserException? 
Further, the exception could be a new extension of JDOUserException 
called JDOReadOnlyException.

Andy Jefferson wrote:
> Something that we've been asked for several times is where a user has a 
> datastore that is outside their control and they either don't have permission 
> to write to it, or maybe they have permissions but don't want to write to it.
> 
> Propose :-
> PMF property (with setter/getter)
> javax.jdo.option.ReadOnly - values true | false
> 
> Behaviour :-
> Use of makePersistentXXX(), deletePersistentXXX() will throw JDOUserException.
> Use of query.deletePersistentAll() will throw JDOUserException
> 
> 
> 

Mime
View raw message