Package | Description |
---|---|
org.nuxeo.ecm.core.storage.sql |
Implementation of a Nuxeo repository over an SQL database.
|
Modifier and Type | Class and Description |
---|---|
class |
CollectionFragment
A type of fragment corresponding to several rows with the same id.
|
class |
SimpleFragment
A type of fragment corresponding to a single row in a table and its associated in-memory information (state, dirty
fields, attached context).
|
Modifier and Type | Field and Description |
---|---|
protected Map<RowId,Fragment> |
PersistenceContext.modified
The fragments changed by the session.
|
protected Map<RowId,Fragment> |
PersistenceContext.pristine
The pristine fragments.
|
Modifier and Type | Method and Description |
---|---|
protected Fragment |
PersistenceContext.get(RowId rowId,
boolean allowAbsent)
Gets a fragment.
|
protected Fragment |
PersistenceContext.getFragmentFromFetchedRow(RowId rowId,
boolean allowAbsent)
Turns the given row (just fetched from the mapper) into a fragment and record it in the context.
|
protected Fragment |
PersistenceContext.getFromMapper(RowId rowId,
boolean allowAbsent,
boolean cacheOnly)
Gets a fragment from the context or the mapper cache or the underlying database.
|
protected Fragment |
PersistenceContext.getIfPresent(RowId rowId)
Gets a fragment, if present in the context.
|
Modifier and Type | Method and Description |
---|---|
protected List<Fragment> |
PersistenceContext.getFragmentsFromFetchedRows(List<? extends RowId> rowIds,
boolean allowAbsent)
Turns the given rows (just fetched from the mapper) into fragments and record them in the context.
|
protected List<Fragment> |
PersistenceContext.getFromMapper(Collection<RowId> rowIds,
boolean allowAbsent,
boolean cacheOnly)
Gets a collection of fragments from the mapper.
|
protected List<Fragment> |
SessionImpl.getHierarchyAndAncestors(Collection<Serializable> ids)
Fetches the hierarchy fragment for the given rows and all their ancestors.
|
List<Fragment> |
PersistenceContext.getMulti(Collection<RowId> rowIds,
boolean allowAbsent)
Gets a list of fragments.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistenceContext.removeFragment(Fragment fragment,
boolean primary)
Deletes a fragment from the context.
|
protected void |
PersistenceContext.setFragmentModified(Fragment fragment) |
protected void |
PersistenceContext.setFragmentPristine(Fragment fragment) |
Modifier and Type | Method and Description |
---|---|
protected RowMapper.RowBatch |
PersistenceContext.getSaveBatch(List<Fragment> fragmentsToClearDirty)
Saves all the created, modified and deleted rows into a batch object, for later execution.
|
Copyright © 2017 Nuxeo. All rights reserved.