Package org.bson.codecs
Class ObjectIdGenerator
- java.lang.Object
 - 
- org.bson.codecs.ObjectIdGenerator
 
 
- 
- All Implemented Interfaces:
 IdGenerator
public class ObjectIdGenerator extends java.lang.Object implements IdGenerator
Creates newObjectIdinstances as IDs for MongoDB Documents.- Since:
 - 3.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ObjectIdGenerator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectgenerate()Generates an ID for a MongoDB Document. 
 - 
 
- 
- 
Method Detail
- 
generate
public java.lang.Object generate()
Description copied from interface:IdGeneratorGenerates an ID for a MongoDB Document.- Specified by:
 generatein interfaceIdGenerator- Returns:
 - any type of Object representing an ID.
 
 
 - 
 
 -