Class/Object

com.github.aselab.activerecord.experimental

Version

Related Docs: object Version | package experimental

Permalink

case class Version(targetTable: String, targetId: Long, field: String, oldValue: String, newValue: String) extends ActiveRecord with Product with Serializable

Source
versions.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Version
  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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Version(targetTable: String, targetId: Long, field: String, oldValue: String, newValue: String)

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    ProductModel
  5. var _isNewRecord: Boolean

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    JsonSerializer
  13. def asJson: JValue

    Permalink
    Definition Classes
    JsonSerializer
  14. macro def assign(data: Map[String, Any]): Version.this.type

    Permalink
    Definition Classes
    IO
  15. macro def assign(data: (String, Any)*): Version.this.type

    Permalink
    Definition Classes
    IO
  16. def assignFormValues(data: Map[String, String]): Version.this.type

    Permalink
    Definition Classes
    FormSerializer
  17. def beforeCreate(): Unit

    Permalink

    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
  18. def beforeDelete(): Unit

    Permalink

    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
  19. def beforeSave(): Unit

    Permalink

    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
  20. def beforeUpdate(): Unit

    Permalink

    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
  21. def beforeValidation(): Unit

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

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

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

    Permalink
    Definition Classes
    Validatable
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  26. def create(validate: Boolean): Version.this.type

    Permalink
    Definition Classes
    ActiveRecordBase
  27. def create: Version.this.type

    Permalink
    Definition Classes
    ActiveRecordBase
  28. def delete(): Boolean

    Permalink

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  29. def doCreate(): Boolean

    Permalink

    Model creation.

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

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

    Permalink

    Model deletion.

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

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

    Permalink

    Model update.

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

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseCRUDable
  32. def doValidate(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  34. val errors: Errors

    Permalink
    Definition Classes
    Validatable
  35. val field: String

    Permalink
  36. def fieldErrors: Seq[ValidationError]

    Permalink
    Definition Classes
    Validatable
  37. def formErrors: Seq[ValidationError]

    Permalink
    Definition Classes
    FormSerializer
  38. def fromJValue(jvalue: JValue, throws: Boolean = false): Version.this.type

    Permalink
    Definition Classes
    JsonSerializer
  39. def fromJson(json: String, throws: Boolean = false): Version.this.type

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  41. def globalErrors: Seq[ValidationError]

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

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

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

    Permalink
    Definition Classes
    Validatable
  45. def hasErrors: Boolean

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    AssociationSupport
  52. val id: Long

    Permalink

    primary key

    primary key

    Definition Classes
    ActiveRecordActiveRecordBase
  53. def isDeleted: Boolean

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

    Permalink
    Definition Classes
    Any
  55. def isNewRecord: Boolean

    Permalink
    Definition Classes
    ActiveRecordBaseActiveModelCRUDableSaveable
  56. def isPersisted: Boolean

    Permalink
    Definition Classes
    ActiveRecordActiveRecordBase
  57. def isValid: Boolean

    Permalink
    Definition Classes
    Validatable
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. val newValue: String

    Permalink
  60. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  61. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  62. val oldValue: String

    Permalink
  63. lazy val recordCompanion: ActiveRecordBaseCompanion[Long, Version.this.type]

    Permalink

    corresponding ActiveRecordCompanion object

    corresponding ActiveRecordCompanion object

    Definition Classes
    ActiveRecordBase
  64. def recordInDatabase: Option[Version.this.type]

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

    Permalink
    Definition Classes
    ActiveRecordBase
  66. def save(): Boolean

    Permalink

    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
  67. def saveEither: Either[Errors, Version.this.type]

    Permalink
    Definition Classes
    ValidationSupport
  68. def saveWithoutValidation(): Boolean

    Permalink
    Definition Classes
    Validatable
  69. def serializedValue(value: Any): Any

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

    Permalink
    Definition Classes
    AnyRef
  71. val targetId: Long

    Permalink
  72. val targetTable: String

    Permalink
  73. def toFieldType(value: Any, fieldInfo: FieldInfo): Any

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

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

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

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

    Permalink
    Definition Classes
    JsonSerializer
  78. def toJson: String

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

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

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

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

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

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

    Permalink
    Definition Classes
    IO
  85. def unsafeAssign(data: Map[String, Any]): Version.this.type

    Permalink
    Definition Classes
    ActiveRecordBaseIO
  86. def unsafeAssign(data: Map[String, Any], assignFunc: (Any, FieldInfo) ⇒ Any, throws: Boolean = true): Version.this.type

    Permalink
    Definition Classes
    IO
  87. def update(validate: Boolean): Version.this.type

    Permalink
    Definition Classes
    ActiveRecordBase
  88. def update: Version.this.type

    Permalink
    Definition Classes
    ActiveRecordBase
  89. def validate(): Boolean

    Permalink
    Definition Classes
    FormSerializerValidatable
  90. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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