Package org.bson.codecs
Interface IdGenerator
- 
- All Known Implementing Classes:
 ObjectIdGenerator
public interface IdGeneratorClasses that implement this interface define a way to create IDs for MongoDB documents.- Since:
 - 3.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectgenerate()Generates an ID for a MongoDB Document. 
 - 
 
- 
- 
Method Detail
- 
generate
Object generate()
Generates an ID for a MongoDB Document.- Returns:
 - any type of Object representing an ID.
 
 
 - 
 
 -