db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Sfeir <rob...@codepuccino.com>
Subject Re: PB/OTM Question for JDO
Date Tue, 04 May 2004 11:39:38 GMT
Looks like we're gonna have to write something to get the wish we've 
had for a while, one that will allow us to fetch dependencies or not.  
Is this a big rewrite?  I would apply this change to auto-update and 
delete also.

R

On May 2, 2004, at 7:34 PM, Brian McCallister wrote:

> Is there any means of executing a query against an extent that 
> specifically excludes subclasses?
>
> class A {}
> class B extends A {}
>
> Query for A without getting any B's even though the extent is declared 
> in metadata?
>
> This behavior is required for JDO:
>
>     /**
>      * @param aClass top level class
>      * @param include_extent      include subclasses, presently ignored
>      * @return
>      * @todo figure out how to implement, may have to query all and 
> filter objects
>      */
>     public Extent getExtent(Class aClass, boolean include_extent)
>     {
>         if (!include_extent) throw new 
> UnsupportedOperationException("Not yet implemented!");
>         if (isClosed())
>         {
>             throw new 
> JDOFatalUserException(generateIsClosedErrorMessage("getExtent(Class, 
> boolean)"));
>         }
>         return new ExtentImpl(aClass, m_conn, this, include_extent);
>     }
>
> Needs to be able to have a boolean flag (include_extent) which 
> specifies this behavior =(
>
> -Brian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
Robert S. Sfeir
Technical Lead
HHS Portal
robert_sfeir@sra.com


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message