Uses of Class
org.bson.types.ObjectId
-
Packages that use ObjectId Package Description org.bson Contains the base BSON classes.org.bson.codecs This package contains all the default BSON codecs.org.bson.codecs.pojo This package contains classes specific to mapping user POJOs.org.bson.io Contains classes implementing I/O operations used by BSON objects.org.bson.json JSON serialization and deserialization.org.bson.types Contains classes implementing various BSON types. -
-
Uses of ObjectId in org.bson
Methods in org.bson that return ObjectId Modifier and Type Method Description protected abstract ObjectId
AbstractBsonReader. doReadObjectId()
Handles the logic to read an ObjectIdprotected ObjectId
BsonBinaryReader. doReadObjectId()
protected ObjectId
BsonDocumentReader. doReadObjectId()
ObjectId
BsonDbPointer. getId()
Gets the id.ObjectId
BasicBSONObject. getObjectId(String field)
Returns the object id or null if not set.ObjectId
BasicBSONObject. getObjectId(String field, ObjectId def)
Returns the object id or def if not set.ObjectId
Document. getObjectId(Object key)
Gets the value of the given key as an ObjectId.ObjectId
BsonObjectId. getValue()
Get theObjectId
value.ObjectId
AbstractBsonReader. readObjectId()
ObjectId
AbstractBsonReader. readObjectId(String name)
ObjectId
BsonReader. readObjectId()
Reads a BSON ObjectId from the reader.ObjectId
BsonReader. readObjectId(String name)
Reads a BSON ObjectId element from the reader.Methods in org.bson with parameters of type ObjectId Modifier and Type Method Description Object
LazyBSONCallback. createDBRef(String ns, ObjectId id)
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).protected abstract void
AbstractBsonWriter. doWriteObjectId(ObjectId value)
Handles the logic of writing an ObjectIdvoid
BsonBinaryWriter. doWriteObjectId(ObjectId value)
void
BsonDocumentWriter. doWriteObjectId(ObjectId value)
ObjectId
BasicBSONObject. getObjectId(String field, ObjectId def)
Returns the object id or def if not set.void
BasicBSONCallback. gotDBRef(String name, String namespace, ObjectId id)
void
BSONCallback. gotDBRef(String name, String namespace, ObjectId id)
Invoked whenBSONDecoder
encountered aBsonType.DB_POINTER
type field in a byte sequence.void
EmptyBSONCallback. gotDBRef(String name, String namespace, ObjectId id)
void
BasicBSONCallback. gotObjectId(String name, ObjectId id)
void
BSONCallback. gotObjectId(String name, ObjectId id)
Called when reading a field with aBsonType.OBJECT_ID
value.void
EmptyBSONCallback. gotObjectId(String name, ObjectId id)
protected void
BasicBSONEncoder. putObjectId(String name, ObjectId objectId)
Encodes an ObjectId field to aBsonType.OBJECT_ID
.void
AbstractBsonWriter. writeObjectId(String name, ObjectId objectId)
void
AbstractBsonWriter. writeObjectId(ObjectId objectId)
void
BsonWriter. writeObjectId(String name, ObjectId objectId)
Writes a BSON ObjectId element to the writer.void
BsonWriter. writeObjectId(ObjectId objectId)
Writes a BSON ObjectId to the writer.Constructors in org.bson with parameters of type ObjectId Constructor Description BsonDbPointer(String namespace, ObjectId id)
Construct a new instance with the given namespace and id.BsonObjectId(ObjectId value)
Construct a new instance with the givenObjectId
instance. -
Uses of ObjectId in org.bson.codecs
Methods in org.bson.codecs that return ObjectId Modifier and Type Method Description ObjectId
ObjectIdCodec. decode(BsonReader reader, DecoderContext decoderContext)
Methods in org.bson.codecs that return types with arguments of type ObjectId Modifier and Type Method Description Class<ObjectId>
ObjectIdCodec. getEncoderClass()
Methods in org.bson.codecs with parameters of type ObjectId Modifier and Type Method Description void
ObjectIdCodec. encode(BsonWriter writer, ObjectId value, EncoderContext encoderContext)
-
Uses of ObjectId in org.bson.codecs.pojo
Fields in org.bson.codecs.pojo with type parameters of type ObjectId Modifier and Type Field Description static IdGenerator<ObjectId>
IdGenerators. OBJECT_ID_GENERATOR
A IdGenerator forObjectId
-
Uses of ObjectId in org.bson.io
Methods in org.bson.io that return ObjectId Modifier and Type Method Description ObjectId
BsonInput. readObjectId()
Reads a BSON ObjectId value from the stream.ObjectId
ByteBufferBsonInput. readObjectId()
Methods in org.bson.io with parameters of type ObjectId Modifier and Type Method Description void
BsonOutput. writeObjectId(ObjectId value)
Writes a BSON ObjectId to the stream.void
OutputBuffer. writeObjectId(ObjectId value)
-
Uses of ObjectId in org.bson.json
Methods in org.bson.json that return ObjectId Modifier and Type Method Description protected ObjectId
JsonReader. doReadObjectId()
Methods in org.bson.json that return types with arguments of type ObjectId Modifier and Type Method Description Converter<ObjectId>
JsonWriterSettings. getObjectIdConverter()
A converter from BSON ObjectId values to JSON.Methods in org.bson.json with parameters of type ObjectId Modifier and Type Method Description void
JsonWriter. doWriteObjectId(ObjectId objectId)
Method parameters in org.bson.json with type arguments of type ObjectId Modifier and Type Method Description JsonWriterSettings.Builder
JsonWriterSettings.Builder. objectIdConverter(Converter<ObjectId> objectIdConverter)
Sets the converter from BSON ObjectId values to JSON. -
Uses of ObjectId in org.bson.types
Methods in org.bson.types that return ObjectId Modifier and Type Method Description static ObjectId
ObjectId. createFromLegacyFormat(int time, int machine, int inc)
Deprecated.UseObjectId(int, int)
insteadstatic ObjectId
ObjectId. get()
Gets a new object id.Methods in org.bson.types with parameters of type ObjectId Modifier and Type Method Description int
ObjectId. compareTo(ObjectId other)
-