7.1.3 Reflecting Item State

Every Item object (instance of a Node or Property) is associated with the Session object through which it was acquired. When changes are made to an Item object, those changes are recorded in its associated Session and immediately reflected in the Item object itself. In other words, after a change is made, a subsequent re-retrieval of the same item entity through the same Session, will return an Item object reflecting the recent change. In this context “retrieval through the same Session” includes not just acquisition of nodes and properties through the getter methods (like getNode, getProperty etc.) but also items returned through other means, such as within the result set of a query.