Class InsertOneModel<T>


  • public class InsertOneModel<T>
    extends WriteModel<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      InsertOneModel​(T document)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getDocument()
      Gets the document to insert.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InsertOneModel

        public InsertOneModel​(T document)
        Construct a new instance.
        Parameters:
        document - the document to insert, which may not be null.
    • Method Detail

      • getDocument

        public T getDocument()
        Gets the document to insert.
        Returns:
        the document to insert