Object

org.mongodb.scala.bson

BsonMagnets

Related Doc: package bson

Permalink

object BsonMagnets

A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.

Attributes
protected
Since

1.0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BsonMagnets
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CanBeBsonElement extends AnyRef

    Permalink

    Represents a single BsonElement

    Represents a single BsonElement

    This is essentially a (String, BsonValue) key value pair. Any pair of (String, T) where type T has a BsonTransformer in scope into a BsonValue is also a valid pair.

  2. sealed trait CanBeBsonElements extends Any

    Permalink

    Represents a sequence of BsonElements

    Represents a sequence of BsonElements

    This is essentially a Iterable[(String, BsonValue)] of key value pairs. Any pair of (String, T) where type T has a BsonTransformer in scope into a BsonValue is also a valid pair.

  3. sealed trait CanBeBsonValue extends AnyRef

    Permalink

    Represents any single BsonValue

    Represents any single BsonValue

    This is a BsonValue or any type of T that has a BsonTransformer in scope for the given type.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  12. implicit def iterableToCanBeBsonElements[T](elems: Iterable[(String, T)])(implicit transformer: BsonTransformer[T]): CanBeBsonElements

    Permalink

    Implicitly converts any iterable of key/value pairs into a CanBeBsonElements.

    Implicitly converts any iterable of key/value pairs into a CanBeBsonElements.

    T

    the type of the values

    elems

    the iterable of key/value pairs

    transformer

    the implicit transformer for the values

    returns

    CanBeBsonElements representing the key/value pairs

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. implicit def singleToCanBeBsonValue[T](v: T)(implicit transformer: BsonTransformer[T]): CanBeBsonValue

    Permalink

    Implicitly converts type T to a BsonValue as long as there is a BsonTransformer in scope for the given type.

    Implicitly converts type T to a BsonValue as long as there is a BsonTransformer in scope for the given type.

    T

    the type of the initial value

    v

    the initial value

    transformer

    implicitly provided BsonTransformer that needs to be in scope for type T to be transformed into a BsonValue

    returns

    A CanBeBsonValue that holds the transformed BsonValue

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

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. implicit def tupleToCanBeBsonElement[T](kv: (String, T))(implicit transformer: BsonTransformer[T]): CanBeBsonElement

    Permalink

    Implicitly converts key/value tuple of type (String, T) into a CanBeBsonElement

    Implicitly converts key/value tuple of type (String, T) into a CanBeBsonElement

    T

    the type of the value

    kv

    the key value pair

    transformer

    the implicit BsonTransformer for the value

    returns

    a CanBeBsonElement representing the key/value pair

  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped