db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <arm...@apache.org>
Subject Re: PB/OTM Question for JDO
Date Tue, 04 May 2004 13:12:11 GMT
Hi Robert,

Robert Sfeir wrote:
> 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.
> 

Locally I have it done a while ago. Should I check in this stuff?
This should not affect stability of OJB, because it only by pass when 
not used.

regards,
Armin

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

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