trait BsonRecord[MyType <: BsonRecord[MyType]] extends Record[MyType]
Specialized Record that can be encoded and decoded from BSON (DBObject)
- Self Type
- MyType
- Alphabetic
- By Inheritance
- BsonRecord
- Record
- FieldContainer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
meta: BsonMetaRecord[MyType]
Refines meta to require a BsonMetaRecord
Refines meta to require a BsonMetaRecord
- Definition Classes
- BsonRecord → Record
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allFields: List[Field[_, MyType]]
- Definition Classes
- Record → FieldContainer
-
def
asDBObject: DBObject
Encode a record instance into a DBObject
- def asDocument: Document
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJObject: JObject
Encode this record instance as a JObject
Encode this record instance as a JObject
- Definition Classes
- Record
-
def
asJSON: JsExp
Returns the JSON representation of this record
-
def
asJValue: JValue
Encode this record instance as a JValue
Encode this record instance as a JValue
- Definition Classes
- Record
-
def
asJsExp: JsExp
Returns the JSON representation of this record, converts asJValue to JsObj
Returns the JSON representation of this record, converts asJValue to JsObj
- returns
a JsObj
- Definition Classes
- Record
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
copy: MyType
- Definition Classes
- Record
-
def
dirty_?: Boolean
- Definition Classes
- Record
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Record → AnyRef → Any
-
def
equalsWithPatternCheck(other: Any): Boolean
Pattern.equals doesn't work properly so it needs a special check.
Pattern.equals doesn't work properly so it needs a special check. If you use PatternField, be sure to override equals with this.
- Attributes
- protected
-
def
fieldByName(fieldName: String): Box[Field[_, MyType]]
Find the field by name
Find the field by name
- fieldName
-- the name of the field to find
- returns
Box[MappedField]
- Definition Classes
- Record
-
def
fields(): List[Field[_, MyType]]
Get the fields defined on the meta object for this record instance
Get the fields defined on the meta object for this record instance
- Definition Classes
- Record
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
runSafe[T](f: ⇒ T): T
- Definition Classes
- Record
-
final
def
safe_?: Boolean
Is it safe to make changes to the record (or should we check access control?)
Is it safe to make changes to the record (or should we check access control?)
- Definition Classes
- Record
-
def
saveTheRecord(): Box[MyType]
Save the instance and return the instance
Save the instance and return the instance
- Definition Classes
- BsonRecord → Record
-
def
setFieldsFromDBObject(dbo: DBObject): Unit
Set the fields of this record from the given DBObject
-
def
setFieldsFromJValue(jvalue: JValue): Box[Unit]
Set the fields of this record from the given JValue
Set the fields of this record from the given JValue
- Definition Classes
- Record
-
def
setFieldsFromJsonString(json: String): Box[Unit]
Sets the fields of this Record from the given JSON.
Sets the fields of this Record from the given JSON.
- Definition Classes
- Record
-
def
setFieldsFromReq(req: Req): Unit
Sets the fields of this Record from the given Req.
Sets the fields of this Record from the given Req.
- Definition Classes
- Record
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toForm(f: (MyType) ⇒ Unit): NodeSeq
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- f
- the function to execute on form submission
- returns
the form
- Definition Classes
- Record
-
def
toForm(button: Box[String])(f: (MyType) ⇒ Unit): NodeSeq
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- button
- If it's Full, put a submit button on the form with the value of the parameter
- f
- the function to execute on form submission
- returns
the form
- Definition Classes
- Record
-
def
toString(): String
- Definition Classes
- Record → AnyRef → Any
-
def
toXHtml: NodeSeq
Returns the HTML representation of this Record
Returns the HTML representation of this Record
- Definition Classes
- Record
-
def
validate: List[FieldError]
Validates this Record by calling validators for each field
Validates this Record by calling validators for each field
- returns
a List of FieldError. If this list is empty you can assume that record was validated successfully
- Definition Classes
- Record
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )