org.nuxeo.ecm.core.storage.sql
Class PersistenceContext
java.lang.Object
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 SimpleFragment
s, which
represent one row, CollectionFragment
s, 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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hierContext
public final HierarchyContext hierContext
PersistenceContext
public PersistenceContext(Model model,
RowMapper mapper,
SessionImpl session)
throws StorageException
- Throws:
StorageException
recomputeVersionSeries
public void recomputeVersionSeries(java.io.Serializable versionSeriesId)
throws StorageException
- Throws:
StorageException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.