Packages

package codecs

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

Type Members

  1. type BsonTypeClassMap = org.bson.codecs.BsonTypeClassMap

    Type alias to the BsonTypeClassMap

  2. type BsonTypeCodecMap = org.bson.codecs.BsonTypeCodecMap

    Type alias to the BsonTypeCodecMap

  3. case class IterableCodec(registry: CodecRegistry, bsonTypeClassMap: BsonTypeClassMap, valueTransformer: Transformer) extends Codec[Iterable[_]] with Product with Serializable

    Encodes and decodes Iterable objects.

    Encodes and decodes Iterable objects.

    Annotations
    @SuppressWarnings()
    Since

    1.2

  4. case class IterableCodecProvider(bsonTypeClassMap: BsonTypeClassMap, valueTransformer: Option[Transformer]) extends CodecProvider with Product with Serializable

    A CodecProvider for classes than implement the Iterable interface.

    A CodecProvider for classes than implement the Iterable interface.

    bsonTypeClassMap

    the non-null BsonTypeClassMap with which to construct instances of DocumentCodec and ListCodec.

    valueTransformer

    the value transformer for decoded values

    Since

    1.2

Value Members

  1. object BsonTypeClassMap

    Companion to return the default BsonTypeClassMap

  2. object IterableCodec extends Serializable

    IterableCodec companion object

    IterableCodec companion object

    Since

    1.2

  3. object IterableCodecProvider extends Serializable

    IterableCodecProvider companion object

    IterableCodecProvider companion object

    Since

    1.2

  4. object Macros

    Macro based Codecs

    Macro based Codecs

    Allows the compile time creation of Codecs for case classes.

    The recommended approach is to use the implicit Macros.createCodecProvider[T](clazz:Class[T])* method to help build a codecRegistry: import org.mongodb.scala.bson.cn.playscala.mongo.codecs.Macros.createCodecProvider import org.bson.cn.playscala.mongo.codecs.configuration.CodecRegistries.{fromRegistries, fromProviders}

    case class Contact(phone: String) case class User(_id: Int, username: String, age: Int, hobbies: List[String], contacts: List[Contact])

    val codecRegistry = fromRegistries(fromProviders(classOf[User], classOf[Contact]), MongoClient.DEFAULT_CODEC_REGISTRY)

    Since

    2.0

Inherited from AnyRef

Inherited from Any

Ungrouped