クラス BindableMongoExpression
java.lang.ObjectSE
org.springframework.data.mongodb.BindableMongoExpression
- 実装されているすべてのインターフェース:
MongoExpression
ParameterBindingDocumentCodec を使用して生の (json) 式を解析する MongoExpression。式は必要に応じて {... } 内にラップされます。?0 などのプレースホルダーの実際の解析とパラメーターバインディングは、toDocument() を介してターゲット Document での最初の呼び出し時に遅延されます。
$toUpper : $name -> { '$toUpper' : '$name' }
{ '$toUpper' : '$name' } -> { '$toUpper' : '$name' }
{ '$toUpper' : '?0' }, "$name" -> { '$toUpper' : '$name' }
一部の型では、特別な Codec が必要になる場合があります。その場合は、必要な codec を含む CodecRegistry を withCodecRegistry(CodecRegistry) 経由で提供してください。- 導入:
- 3.2
- 作成者:
- Christoph Strobl, Giacomo Baso
コンストラクターの概要
コンストラクターコンストラクター説明BindableMongoExpression(StringSE expression, @Nullable CodecRegistryProvider codecRegistryProvider, ObjectSE @Nullable[] args) BindableMongoExpressionの新しいインスタンスを作成します。BindableMongoExpression(StringSE expression, ObjectSE @Nullable[] args) BindableMongoExpressionの新しいインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明インデックスを介してプレースホルダーにバインドする引数を指定します。org.bson.DocumentネイティブDocument表現を取得します。toString()withCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry) 式を変換するために使用されるCodecRegistryを提供します。
コンストラクターの詳細
BindableMongoExpression
BindableMongoExpressionの新しいインスタンスを作成します。- パラメーター:
expression- null であってはなりません。args- null であってはなりませんが、null 要素を含むことはできます。
BindableMongoExpression
public BindableMongoExpression(StringSE expression, @Nullable CodecRegistryProvider codecRegistryProvider, ObjectSE @Nullable [] args) BindableMongoExpressionの新しいインスタンスを作成します。- パラメーター:
expression- null であってはなりません。codecRegistryProvider- null でもかまいません。args- null であってはなりませんが、null 要素を含むことはできます。
メソッドの詳細
withCodecRegistry
@Contract("_ -> new") public BindableMongoExpression withCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry) 式を変換するために使用されるCodecRegistryを提供します。- パラメーター:
codecRegistry- null であってはなりません。- 戻り値:
BindableMongoExpressionの新しいインスタンス。
bind
インデックスを介してプレースホルダーにバインドする引数を指定します。- パラメーター:
args- null であってはなりません。- 戻り値:
BindableMongoExpressionの新しいインスタンス。
toDocument
public org.bson.Document toDocument()インターフェースからコピーされた説明:MongoExpressionネイティブDocument表現を取得します。- 次で指定:
- インターフェース
MongoExpressionのtoDocument - 戻り値:
- 決して null にはなりません。
toString