package field
- Alphabetic
- Public
- All
Type Members
-
class
BsonRecordField
[OwnerType <: BsonRecord[OwnerType], SubRecordType <: BsonRecord[SubRecordType]] extends Field[SubRecordType, OwnerType] with MandatoryTypedField[SubRecordType]
Field that contains an entire record represented as an inline object value.
Field that contains an entire record represented as an inline object value. Inspired by JSONSubRecordField
- class BsonRecordListField [OwnerType <: BsonRecord[OwnerType], SubRecordType <: BsonRecord[SubRecordType]] extends MongoListField[OwnerType, SubRecordType]
- class DBRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends Field[DBRef, OwnerType] with MandatoryTypedField[DBRef]
- class DateField [OwnerType <: BsonRecord[OwnerType]] extends Field[Date, OwnerType] with MandatoryTypedField[Date] with DateTypedField
- trait DateTypedField extends TypedField[Date]
- trait IntPk [OwnerType <: MongoRecord[OwnerType]] extends MongoPk[IntField[OwnerType]]
- class IntRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends IntField[OwnerType] with MongoRefField[RefType, Int]
- class IntRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends MongoRefListField[OwnerType, RefType, Int]
- class JObjectField [OwnerType <: BsonRecord[OwnerType]] extends Field[JObject, OwnerType] with MandatoryTypedField[JObject] with MongoFieldFlavor[JObject]
- abstract class JsonObjectField [OwnerType <: BsonRecord[OwnerType], JObjectType <: JsonObject[JObjectType]] extends Field[JObjectType, OwnerType] with MandatoryTypedField[JObjectType] with MongoFieldFlavor[JObjectType]
- trait LongPk [OwnerType <: MongoRecord[OwnerType]] extends MongoPk[LongField[OwnerType]]
- class LongRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends LongField[OwnerType] with MongoRefField[RefType, Long]
- class LongRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends MongoRefListField[OwnerType, RefType, Long]
- class MongoCaseClassField [OwnerType <: Record[OwnerType], CaseType] extends Field[CaseType, OwnerType] with MandatoryTypedField[CaseType] with MongoFieldFlavor[CaseType]
- class MongoCaseClassListField [OwnerType <: Record[OwnerType], CaseType] extends Field[List[CaseType], OwnerType] with MandatoryTypedField[List[CaseType]] with MongoFieldFlavor[List[CaseType]]
-
trait
MongoFieldFlavor
[MyType] extends AnyRef
Describes common aspects related to Mongo fields
- class MongoJsonObjectListField [OwnerType <: BsonRecord[OwnerType], JObjectType <: JsonObject[JObjectType]] extends MongoListField[OwnerType, JObjectType]
-
class
MongoListField
[OwnerType <: BsonRecord[OwnerType], ListType] extends Field[List[ListType], OwnerType] with MandatoryTypedField[List[ListType]] with MongoFieldFlavor[List[ListType]]
List field.
List field.
Supported types: primitives - String, Int, Long, Double, Float, Byte, BigInt, Boolean (and their Java equivalents) date types - java.util.Date, org.joda.time.DateTime mongo types - ObjectId, Pattern, UUID
If you need to support other types, you will need to override the asDBObject and setFromDBObject functions accordingly. And the asJValue and setFromJValue functions if you will be using them.
Note: setting optional_? = false will result in incorrect equals behavior when using setFromJValue
-
class
MongoMapField
[OwnerType <: BsonRecord[OwnerType], MapValueType] extends Field[Map[String, MapValueType], OwnerType] with MandatoryTypedField[Map[String, MapValueType]] with MongoFieldFlavor[Map[String, MapValueType]]
Note: setting optional_? = false will result in incorrect equals behavior when using setFromJValue
- class MongoPasswordField [OwnerType <: BsonRecord[OwnerType]] extends JsonObjectField[OwnerType, Password]
- trait MongoPk [PkType] extends AnyRef
- trait MongoRefField [RefType <: MongoRecord[RefType], MyType] extends TypedField[MyType]
- abstract class MongoRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType], MyType] extends MongoListField[OwnerType, MyType]
- class ObjectIdField [OwnerType <: BsonRecord[OwnerType]] extends Field[ObjectId, OwnerType] with MandatoryTypedField[ObjectId]
- trait ObjectIdPk [OwnerType <: MongoRecord[OwnerType]] extends MongoPk[ObjectIdField[OwnerType]]
- class ObjectIdRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends ObjectIdField[OwnerType] with MongoRefField[RefType, ObjectId]
- class ObjectIdRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends MongoRefListField[OwnerType, RefType, ObjectId]
- class OptionalDateField [OwnerType <: BsonRecord[OwnerType]] extends Field[Date, OwnerType] with OptionalTypedField[Date] with DateTypedField
- case class Password (pwd: String, salt: String) extends JsonObject[Password] with Product with Serializable
- class PatternField [OwnerType <: BsonRecord[OwnerType]] extends Field[Pattern, OwnerType] with MandatoryTypedField[Pattern]
- trait StringPk [OwnerType <: MongoRecord[OwnerType]] extends MongoPk[StringField[OwnerType]]
- class StringRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends StringField[OwnerType] with MongoRefField[RefType, String]
- class StringRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends MongoRefListField[OwnerType, RefType, String]
- class UUIDField [OwnerType <: BsonRecord[OwnerType]] extends Field[UUID, OwnerType] with MandatoryTypedField[UUID]
- trait UUIDPk [OwnerType <: MongoRecord[OwnerType]] extends MongoPk[UUIDField[OwnerType]]
- class UUIDRefField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends UUIDField[OwnerType] with MongoRefField[RefType, UUID]
- class UUIDRefListField [OwnerType <: BsonRecord[OwnerType], RefType <: MongoRecord[RefType]] extends MongoRefListField[OwnerType, RefType, UUID]
Value Members
- object MongoPasswordField
- object Password extends JsonObjectMeta[Password] with Serializable