public class BindableMongoExpression extends Object implements MongoExpression
MongoExpression using the ParameterBindingDocumentCodec for parsing a raw (json)
 expression. The expression will be wrapped within { ... } if necessary. The actual parsing and parameter
 binding of placeholders like ?0 is delayed upon first call on the the target Document via
 toDocument().
 
 $toUpper : $name                -> { '$toUpper' : '$name' }
 { '$toUpper' : '$name' }        -> { '$toUpper' : '$name' }
 { '$toUpper' : '?0' }, "$name"  -> { '$toUpper' : '$name' }
 
 Some types might require a special Codec. If so, make sure to provide a CodecRegistry
 containing the required codec via withCodecRegistry(CodecRegistry).| Constructor and Description | 
|---|
| BindableMongoExpression(String expression,
                       CodecRegistryProvider codecRegistryProvider,
                       Object[] args)Create a new instance of  BindableMongoExpression. | 
| BindableMongoExpression(String expression,
                       Object[] args)Create a new instance of  BindableMongoExpression. | 
| Modifier and Type | Method and Description | 
|---|---|
| BindableMongoExpression | bind(Object... args)Provide the arguments to bind to the placeholders via their index. | 
| org.bson.Document | toDocument()Obtain the native  Documentrepresentation. | 
| String | toString() | 
| BindableMongoExpression | withCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)Provide the  CodecRegistryused to convert expressions. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, createpublic BindableMongoExpression(String expression, @Nullable Object[] args)
BindableMongoExpression.expression - must not be null.args - can be null.public BindableMongoExpression(String expression, @Nullable CodecRegistryProvider codecRegistryProvider, @Nullable Object[] args)
BindableMongoExpression.expression - must not be null.codecRegistryProvider - can be null.args - can be null.public BindableMongoExpression withCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)
CodecRegistry used to convert expressions.codecRegistry - must not be null.BindableMongoExpression.public BindableMongoExpression bind(Object... args)
args - must not be null.BindableMongoExpression.public org.bson.Document toDocument()
MongoExpressionDocument representation.toDocument in interface MongoExpressionCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.