com
.
github
.
aselab
.
activerecord
ActiveModel
trait
ActiveModel
extends
ProductModel
with
FormSerializer
with
JsonSerializer
with
ValidationSupport
Source
ActiveRecord.scala
Linear Supertypes
ValidationSupport
,
JsonSerializer
,
FormSerializer
,
IO
,
Validatable
,
ProductModel
,
Saveable
,
Product
,
Equals
,
AnyRef
,
Any
Known Subclasses
ActiveRecord
,
ActiveRecordBase
,
IntermediateRecord
,
Version
,
Versionable
Type Hierarchy
Learn more about scaladoc diagrams
ActiveModel
ActiveRecordBase[T]
ProductModel
FormSerializer
JsonSerializer
ValidationSupport
Ordering
Alphabetic
By inheritance
Inherited
ActiveModel
ValidationSupport
JsonSerializer
FormSerializer
IO
Validatable
ProductModel
Saveable
Product
Equals
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Abstract Value Members
abstract
def
canEqual
(
that:
Any
)
:
Boolean
Definition Classes
Equals
abstract
def
productArity
:
Int
Definition Classes
Product
abstract
def
productElement
(
n:
Int
)
:
Any
Definition Classes
Product
Concrete Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
lazy val
_companion
:
ProductModelCompanion
[
ActiveModel
.this.type]
Definition Classes
ProductModel
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
asJson
(
onlyFields:
String
*
)
:
JValue
Definition Classes
JsonSerializer
def
asJson
(
onlyFields:
List
[
String
]
)
:
JValue
Definition Classes
JsonSerializer
def
asJson
:
JValue
Definition Classes
JsonSerializer
def
assign
(
data:
Map
[
String
,
Any
]
)
:
ActiveModel
.this.type
Definition Classes
IO
Annotations
@macroImpl
(
...
)
def
assign
(
data: (
String
,
Any
)*
)
:
ActiveModel
.this.type
Definition Classes
IO
Annotations
@macroImpl
(
...
)
def
assignFormValues
(
data:
Map
[
String
,
String
]
)
:
ActiveModel
.this.type
Definition Classes
FormSerializer
def
beforeValidation
()
:
Unit
Attributes
protected
Definition Classes
Validatable
def
clearErrors
()
:
Unit
Definition Classes
Validatable
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
doValidate
()
:
Unit
Definition Classes
ValidationSupport
→
Validatable
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
val
errors
:
Errors
Definition Classes
Validatable
def
fieldErrors
:
Seq
[
ValidationError
]
Definition Classes
Validatable
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
formErrors
:
Seq
[
ValidationError
]
Definition Classes
FormSerializer
def
fromJValue
(
jvalue:
JValue
)
:
ActiveModel
.this.type
Definition Classes
JsonSerializer
def
fromJson
(
json:
String
)
:
ActiveModel
.this.type
Definition Classes
JsonSerializer
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
globalErrors
:
Seq
[
ValidationError
]
Definition Classes
Validatable
def
hasError
(
name:
String
)
:
Boolean
Definition Classes
Validatable
def
hasErrors
:
Boolean
Definition Classes
Validatable
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isNewRecord
:
Boolean
Definition Classes
ActiveModel
→
Saveable
def
isValid
:
Boolean
Definition Classes
Validatable
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
productIterator
:
Iterator
[
Any
]
Definition Classes
Product
def
productPrefix
:
String
Definition Classes
Product
def
save
()
:
Boolean
Definition Classes
Validatable
→
Saveable
def
saveEither
:
Either
[
Errors
,
ActiveModel
.this.type]
Definition Classes
ValidationSupport
def
saveWithoutValidation
()
:
Boolean
Definition Classes
Validatable
def
serializedValue
(
value:
Any
)
:
Any
Attributes
protected
Definition Classes
IO
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toFieldType
(
value:
Any
,
fieldInfo:
FieldInfo
)
:
Any
Definition Classes
FormSerializer
→
IO
def
toFormValues
(
prefix:
Option
[
String
]
)
:
Map
[
String
,
String
]
Definition Classes
FormSerializer
def
toFormValues
:
Map
[
String
,
String
]
Definition Classes
FormSerializer
def
toJson
(
onlyFields:
String
*
)
:
String
Definition Classes
JsonSerializer
def
toJson
(
onlyFields:
List
[
String
]
)
:
String
Definition Classes
JsonSerializer
def
toJson
:
String
Definition Classes
JsonSerializer
def
toMap
(
onlyFields:
String
*
)
:
Map
[
String
,
Any
]
Definition Classes
IO
def
toMap
(
onlyFields:
List
[
String
]
)
:
Map
[
String
,
Any
]
Definition Classes
IO
def
toMap
:
Map
[
String
,
Any
]
Definition Classes
IO
def
toSerialized
(
map:
Map
[
String
,
Any
]
)
:
Map
[
String
,
Any
]
Attributes
protected
Definition Classes
IO
def
toSerializedMap
(
onlyFields:
List
[
String
]
)
:
Map
[
String
,
Any
]
Definition Classes
IO
def
toSerializedMap
:
Map
[
String
,
Any
]
Definition Classes
IO
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
unsafeAssign
(
data:
Map
[
String
,
Any
]
,
assignFunc: (
Any
,
FieldInfo
) ⇒
Any
)
:
ActiveModel
.this.type
Definition Classes
IO
def
unsafeAssign
(
data:
Map
[
String
,
Any
]
)
:
ActiveModel
.this.type
Definition Classes
IO
def
validate
()
:
Boolean
Definition Classes
FormSerializer
→
Validatable
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
(
...
)
Inherited from
ValidationSupport
Inherited from
JsonSerializer
Inherited from
FormSerializer
Inherited from
IO
Inherited from
Validatable
Inherited from
ProductModel
Inherited from
Saveable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped