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
  • Constructor Details

    • ParameterBindingJsonReader

      public ParameterBindingJsonReader(String json)
      Constructs a new instance with the given JSON string.
      Parameters:
      json - A string representation of a JSON.
    • ParameterBindingJsonReader

      public ParameterBindingJsonReader(String json, Object[] values)
      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

      public ParameterBindingJsonReader(String json, ParameterBindingContext bindingContext)
  • Method Details

    • doReadBinaryData

      protected org.bson.BsonBinary doReadBinaryData()
      Specified by:
      doReadBinaryData in class org.bson.AbstractBsonReader
    • doPeekBinarySubType

      protected byte doPeekBinarySubType()
      Specified by:
      doPeekBinarySubType in class org.bson.AbstractBsonReader
    • doPeekBinarySize

      protected int doPeekBinarySize()
      Specified by:
      doPeekBinarySize in class org.bson.AbstractBsonReader
    • doReadBoolean

      protected boolean doReadBoolean()
      Specified by:
      doReadBoolean in class org.bson.AbstractBsonReader
    • readBsonType

      public org.bson.BsonType readBsonType()
      Specified by:
      readBsonType in interface org.bson.BsonReader
      Specified by:
      readBsonType in class org.bson.AbstractBsonReader
    • setState

      public void setState(org.bson.AbstractBsonReader.State newState)
      Overrides:
      setState in class org.bson.AbstractBsonReader
    • doReadDecimal128

      public org.bson.types.Decimal128 doReadDecimal128()
      Specified by:
      doReadDecimal128 in class org.bson.AbstractBsonReader
    • doReadDateTime

      protected long doReadDateTime()
      Specified by:
      doReadDateTime in class org.bson.AbstractBsonReader
    • doReadDouble

      protected double doReadDouble()
      Specified by:
      doReadDouble in class org.bson.AbstractBsonReader
    • doReadEndArray

      protected void doReadEndArray()
      Specified by:
      doReadEndArray in class org.bson.AbstractBsonReader
    • doReadEndDocument

      protected void doReadEndDocument()
      Specified by:
      doReadEndDocument in class org.bson.AbstractBsonReader
    • doReadInt32

      protected int doReadInt32()
      Specified by:
      doReadInt32 in class org.bson.AbstractBsonReader
    • doReadInt64

      protected long doReadInt64()
      Specified by:
      doReadInt64 in class org.bson.AbstractBsonReader
    • doReadJavaScript

      protected String doReadJavaScript()
      Specified by:
      doReadJavaScript in class org.bson.AbstractBsonReader
    • doReadJavaScriptWithScope

      protected String doReadJavaScriptWithScope()
      Specified by:
      doReadJavaScriptWithScope in class org.bson.AbstractBsonReader
    • doReadMaxKey

      protected void doReadMaxKey()
      Specified by:
      doReadMaxKey in class org.bson.AbstractBsonReader
    • doReadMinKey

      protected void doReadMinKey()
      Specified by:
      doReadMinKey in class org.bson.AbstractBsonReader
    • doReadNull

      protected void doReadNull()
      Specified by:
      doReadNull in class org.bson.AbstractBsonReader
    • doReadObjectId

      protected org.bson.types.ObjectId doReadObjectId()
      Specified by:
      doReadObjectId in class org.bson.AbstractBsonReader
    • doReadRegularExpression

      protected org.bson.BsonRegularExpression doReadRegularExpression()
      Specified by:
      doReadRegularExpression in class org.bson.AbstractBsonReader
    • doReadDBPointer

      protected org.bson.BsonDbPointer doReadDBPointer()
      Specified by:
      doReadDBPointer in class org.bson.AbstractBsonReader
    • doReadStartArray

      protected void doReadStartArray()
      Specified by:
      doReadStartArray in class org.bson.AbstractBsonReader
    • doReadStartDocument

      protected void doReadStartDocument()
      Specified by:
      doReadStartDocument in class org.bson.AbstractBsonReader
    • doReadString

      protected String doReadString()
      Specified by:
      doReadString in class org.bson.AbstractBsonReader
    • doReadSymbol

      protected String doReadSymbol()
      Specified by:
      doReadSymbol in class org.bson.AbstractBsonReader
    • doReadTimestamp

      protected org.bson.BsonTimestamp doReadTimestamp()
      Specified by:
      doReadTimestamp in class org.bson.AbstractBsonReader
    • doReadUndefined

      protected void doReadUndefined()
      Specified by:
      doReadUndefined in class org.bson.AbstractBsonReader
    • doSkipName

      protected void doSkipName()
      Specified by:
      doSkipName in class org.bson.AbstractBsonReader
    • doSkipValue

      protected void doSkipValue()
      Specified by:
      doSkipValue in class org.bson.AbstractBsonReader
    • getMark

      public org.bson.BsonReaderMark getMark()
    • getContext

      protected ParameterBindingJsonReader.Context getContext()
      Overrides:
      getContext in class org.bson.AbstractBsonReader