db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <mccallis...@forthillcompany.com>
Subject PB/OTM Question for JDO
Date Sun, 02 May 2004 23:34:04 GMT
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 
         return new ExtentImpl(aClass, m_conn, this, include_extent);

Needs to be able to have a boolean flag (include_extent) which 
specifies this behavior =(


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

View raw message