Package | Description |
---|---|
org.nuxeo.ecm.core.storage | |
org.nuxeo.ecm.core.storage.dbs | |
org.nuxeo.ecm.core.storage.mem | |
org.nuxeo.ecm.core.storage.mongodb |
Modifier and Type | Class and Description |
---|---|
static class |
State.StateDiff
A diff for a
State . |
Modifier and Type | Field and Description |
---|---|
static State |
State.EMPTY |
Modifier and Type | Method and Description |
---|---|
static State |
StateHelper.deepCopy(State state)
Makes a deep copy of a
State map. |
static State |
StateHelper.deepCopy(State state,
boolean threadSafe)
Makes a deep copy of a
State map, optionally thread-safe. |
Modifier and Type | Method and Description |
---|---|
static State |
StateHelper.deepCopy(State state)
Makes a deep copy of a
State map. |
static State |
StateHelper.deepCopy(State state,
boolean threadSafe)
Makes a deep copy of a
State map, optionally thread-safe. |
static State.StateDiff |
StateHelper.diff(State a,
State b)
Makes a diff copy of two
State maps. |
static boolean |
StateHelper.equalsLoose(State a,
State b)
Compares two
State s. |
static boolean |
StateHelper.equalsStrict(State a,
State b)
Compares two
State s. |
static void |
StateHelper.resetDeltas(State state)
Changes the deltas stored into actual full values.
|
Modifier and Type | Field and Description |
---|---|
protected State |
DBSDocumentState.originalState
When non-null, the original state (otherwise the state hasn't been modified).
|
protected State |
DBSExpressionEvaluator.state |
protected State |
DBSDocumentState.state
The current state.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,State> |
DBSTransactionState.undoLog
Undo log.
|
Modifier and Type | Method and Description |
---|---|
protected State |
DBSDocument.getChild(State state,
String name,
Type type) |
protected State |
DBSDocument.getChildForWrite(State state,
String name,
Type type) |
State |
DBSDocumentState.getOriginalState()
Gets the original state for this, needed when creating an undo log.
|
State |
DBSDocumentState.getState()
Gets the state.
|
State |
DBSTransactionState.getStateForRead(String id)
Returns a state which won't be modified.
|
State |
DBSRepository.readChildState(String parentId,
String name,
Set<String> ignored)
Reads the state of a child document.
|
State |
DBSRepository.readState(String id)
Reads the state of a document.
|
Modifier and Type | Method and Description |
---|---|
protected List<State> |
DBSDocument.getChildAsList(State state,
String name) |
PartialList<State> |
DBSRepository.queryAndFetch(Expression expression,
SelectClause selectClause,
OrderByClause orderByClause,
int limit,
int offset,
int countUpTo,
DBSExpressionEvaluator evaluator,
boolean deepCopy)
Queries the repository for documents matching a query.
|
List<State> |
DBSRepository.queryKeyValue(String key,
Object value,
Set<String> ignored)
Queries the repository for documents having key = value.
|
List<State> |
DBSRepository.queryKeyValue(String key1,
Object value1,
String key2,
Object value2,
Set<String> ignored)
Queries the repository for documents having key1 = value1 and key2 = value2.
|
List<State> |
DBSRepository.readStates(List<String> ids)
Reads the states of several documents.
|
protected List<State> |
DBSDocument.updateList(State state,
String name,
Property property) |
Modifier and Type | Method and Description |
---|---|
int |
DBSExpressionEvaluator.OrderByComparator.compare(State s1,
State s2) |
void |
DBSRepository.createState(State state)
Creates a document.
|
protected Object |
DBSExpressionEvaluator.evaluateReference(Reference ref,
State state)
Evaluates a reference over the given state.
|
protected void |
DBSTransactionState.FulltextFinder.findFulltext(String indexName,
State state,
List<String> strings) |
protected void |
DBSSession.flatten(Map<String,Serializable> map,
State state,
String prefix) |
protected State |
DBSDocument.getChild(State state,
String name,
Type type) |
protected List<State> |
DBSDocument.getChildAsList(State state,
String name) |
protected State |
DBSDocument.getChildForWrite(State state,
String name,
Type type) |
protected String |
DBSSession.getPath(State state) |
boolean |
DBSExpressionEvaluator.matches(State state) |
protected DBSDocumentState |
DBSTransactionState.newTransientState(State state)
New transient state for something just read from the repository.
|
protected void |
DBSDocument.updateList(State state,
String name,
List<Object> values,
Field field) |
protected List<State> |
DBSDocument.updateList(State state,
String name,
Property property) |
Modifier and Type | Method and Description |
---|---|
protected void |
DBSSession.doOrderBy(List<State> states,
OrderByClause orderByClause,
DBSExpressionEvaluator evaluator) |
protected List<Map<String,Serializable>> |
DBSSession.flatten(List<State> states)
Flatten and convert from internal names to NXQL.
|
Constructor and Description |
---|
DBSDocumentState(State base)
Constructs a document state from the copy of an existing base state.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,State> |
MemRepository.states
The content of the repository, a map of document id -> object.
|
Modifier and Type | Method and Description |
---|---|
State |
MemRepository.readChildState(String parentId,
String name,
Set<String> ignored) |
State |
MemRepository.readState(String id) |
Modifier and Type | Method and Description |
---|---|
PartialList<State> |
MemRepository.queryAndFetch(Expression expression,
SelectClause selectClause,
OrderByClause orderByClause,
int limit,
int offset,
int countUpTo,
DBSExpressionEvaluator evaluator,
boolean deepCopy) |
List<State> |
MemRepository.queryKeyValue(String key,
Object value,
Set<String> ignored) |
List<State> |
MemRepository.queryKeyValue(String key1,
Object value1,
String key2,
Object value2,
Set<String> ignored) |
List<State> |
MemRepository.readStates(List<String> ids) |
Modifier and Type | Method and Description |
---|---|
static void |
MemRepository.applyDiff(State state,
State.StateDiff stateDiff)
Applies a
State.StateDiff in-place onto a base State . |
void |
MemRepository.createState(State state) |
protected void |
MemRepository.markReferencedBinaries(State state,
List<String> path,
int start,
BlobManager blobManager) |
Modifier and Type | Method and Description |
---|---|
protected State |
MongoDBRepository.bsonToState(com.mongodb.DBObject ob) |
protected State |
MongoDBRepository.findOne(com.mongodb.DBObject query) |
State |
MongoDBRepository.readChildState(String parentId,
String name,
Set<String> ignored) |
State |
MongoDBRepository.readState(String id) |
Modifier and Type | Method and Description |
---|---|
protected List<State> |
MongoDBRepository.findAll(com.mongodb.DBObject query,
int sizeHint) |
PartialList<State> |
MongoDBRepository.queryAndFetch(Expression expression,
SelectClause selectClause,
OrderByClause orderByClause,
int limit,
int offset,
int countUpTo,
DBSExpressionEvaluator evaluator,
boolean deepCopy) |
List<State> |
MongoDBRepository.queryKeyValue(String key,
Object value,
Set<String> ignored) |
List<State> |
MongoDBRepository.queryKeyValue(String key1,
Object value1,
String key2,
Object value2,
Set<String> ignored) |
List<State> |
MongoDBRepository.readStates(List<String> ids) |
Modifier and Type | Method and Description |
---|---|
void |
MongoDBRepository.createState(State state) |
protected com.mongodb.DBObject |
MongoDBRepository.stateToBson(State state) |
Copyright © 2015 Nuxeo SA. All rights reserved.