クラス MongoItemWriterBuilder<T>

java.lang.ObjectSE
org.springframework.batch.item.data.builder.MongoItemWriterBuilder<T>

public class MongoItemWriterBuilder<T> extends ObjectSE
MongoItemWriter のビルダー実装
導入:
4.0
作成者:
Glenn Renfro
関連事項:
  • コンストラクターの詳細

    • MongoItemWriterBuilder

      public MongoItemWriterBuilder()
  • 方法の詳細

    • delete

      public MongoItemWriterBuilder<T> delete(boolean delete)
      ライターに渡されるアイテムを保存するか、データストアから削除するかを示します。false(デフォルト)に設定すると、アイテムが保存されます。true に設定すると、アイテムは削除されます。
      パラメーター:
      delete - 除去インジケーター
      戻り値:
      ビルダーの現在のインスタンス
      関連事項:
    • template

      public MongoItemWriterBuilder<T> template(org.springframework.data.mongodb.core.MongoOperations template)
      書き込むアイテムを保存するために使用する MongoOperations を設定します。
      パラメーター:
      template - 使用するテンプレートの実装。
      戻り値:
      ビルダーの現在のインスタンス
      関連事項:
    • collection

      public MongoItemWriterBuilder<T> collection(StringSE collection)
      書き込む Mongo コレクションの名前を設定します。
      パラメーター:
      collection - コレクションの名前。
      戻り値:
      ビルダーの現在のインスタンス
      関連事項:
    • build

      public MongoItemWriter<T> build()
      MongoItemWriter を検証および構築します。
      戻り値:
      MongoItemWriter