Jump to content
McObject Forums
Sign in to follow this  
Henrik Nissen Ravn

Store - always recursively stores the entire object hierarchy

Recommended Posts

Is Store always recursive (obviously it is for the very first call) for all reachable objects or is it dependent of modification (i.e. previous calls to modify)? And if so, specifically how: Will all modified reachable objects be stored? Or will and unmodified object stop the storing of further reachable objects.

Or asked in another way: Will a call to store for the object at the top of my object hierarchy (not the root object, but an object of my calls that extends Persistent) always store my entire object hierarchy? Or dependent on modified?




Share this post

Link to post
Share on other sites

Store recursively traverses all referenced objects until it reaches persistent object (object with already assigned OID). At this point recursion is stopped. Please notice that Store will not save all reachable modified objects.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this