public class BsonObjectIdKeyGenerator extends Object implements KeyGenerator<org.bson.types.ObjectId>
| Constructor and Description |
|---|
BsonObjectIdKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
org.bson.types.ObjectId |
generate()
Generates a new key and returns the value
|
public org.bson.types.ObjectId generate()
KeyGeneratorgenerate in interface KeyGenerator<org.bson.types.ObjectId>Copyright © 2014–2021. All rights reserved.