Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql
Class PersistenceContext

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.PersistenceContext

public class PersistenceContext
extends java.lang.Object

This class holds persistence context information.

All non-saved modified data is referenced here. At save time, the data is sent to the database by the Mapper. The database will at some time later be committed by the external transaction manager in effect.

Internally a fragment can be in at most one of the "pristine" or "modified" map. After a save() all the fragments are pristine, and may be partially invalidated after commit by other local or clustered contexts that committed too.

Depending on the table, the context may hold SimpleFragments, which represent one row, CollectionFragments, which represent several rows.

This class is not thread-safe, it should be tied to a single session and the session itself should not be used concurrently.


Field Summary
 HierarchyContext hierContext
           
 
Constructor Summary
PersistenceContext(Model model, RowMapper mapper, SessionImpl session)
           
 
Method Summary
 void recomputeVersionSeries(java.io.Serializable versionSeriesId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hierContext

public final HierarchyContext hierContext
Constructor Detail

PersistenceContext

public PersistenceContext(Model model,
                          RowMapper mapper,
                          SessionImpl session)
                   throws StorageException
Throws:
StorageException
Method Detail

recomputeVersionSeries

public void recomputeVersionSeries(java.io.Serializable versionSeriesId)
                            throws StorageException
Throws:
StorageException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.