com.github.aselab.activerecord.experimental

Versionable

Related Doc: package experimental

trait Versionable extends ActiveRecord with Serializable

Source
versions.scala
Linear Supertypes
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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. lazy val _companion: ProductModelCompanion[Versionable.this.type]

    Definition Classes
    ProductModel
  5. var _isNewRecord: Boolean

    Attributes
    protected
    Definition Classes
    CRUDable
  6. 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
  7. 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
  8. 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
  9. 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
  10. def apply(newValues: (String, Any)*): Versionable.this.type

  11. final def asInstanceOf[T0]: T0

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

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

    Definition Classes
    JsonSerializer
  14. def asJson: JValue

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

    Definition Classes
    IO
  16. macro def assign(data: (String, Any)*): Versionable.this.type

    Definition Classes
    IO
  17. def assignFormValues(data: Map[String, String]): Versionable.this.type

    Definition Classes
    FormSerializer
  18. 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
  19. 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
  20. 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
  21. 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
  22. def beforeValidation(): Unit

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

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

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

    Definition Classes
    Validatable
  26. def clone(): AnyRef

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

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

    Definition Classes
    ActiveRecordBase
  29. def delete(): Boolean

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  30. def doCreate(): Boolean

    Model creation.

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

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

    Model deletion.

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

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

    Model update.

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

    Definition Classes
    VersionableActiveRecordBaseCRUDable
  33. def doValidate(): Unit

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

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

    Definition Classes
    AnyRef → Any
  36. val errors: Errors

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

    Definition Classes
    Validatable
  38. def finalize(): Unit

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

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

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

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

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

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

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

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

    Definition Classes
    Validatable
  47. def hasErrors: Boolean

    Definition Classes
    Validatable
  48. 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
  49. def hasMany[T <: AR](implicit m: ClassTag[T]): ActiveRecord.HasManyAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  50. 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
  51. 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
  52. def hasOne[T <: AR](implicit m: ClassTag[T]): ActiveRecord.HasOneAssociation[Versionable.this.type, T]

    Attributes
    protected
    Definition Classes
    AssociationSupport
  53. 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
  54. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  55. val id: Long

    primary key

    primary key

    Definition Classes
    ActiveRecordActiveRecordBase
  56. def isDeleted: Boolean

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

    Definition Classes
    Any
  58. def isNewRecord: Boolean

    Definition Classes
    ActiveRecordBaseActiveModelCRUDableSaveable
  59. def isPersisted: Boolean

    Definition Classes
    ActiveRecordActiveRecordBase
  60. def isValid: Boolean

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

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

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

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

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

    Definition Classes
    Product
  66. def productPrefix: String

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

    corresponding ActiveRecordCompanion object

    corresponding ActiveRecordCompanion object

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

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

    Definition Classes
    ActiveRecordBase
  70. 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
  71. def saveEither: Either[Errors, Versionable.this.type]

    Definition Classes
    ValidationSupport
  72. def saveWithoutValidation(): Boolean

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

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

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

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

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

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

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

    Definition Classes
    JsonSerializer
  80. def toJson: String

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

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

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

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

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

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

    Definition Classes
    IO
  87. def toString(): String

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

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

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

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

    Definition Classes
    ActiveRecordBase
  92. def validate(): Boolean

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from ActiveRecord

Inherited from ActiveRecordBase[Long]

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