4.3. Operations That Change State
In the previous section, we introduced basic states, and obvious methods—like reading a field or deleting a persistent instance from the datastore—were taken for granted. This section drills deeper into operations and explains behaviors in more detail. Some methods alter the object's state by a direct call; others indirectly change the state of multiple objects.
4.3.1. PersistentManager.makePersistent
The PersistenceManager method makePersistent causes transient objects to become persistent-new. In a call to makePersistent, the object graph is traversed to find other reachable, still transient objects. Those objects may indirectly become persistent-new as well.
4.3.2. PersistenceManager.deletePersistent
A call ...
Get Core Java™ Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.