Class ParameterBindingJsonReader
java.lang.Object
org.bson.AbstractBsonReader
org.springframework.data.mongodb.util.json.ParameterBindingJsonReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.bson.BsonReader
public class ParameterBindingJsonReader
extends org.bson.AbstractBsonReader
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
Modifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from class org.bson.AbstractBsonReader
org.bson.AbstractBsonReader.State
-
Constructor Summary
ConstructorDescriptionConstructs 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 int
protected byte
protected org.bson.BsonBinary
protected boolean
protected long
protected org.bson.BsonDbPointer
org.bson.types.Decimal128
protected double
protected void
protected void
protected int
protected long
protected String
protected String
protected void
protected void
protected void
protected org.bson.types.ObjectId
protected org.bson.BsonRegularExpression
protected void
protected void
protected String
protected String
protected org.bson.BsonTimestamp
protected void
protected void
protected void
protected ParameterBindingJsonReader.Context
org.bson.BsonReaderMark
getMark()
org.bson.BsonType
void
setState
(org.bson.AbstractBsonReader.State newState) Methods inherited from class org.bson.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
Constructs a new instance with the given JSON string.- Parameters:
json
- A string representation of a JSON.
-
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
protected org.bson.BsonBinary doReadBinaryData()- Specified by:
doReadBinaryData
in classorg.bson.AbstractBsonReader
-
doPeekBinarySubType
protected byte doPeekBinarySubType()- Specified by:
doPeekBinarySubType
in classorg.bson.AbstractBsonReader
-
doPeekBinarySize
protected int doPeekBinarySize()- Specified by:
doPeekBinarySize
in classorg.bson.AbstractBsonReader
-
doReadBoolean
protected boolean doReadBoolean()- Specified by:
doReadBoolean
in classorg.bson.AbstractBsonReader
-
readBsonType
public org.bson.BsonType readBsonType()- Specified by:
readBsonType
in interfaceorg.bson.BsonReader
- Specified by:
readBsonType
in classorg.bson.AbstractBsonReader
-
setState
public void setState(org.bson.AbstractBsonReader.State newState) - Overrides:
setState
in classorg.bson.AbstractBsonReader
-
doReadDecimal128
public org.bson.types.Decimal128 doReadDecimal128()- Specified by:
doReadDecimal128
in classorg.bson.AbstractBsonReader
-
doReadDateTime
protected long doReadDateTime()- Specified by:
doReadDateTime
in classorg.bson.AbstractBsonReader
-
doReadDouble
protected double doReadDouble()- Specified by:
doReadDouble
in classorg.bson.AbstractBsonReader
-
doReadEndArray
protected void doReadEndArray()- Specified by:
doReadEndArray
in classorg.bson.AbstractBsonReader
-
doReadEndDocument
protected void doReadEndDocument()- Specified by:
doReadEndDocument
in classorg.bson.AbstractBsonReader
-
doReadInt32
protected int doReadInt32()- Specified by:
doReadInt32
in classorg.bson.AbstractBsonReader
-
doReadInt64
protected long doReadInt64()- Specified by:
doReadInt64
in classorg.bson.AbstractBsonReader
-
doReadJavaScript
- Specified by:
doReadJavaScript
in classorg.bson.AbstractBsonReader
-
doReadJavaScriptWithScope
- Specified by:
doReadJavaScriptWithScope
in classorg.bson.AbstractBsonReader
-
doReadMaxKey
protected void doReadMaxKey()- Specified by:
doReadMaxKey
in classorg.bson.AbstractBsonReader
-
doReadMinKey
protected void doReadMinKey()- Specified by:
doReadMinKey
in classorg.bson.AbstractBsonReader
-
doReadNull
protected void doReadNull()- Specified by:
doReadNull
in classorg.bson.AbstractBsonReader
-
doReadObjectId
protected org.bson.types.ObjectId doReadObjectId()- Specified by:
doReadObjectId
in classorg.bson.AbstractBsonReader
-
doReadRegularExpression
protected org.bson.BsonRegularExpression doReadRegularExpression()- Specified by:
doReadRegularExpression
in classorg.bson.AbstractBsonReader
-
doReadDBPointer
protected org.bson.BsonDbPointer doReadDBPointer()- Specified by:
doReadDBPointer
in classorg.bson.AbstractBsonReader
-
doReadStartArray
protected void doReadStartArray()- Specified by:
doReadStartArray
in classorg.bson.AbstractBsonReader
-
doReadStartDocument
protected void doReadStartDocument()- Specified by:
doReadStartDocument
in classorg.bson.AbstractBsonReader
-
doReadString
- Specified by:
doReadString
in classorg.bson.AbstractBsonReader
-
doReadSymbol
- Specified by:
doReadSymbol
in classorg.bson.AbstractBsonReader
-
doReadTimestamp
protected org.bson.BsonTimestamp doReadTimestamp()- Specified by:
doReadTimestamp
in classorg.bson.AbstractBsonReader
-
doReadUndefined
protected void doReadUndefined()- Specified by:
doReadUndefined
in classorg.bson.AbstractBsonReader
-
doSkipName
protected void doSkipName()- Specified by:
doSkipName
in classorg.bson.AbstractBsonReader
-
doSkipValue
protected void doSkipValue()- Specified by:
doSkipValue
in classorg.bson.AbstractBsonReader
-
getMark
public org.bson.BsonReaderMark getMark() -
getContext
- Overrides:
getContext
in classorg.bson.AbstractBsonReader
-