Class RenameCollectionOptions



  • public class RenameCollectionOptions
    extends java.lang.Object
    The options to apply when renaming a collection.
    Since:
    3.0
    MongoDB documentation
    renameCollection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RenameCollectionOptions dropTarget​(boolean dropTarget)
      Sets if mongod should drop the target of renameCollection prior to renaming the collection.
      boolean isDropTarget​()
      Gets if mongod should drop the target of renameCollection prior to renaming the collection.
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RenameCollectionOptions

        public RenameCollectionOptions​()
    • Method Detail

      • isDropTarget

        public boolean isDropTarget​()
        Gets if mongod should drop the target of renameCollection prior to renaming the collection.
        Returns:
        true if mongod should drop the target of renameCollection prior to renaming the collection.
      • dropTarget

        public RenameCollectionOptions dropTarget​(boolean dropTarget)
        Sets if mongod should drop the target of renameCollection prior to renaming the collection.
        Parameters:
        dropTarget - true if mongod should drop the target of renameCollection prior to renaming the collection.
        Returns:
        this
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object