Class ParameterBindingJsonReader
java.lang.Object
org.bson.AbstractBsonReader
org.springframework.data.mongodb.util.json.ParameterBindingJsonReader
- All Implemented Interfaces:
Closeable, AutoCloseable, BsonReader
Reads a JSON and evaluates placehoders and SpEL expressions. Modified version of MongoDB Inc.
JsonReader licensed under the Apache License, Version 2.0.
- Since:
- 2.2
- Author:
- Jeff Yemin, Ross Lawley, Trisha Gee, Robert Guo, Florian Buecklers, Brendon Puntin, Christoph Strobl, Rocco Lagrotteria
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from class AbstractBsonReader
AbstractBsonReader.State -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance with the given JSON string.ParameterBindingJsonReader(String json, Object[] values) Constructs a new instance with the given JSON string.ParameterBindingJsonReader(String json, ParameterBindingContext bindingContext) ParameterBindingJsonReader(String json, ValueProvider accessor, SpelExpressionParser spelExpressionParser, Supplier<EvaluationContext> evaluationContext) ParameterBindingJsonReader(String json, ValueProvider accessor, SpelExpressionParser spelExpressionParser, EvaluationContext evaluationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected byteprotected BsonBinaryprotected booleanprotected longprotected BsonDbPointerprotected doubleprotected voidprotected voidprotected intprotected longprotected Stringprotected Stringprotected voidprotected voidprotected voidprotected ObjectIdprotected BsonRegularExpressionprotected voidprotected voidprotected Stringprotected Stringprotected BsonTimestampprotected voidprotected voidprotected voidprotected ParameterBindingJsonReader.ContextgetMark()voidsetState(AbstractBsonReader.State newState) Methods inherited from class AbstractBsonReader
checkPreconditions, close, getCurrentBsonType, getCurrentName, getNextState, getState, isClosed, peekBinarySize, peekBinarySubType, readBinaryData, readBinaryData, readBoolean, readBoolean, readDateTime, readDateTime, readDBPointer, readDBPointer, readDecimal128, readDecimal128, readDouble, readDouble, readEndArray, readEndDocument, readInt32, readInt32, readInt64, readInt64, readJavaScript, readJavaScript, readJavaScriptWithScope, readJavaScriptWithScope, readMaxKey, readMaxKey, readMinKey, readMinKey, readName, readName, readNull, readNull, readObjectId, readObjectId, readRegularExpression, readRegularExpression, readStartArray, readStartDocument, readString, readString, readSymbol, readSymbol, readTimestamp, readTimestamp, readUndefined, readUndefined, setContext, setCurrentBsonType, setCurrentName, skipName, skipValue, throwInvalidContextType, throwInvalidState, verifyBSONType, verifyName
-
Constructor Details
-
ParameterBindingJsonReader
Constructs a new instance with the given JSON string.- Parameters:
json- A string representation of a JSON.
-
ParameterBindingJsonReader
-
ParameterBindingJsonReader
public ParameterBindingJsonReader(String json, ValueProvider accessor, SpelExpressionParser spelExpressionParser, EvaluationContext evaluationContext) -
ParameterBindingJsonReader
public ParameterBindingJsonReader(String json, ValueProvider accessor, SpelExpressionParser spelExpressionParser, Supplier<EvaluationContext> evaluationContext) - Since:
- 2.2.3
-
ParameterBindingJsonReader
-
-
Method Details
-
doReadBinaryData
- Specified by:
doReadBinaryDatain classAbstractBsonReader
-
doPeekBinarySubType
protected byte doPeekBinarySubType()- Specified by:
doPeekBinarySubTypein classAbstractBsonReader
-
doPeekBinarySize
protected int doPeekBinarySize()- Specified by:
doPeekBinarySizein classAbstractBsonReader
-
doReadBoolean
protected boolean doReadBoolean()- Specified by:
doReadBooleanin classAbstractBsonReader
-
readBsonType
- Specified by:
readBsonTypein interfaceBsonReader- Specified by:
readBsonTypein classAbstractBsonReader
-
setState
- Overrides:
setStatein classAbstractBsonReader
-
doReadDecimal128
- Specified by:
doReadDecimal128in classAbstractBsonReader
-
doReadDateTime
protected long doReadDateTime()- Specified by:
doReadDateTimein classAbstractBsonReader
-
doReadDouble
protected double doReadDouble()- Specified by:
doReadDoublein classAbstractBsonReader
-
doReadEndArray
protected void doReadEndArray()- Specified by:
doReadEndArrayin classAbstractBsonReader
-
doReadEndDocument
protected void doReadEndDocument()- Specified by:
doReadEndDocumentin classAbstractBsonReader
-
doReadInt32
protected int doReadInt32()- Specified by:
doReadInt32in classAbstractBsonReader
-
doReadInt64
protected long doReadInt64()- Specified by:
doReadInt64in classAbstractBsonReader
-
doReadJavaScript
- Specified by:
doReadJavaScriptin classAbstractBsonReader
-
doReadJavaScriptWithScope
- Specified by:
doReadJavaScriptWithScopein classAbstractBsonReader
-
doReadMaxKey
protected void doReadMaxKey()- Specified by:
doReadMaxKeyin classAbstractBsonReader
-
doReadMinKey
protected void doReadMinKey()- Specified by:
doReadMinKeyin classAbstractBsonReader
-
doReadNull
protected void doReadNull()- Specified by:
doReadNullin classAbstractBsonReader
-
doReadObjectId
- Specified by:
doReadObjectIdin classAbstractBsonReader
-
doReadRegularExpression
- Specified by:
doReadRegularExpressionin classAbstractBsonReader
-
doReadDBPointer
- Specified by:
doReadDBPointerin classAbstractBsonReader
-
doReadStartArray
protected void doReadStartArray()- Specified by:
doReadStartArrayin classAbstractBsonReader
-
doReadStartDocument
protected void doReadStartDocument()- Specified by:
doReadStartDocumentin classAbstractBsonReader
-
doReadString
- Specified by:
doReadStringin classAbstractBsonReader
-
doReadSymbol
- Specified by:
doReadSymbolin classAbstractBsonReader
-
doReadTimestamp
- Specified by:
doReadTimestampin classAbstractBsonReader
-
doReadUndefined
protected void doReadUndefined()- Specified by:
doReadUndefinedin classAbstractBsonReader
-
doSkipName
protected void doSkipName()- Specified by:
doSkipNamein classAbstractBsonReader
-
doSkipValue
protected void doSkipValue()- Specified by:
doSkipValuein classAbstractBsonReader
-
getMark
-
getContext
- Overrides:
getContextin classAbstractBsonReader
-