Hi Affan,
sorry for the late reply of your 3 posted emails.
Currently most developers work on the PB kernel or OTM
implementation. The JDO implementation is only a prototype.
When the OTM layer was implemented, the real work on
the JDO implementation will began.
I'm currently not involved in the JDO implementation, thus I
can't answer most of your questions.
----- Original Message -----
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 12:23 PM
Subject: JDOQL Support
> Does OJB version 0.9.5 (or above) support JDOQL and other JDO
> features?
don't know.
> When i execute the following code the Extent object comes out to be
'null'
> and hence a NullPointerException is thrown. In which cases can the
extent be
> null?
>
> public Category getSuperCategory()
> {
> Category superCategory = null;
> Extent extent =
> manager.getExtent(com.etilize.cms.domainmodel.Category.class,true);
> String filter = "categoryLevel == 0";
> Query query = manager.newQuery(extent,filter);
> Collection result = (Collection)query.execute();
> Iterator iter = result.iterator();
> while(iter.hasNext())
> {
> superCategory = (Category)iter.next();
> }
> return superCategory;
> }
>
>
method is not implemented!
> 1) If I call the following code multiple times, does it
> allocates/de-allocates (open and close connections) everytime or
create a
> pool automatically? Note that this is the only place where I have
made any
> calls to the PersistenceManager.
>
> public void method1()
> {
> PersistenceManagerFactory factory =
> PersistenceManagerFactoryImpl.getInstance();
> PersistenceManager manager = factory.getPersistenceManager();
> MyObject myObj = new MyObject();
>
> /////// some processing here
>
> manager.makePersistent(myObj);
> myObj.doSomthing();
> }
When using the default OJB.properties pooling is done by default.
I think you do not need to create a new PersistenceManagerFactory
on every method call. Only obtain a new PersistenceManager
on method call.
>
> 2) If I make changes to my object after I call the
> manager.makePersistent(),
> will it persist the changes that I have made afterwards?
Don't know.
regards,
Armin
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>