Package de.bild.codec
Class ObjectIdGenerator
java.lang.Object
de.bild.codec.ObjectIdGenerator
- All Implemented Interfaces:
IdGenerator<org.bson.types.ObjectId>,InstanceAwareIdGenerator<org.bson.types.ObjectId,Object>
- Direct Known Subclasses:
Id.DefaultIdGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonValueasBsonValue(org.bson.types.ObjectId id, TypeCodecRegistry typeCodecRegistry) org.bson.types.ObjectIdgenerate()Generate id without knowledge of the instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.bild.codec.IdGenerator
generate
-
Constructor Details
-
ObjectIdGenerator
public ObjectIdGenerator()
-
-
Method Details
-
generate
public org.bson.types.ObjectId generate()Description copied from interface:IdGeneratorGenerate id without knowledge of the instance- Specified by:
generatein interfaceIdGenerator<org.bson.types.ObjectId>- Returns:
- a new id
-
asBsonValue
public org.bson.BsonValue asBsonValue(org.bson.types.ObjectId id, TypeCodecRegistry typeCodecRegistry) - Specified by:
asBsonValuein interfaceInstanceAwareIdGenerator<org.bson.types.ObjectId,Object>
-