Class ObjectIdGenerator

  • All Implemented Interfaces:

    public class ObjectIdGenerator
    extends java.lang.Object
    implements IdGenerator
    Creates new ObjectId instances as IDs for MongoDB Documents.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object generate()
      Generates an ID for a MongoDB Document.
      • Methods inherited from class java.lang.Object

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

      • ObjectIdGenerator

        public ObjectIdGenerator()
    • Method Detail

      • generate

        public java.lang.Object generate()
        Description copied from interface: IdGenerator
        Generates an ID for a MongoDB Document.
        Specified by:
        generate in interface IdGenerator
        any type of Object representing an ID.