Packages

  • package root
    Definition Classes
    root
  • package reactivemongo
    Definition Classes
    root
  • package bson
    Definition Classes
    reactivemongo
  • object Macros

    Macros for generating BSONReader and BSONWriter implementations for case at compile time.

    Macros for generating BSONReader and BSONWriter implementations for case at compile time. Invoking these macros is equivalent to writing anonymous class implementations by hand.

    case class Person(name: String, surname: String)
    implicit val personHandler = Macros.handler[Person]
    Definition Classes
    bson
    See also

    Macros.Options for specific options

  • Annotations
  • Options
  • Placeholder

object Options

Methods with 'Opts' postfix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Options
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AutomaticMaterialization extends Default

    For a sealed family (all implementations of a sealed trait or defined explicit union types), this option enables the automatic materialization of handlers for the member types.

    For a sealed family (all implementations of a sealed trait or defined explicit union types), this option enables the automatic materialization of handlers for the member types.

    If used, make sure it cannot lead to type recursion issue (disabled by default).

  2. trait Default extends AnyRef

    The default options that are implied if invoking "non-Opts" method.

    The default options that are implied if invoking "non-Opts" method. All other options extend this.

  3. trait SaveSimpleName extends SaveClassName with Default

    Same as SaveClassName but using the class simple name (i.e.

    Same as SaveClassName but using the class simple name (i.e. Not the fully-qualified name).

  4. trait SimpleUnionType[Types <: \/[_, _]] extends UnionType[Types] with SaveSimpleName with Default

    Same as UnionType but saving the class’ simple name io.

    Same as UnionType but saving the class’ simple name io. the fully-qualified name.

    Types

    to use in pattern matching. Listed in a "type list" \/

  5. trait UnionType[Types <: \/[_, _]] extends SaveClassName with Default

    Use type parameter A as static type but use pattern matching to handle different possible subtypes.

    Use type parameter A as static type but use pattern matching to handle different possible subtypes. This makes it easy to persist algebraic data types(pattern where you have a sealed trait and several implementing case classes). When writing a case class into BSON its dynamic type will be pattern matched, when reading from BSON the pattern matching will be done on the className string. This option extends reactivemongo.bson.Macros.Options.SaveClassName in to ensure class names are always serialized.

    Types

    to use in pattern matching. Listed in a "type list" \/

  6. trait Verbose extends Default

    Print out generated code during compilation.

  7. trait \/[A, B] extends AnyRef

    Type for making type-level lists for UnionType.

    Type for making type-level lists for UnionType. If second parameter is another \/ it will be flattend out into a list and so on. Using infix notation makes much more sense since it then looks like a logical disjunction.

    Foo \/ Bar \/ Baz is interpreted as type Foo or type Bar or type Baz

  8. trait AllImplementations extends SaveClassName with Default

    Similar to reactivemongo.bson.Macros.Options.UnionType but finds all implementations of the top trait automatically.

    Similar to reactivemongo.bson.Macros.Options.UnionType but finds all implementations of the top trait automatically.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC2) Default behaviour for sealed trait, if union types are not explicitly defined

  9. trait SaveClassName extends Default

    In write method also store class name (dynamic type) as a string in a property named "className".

    In write method also store class name (dynamic type) as a string in a property named "className".

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC2) Default behaviour for sealed trait, if union types are not explicitly defined

  10. trait SimpleAllImplementations extends AllImplementations with SaveSimpleName with Default

    Same as AllImplementations but saving the simple name (e.g.

    Same as AllImplementations but saving the simple name (e.g. the fully-qualified name).

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC2) Default behaviour for sealed trait, if union types are not explicitly defined

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped