Sure, we have a "MOP inside" (http://db.apache.org/ojb/links.html#design)!

use
http://db.apache.org/ojb/api/org/apache/ojb/broker/PersistenceBroker.html#ge
tClassDescriptor(java.lang.Class) to obtain a classes descriptor.

use
http://db.apache.org/ojb/api/org/apache/ojb/broker/metadata/ClassDescriptor.
html#getObjectReferenceDescriptorByName(java.lang.String) or similar to
navigate to the reference or collection descriptor in question.

use
http://db.apache.org/ojb/api/org/apache/ojb/broker/metadata/ObjectReferenceD
escriptor.html#setCascadeStore(boolean) to define update behaviour and
http://db.apache.org/ojb/api/org/apache/ojb/broker/metadata/ObjectReferenceD
escriptor.html#setCascadeDelete(boolean) do define delete behaviour.

cheers,
Thomas

> -----Original Message-----
> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 5:15 PM
> To: oJB List
> Subject: auto-update, auto-delete set dynamically?
> 
> 
> I was wondering if there was a method by which I could set 
> auto-update, 
> retrieve and delete from within my java code.  I don't want to put it 
> in the xml because sometimes when I select say a Home, I only want to 
> have the home info, but I don't want to cascade my search.  Sometimes 
> when I delete an object there are instances where it's OK to cascade 
> delete, others when it's not.  Same goes with update.
> 
> Thanks
> 
> R
> 
> --
> Robert S. Sfeir
> Senior Java Engineer
> National Institutes of Health
> Center for Information Technology
> Department of Enterprise Custom Applications
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to