reactivemongo.bson

BSONObjectID

object BSONObjectID extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BSONObjectID
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(array: Array[Byte]): BSONObjectID

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromTime(timeMillis: Long, fillOnlyTimestamp: Boolean = true): BSONObjectID

    Generates a new BSON ObjectID from the given timestamp in milliseconds.

    Generates a new BSON ObjectID from the given timestamp in milliseconds.

    The included timestamp is the number of seconds since epoch, so a BSONObjectID time part has only a precision up to the second. To get a reasonably unique ID, you _must_ set onlyTimestamp to false.

    Crafting a BSONObjectID from a timestamp with fillOnlyTimestamp set to true is helpful for range queries, eg if you want of find documents an _id field which timestamp part is greater than or lesser than the one of another id.

    If you do not intend to use the produced BSONObjectID for range queries, then you'd rather use the generate method instead.

    fillOnlyTimestamp

    if true, the returned BSONObjectID will only have the timestamp bytes set; the other will be set to zero.

  13. def generate(): BSONObjectID

    Generates a new BSON ObjectID using the current time.

    Generates a new BSON ObjectID using the current time.

    See also

    fromTime

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def parse(id: String): Try[BSONObjectID]

    Tries to make a BSON ObjectId from a hexadecimal string representation.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. def unapply(id: BSONObjectID): Option[Array[Byte]]

  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(id: String): BSONObjectID

    Constructs a BSON ObjectId element from a hexadecimal String representation.

    Constructs a BSON ObjectId element from a hexadecimal String representation. Throws an exception if the given argument is not a valid ObjectID.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) parse(str: String): Try[BSONObjectID] should be considered instead of this method

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped