com.github.aselab.activerecord.experimental

Versionable

trait Versionable extends ActiveRecord with Serializable

Source
versions.scala
Linear Supertypes
Serializable, Serializable, ActiveRecord, ActiveRecord.HabtmAssociationSupport, ActiveRecordBase[Long], ActiveRecord.AssociationSupport, ActiveModel, ValidationSupport, JsonSerializer, FormSerializer, IO, Validatable, ProductModel, Product, Equals, CRUDable, Saveable, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Versionable
  2. Serializable
  3. Serializable
  4. ActiveRecord
  5. HabtmAssociationSupport
  6. ActiveRecordBase
  7. AssociationSupport
  8. ActiveModel
  9. ValidationSupport
  10. JsonSerializer
  11. FormSerializer
  12. IO
  13. Validatable
  14. ProductModel
  15. Product
  16. Equals
  17. CRUDable
  18. Saveable
  19. AnyRef
  20. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  2. abstract def productArity: Int

    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. lazy val _companion: ProductModelCompanion[Versionable.this.type]

    Definition Classes
    ProductModel
  7. var _isNewRecord: Boolean

    Attributes
    protected
    Definition Classes
    CRUDable
  8. def afterCreate(): Unit

    Callback method of after create.

    Callback method of after create.

    You can override this method and implement logic if necessary. Nothing is done by default. This is not called if failed to create.

    Attributes
    protected
    Definition Classes
    CRUDable
  9. def afterDelete(): Unit

    Callback method of after delete.

    Callback method of after delete.

    You can override this method and implement logic if necessary. Nothing is done by default. This is not called if failed to delete.

    Attributes
    protected
    Definition Classes
    CRUDable
  10. def afterSave(): Unit

    Callback method of after create and update.

    Callback method of after create and update.

    You can override this method and implement logic if necessary. Nothing is done by default. This is not called if failed to save.

    Attributes
    protected
    Definition Classes
    CRUDable
  11. def afterUpdate(): Unit

    Callback method of after update.

    Callback method of after update.

    You can override this method and implement logic if necessary. Nothing is done by default. This is not called if failed to update.

    Attributes
    protected
    Definition Classes
    CRUDable
  12. def apply(newValues: (String, Any)*): Versionable.this.type

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def asJson(onlyFields: String*): JValue

    Definition Classes
    JsonSerializer
  15. def asJson(onlyFields: List[String]): JValue

    Definition Classes
    JsonSerializer
  16. def asJson: JValue

    Definition Classes
    JsonSerializer
  17. def assign(data: Map[String, Any]): Versionable.this.type

    Definition Classes
    IO
    Annotations
    @macroImpl( ... )
  18. def assign(data: (String, Any)*): Versionable.this.type

    Definition Classes
    IO
    Annotations
    @macroImpl( ... )
  19. def assignFormValues(data: Map[String, String]): Versionable.this.type

    Definition Classes
    FormSerializer
  20. def beforeCreate(): Unit

    Callback method of before create.

    Callback method of before create.

    You can override this method and implement logic if necessary. Nothing is done by default.

    Attributes
    protected
    Definition Classes
    CRUDable
  21. def beforeDelete(): Unit

    Callback method of before delete.

    Callback method of before delete.

    You can override this method and implement logic if necessary. Nothing is done by default.

    Attributes
    protected
    Definition Classes
    CRUDable
  22. def beforeSave(): Unit

    Callback method of before create and update.

    Callback method of before create and update.

    You can override this method and implement logic if necessary. Nothing is done by default.

    Attributes
    protected
    Definition Classes
    CRUDable
  23. def beforeUpdate(): Unit

    Callback method of before update.

    Callback method of before update.

    You can override this method and implement logic if necessary. Nothing is done by default.

    Attributes
    protected
    Definition Classes
    CRUDable
  24. def beforeValidation(): Unit

    Attributes
    protected
    Definition Classes
    Validatable
  25. def belongsTo[T <: AR](foreignKey: String)(implicit m: ClassTag[T]): ActiveRecord.BelongsToAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  26. def belongsTo[T <: AR](implicit m: ClassTag[T]): ActiveRecord.BelongsToAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  27. def clearErrors(): Unit

    Definition Classes
    Validatable
  28. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def create(validate: Boolean): Versionable.this.type

    Definition Classes
    ActiveRecordBase
  30. def create: Versionable.this.type

    Definition Classes
    ActiveRecordBase
  31. def delete(): Boolean

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  32. def doCreate(): Boolean

    Model creation.

    Model creation. Implement creation logic and return result of success or failure

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseCRUDable
  33. def doDelete(): Boolean

    Model deletion.

    Model deletion. Implement deletion logic and return result of success or failure

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseCRUDable
  34. def doUpdate(): Boolean

    Model update.

    Model update. Implement update logic and return result of success or failure

    Definition Classes
    VersionableActiveRecordBaseCRUDable
  35. def doValidate(): Unit

    Definition Classes
    ValidationSupportValidatable
  36. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  38. val errors: Errors

    Definition Classes
    Validatable
  39. def fieldErrors: Seq[ValidationError]

    Definition Classes
    Validatable
  40. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. def formErrors: Seq[ValidationError]

    Definition Classes
    FormSerializer
  42. def fromJValue(jvalue: JValue): Versionable.this.type

    Definition Classes
    JsonSerializer
  43. def fromJson(json: String): Versionable.this.type

    Definition Classes
    JsonSerializer
  44. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  45. def globalErrors: Seq[ValidationError]

    Definition Classes
    Validatable
  46. def hasAndBelongsToMany[T <: ActiveRecord](conditions: Map[String, Any])(implicit m: ClassTag[T]): ActiveRecord.HasAndBelongsToManyAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    HabtmAssociationSupport
  47. def hasAndBelongsToMany[T <: ActiveRecord](implicit m: ClassTag[T]): ActiveRecord.HasAndBelongsToManyAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    HabtmAssociationSupport
  48. def hasError(name: String): Boolean

    Definition Classes
    Validatable
  49. def hasErrors: Boolean

    Definition Classes
    Validatable
  50. def hasMany[T <: AR](conditions: Map[String, Any] = Map.empty, foreignKey: String = null)(implicit m: ClassTag[T]): ActiveRecord.HasManyAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  51. def hasMany[T <: AR](implicit m: ClassTag[T]): ActiveRecord.HasManyAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  52. def hasManyThrough[T <: AR, I <: AR](through: ActiveRecord.CollectionAssociation[Versionable.this.type, I], conditions: Map[String, Any] = Map.empty, foreignKey: String = null)(implicit m1: ClassTag[T], m2: ClassTag[I]): ActiveRecord.HasManyThroughAssociation[Versionable.this.type, T, I]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  53. def hasOne[T <: AR](conditions: Map[String, Any] = Map.empty, foreignKey: String = null)(implicit m: ClassTag[T]): ActiveRecord.HasOneAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  54. def hasOne[T <: AR](implicit m: ClassTag[T]): ActiveRecord.HasOneAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  55. def hasOneThrough[T <: AR, I <: AR](through: ActiveRecord.SingularAssociation[Versionable.this.type, I], conditions: Map[String, Any] = Map.empty, foreignKey: String = null)(implicit m1: ClassTag[T], m2: ClassTag[I]): ActiveRecord.HasOneThroughAssociation[Versionable.this.type, T, I]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  56. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  57. val id: Long

    primary key

    primary key

    Definition Classes
    ActiveRecordActiveRecordBase
  58. def isDeleted: Boolean

    Definition Classes
    ActiveRecordBase
  59. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  60. def isNewRecord: Boolean

    Definition Classes
    ActiveRecordBaseActiveModelCRUDableSaveable
  61. def isPersisted: Boolean

    Definition Classes
    ActiveRecordActiveRecordBase
  62. def isValid: Boolean

    Definition Classes
    Validatable
  63. def map(newValues: (String, Any)*): Versionable.this.type

  64. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  65. final def notify(): Unit

    Definition Classes
    AnyRef
  66. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  67. def productIterator: Iterator[Any]

    Definition Classes
    Product
  68. def productPrefix: String

    Definition Classes
    Product
  69. lazy val recordCompanion: ActiveRecordBaseCompanion[Long, Versionable.this.type]

    corresponding ActiveRecordCompanion object

    corresponding ActiveRecordCompanion object

    Definition Classes
    ActiveRecordBase
  70. def recordInDatabase: Option[Versionable.this.type]

    Definition Classes
    ActiveRecordBase
  71. def save(throws: Boolean = false, validate: Boolean = true): Boolean

    Definition Classes
    ActiveRecordBase
  72. def save(): Boolean

    Save model.

    Save model.

    If isNewRecord flag is true, it calls doCreate method. If not, it calls doUpdate method. before and after callbacks are available.

    Definition Classes
    ActiveRecordBaseValidatableCRUDableSaveable
  73. def saveEither: Either[Errors, Versionable.this.type]

    Definition Classes
    ValidationSupport
  74. def saveWithoutValidation(): Boolean

    Definition Classes
    Validatable
  75. def serializedValue(value: Any): Any

    Attributes
    protected
    Definition Classes
    IO
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  77. def toFieldType(value: Any, fieldInfo: FieldInfo): Any

    Definition Classes
    FormSerializerIO
  78. def toFormValues(prefix: Option[String]): Map[String, String]

    Definition Classes
    FormSerializer
  79. def toFormValues: Map[String, String]

    Definition Classes
    FormSerializer
  80. def toJson(onlyFields: String*): String

    Definition Classes
    JsonSerializer
  81. def toJson(onlyFields: List[String]): String

    Definition Classes
    JsonSerializer
  82. def toJson: String

    Definition Classes
    JsonSerializer
  83. def toMap: Map[String, Any]

    Definition Classes
    ActiveRecordBaseIO
  84. def toMap(onlyFields: String*): Map[String, Any]

    Definition Classes
    IO
  85. def toMap(onlyFields: List[String]): Map[String, Any]

    Definition Classes
    IO
  86. def toSerialized(map: Map[String, Any]): Map[String, Any]

    Attributes
    protected
    Definition Classes
    IO
  87. def toSerializedMap(onlyFields: List[String]): Map[String, Any]

    Definition Classes
    IO
  88. def toSerializedMap: Map[String, Any]

    Definition Classes
    IO
  89. def toString(): String

    Definition Classes
    AnyRef → Any
  90. def unsafeAssign(data: Map[String, Any]): Versionable.this.type

    Definition Classes
    ActiveRecordBaseIO
  91. def unsafeAssign(data: Map[String, Any], assignFunc: (Any, FieldInfo) ⇒ Any): Versionable.this.type

    Definition Classes
    IO
  92. def update(validate: Boolean): Versionable.this.type

    Definition Classes
    ActiveRecordBase
  93. def update: Versionable.this.type

    Definition Classes
    ActiveRecordBase
  94. def validate(): Boolean

    Definition Classes
    FormSerializerValidatable
  95. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  96. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from ActiveRecord

Inherited from ActiveRecord.HabtmAssociationSupport

Inherited from ActiveRecordBase[Long]

Inherited from ActiveRecord.AssociationSupport

Inherited from ActiveModel

Inherited from ValidationSupport

Inherited from JsonSerializer

Inherited from FormSerializer

Inherited from IO

Inherited from Validatable

Inherited from ProductModel

Inherited from Product

Inherited from Equals

Inherited from CRUDable

Inherited from Saveable

Inherited from AnyRef

Inherited from Any

Ungrouped