|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.spel.ExpressionTransformationContextSupport<T>
public class ExpressionTransformationContextSupport<T extends ExpressionNode>
The context for an ExpressionNode transformation.
| Constructor Summary | |
|---|---|
ExpressionTransformationContextSupport(T currentNode,
ExpressionNode parentNode,
com.mongodb.DBObject previousOperationObject)
Creates a new ExpressionTransformationContextSupport for the given ExpressionNodes and an optional
previous operation. |
|
| Method Summary | |
|---|---|
com.mongodb.DBObject |
addToPreviousOperation(Object value)
Adds the given value to the previous operation and returns it. |
Object |
addToPreviousOrReturn(Object value)
Adds the given value to the previous operation if one is present or returns the value to add as is. |
T |
getCurrentNode()
Returns the current ExpressionNode. |
ExpressionNode |
getParentNode()
Returns the parent ExpressionNode or null if none available. |
com.mongodb.DBObject |
getPreviousOperationObject()
Returns the previously accumulated operaton object or null if none available. |
boolean |
hasPreviousOperation()
Returns whether a previous operation is present. |
boolean |
parentIsSameOperation()
Returns whether the parent node is of the same operation as the current node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionTransformationContextSupport(T currentNode,
ExpressionNode parentNode,
com.mongodb.DBObject previousOperationObject)
ExpressionTransformationContextSupport for the given ExpressionNodes and an optional
previous operation.
currentNode - must not be null.parentNode - previousOperationObject - | Method Detail |
|---|
public T getCurrentNode()
ExpressionNode.
public ExpressionNode getParentNode()
ExpressionNode or null if none available.
public com.mongodb.DBObject getPreviousOperationObject()
addToPreviousOrReturn(Object) to transparently do if one is
present.
hasPreviousOperation(),
addToPreviousOrReturn(Object)public boolean hasPreviousOperation()
public boolean parentIsSameOperation()
public com.mongodb.DBObject addToPreviousOperation(Object value)
value -
public Object addToPreviousOrReturn(Object value)
value -
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||