de.undercouch.bson4jackson.types
Class ObjectId

java.lang.Object
  extended by de.undercouch.bson4jackson.types.ObjectId

public class ObjectId
extends java.lang.Object

A unique identifier for MongoDB documents. Such identifiers consist of a timestamp, a machine ID and a counter.


Constructor Summary
ObjectId(int time, int machine, int inc)
          Constructs a new identifier
 
Method Summary
 int getInc()
           
 int getMachine()
           
 int getTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectId

public ObjectId(int time,
                int machine,
                int inc)
Constructs a new identifier

Parameters:
time - the timestamp
machine - the machine ID
inc - the counter
Method Detail

getTime

public int getTime()
Returns:
the timestamp

getMachine

public int getMachine()
Returns:
the machine ID

getInc

public int getInc()
Returns:
the counter