Object Lifetimes

The lifetime of external objects is conceptually persistent, as they are retrieved from a persistent database. However, the external proxy objects are implemented as shared transient objects in JADE.

You can create and delete rows or records in an external database, by using methods provided by the relevant classes. The creation and deletion of proxy objects is automatic. A proxy can have one current object only for each collection reference, which corresponds to the current-row in a cursor operation.

When using proxy objects, do not retain references to an external object beyond the last access for a specific collection; that is, the last direct or relative key access or the last object fetched using a foreach instruction or the next or back method of the ExternalIterator class.