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, 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. IO
  11. Validatable
  12. ProductModel
  13. Product
  14. Equals
  15. CRUDable
  16. Saveable
  17. AnyRef
  18. 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 assign(data: Map[String, Any]): Versionable.this.type

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

    Definition Classes
    IO
  16. 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
  17. 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
  18. 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
  19. 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
  20. def beforeValidation(): Unit

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

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

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

    Definition Classes
    Validatable
  24. def clone(): AnyRef

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

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

    Definition Classes
    ActiveRecordBase
  27. def delete(): Boolean

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  28. def doCreate(): Boolean

    Model creation.

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

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

    Model deletion.

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

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

    Model update.

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

    Definition Classes
    VersionableActiveRecordBaseCRUDable
  31. def doValidate(): Unit

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

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

    Definition Classes
    AnyRef → Any
  34. val errors: Errors

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

    Definition Classes
    Validatable
  36. def finalize(): Unit

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

    Definition Classes
    IO
  38. final def getClass(): Class[_]

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

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

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

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

    Definition Classes
    Validatable
  43. def hasErrors: Boolean

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  51. val id: Long

    primary key

    primary key

    Definition Classes
    ActiveRecordActiveRecordBase
  52. def isDeleted: Boolean

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

    Definition Classes
    Any
  54. def isNewRecord: Boolean

    Definition Classes
    ActiveRecordBaseActiveModelCRUDableSaveable
  55. def isPersisted: Boolean

    Definition Classes
    ActiveRecordActiveRecordBase
  56. def isValid: Boolean

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

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

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

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

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

    Definition Classes
    Product
  62. def productPrefix: String

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

    corresponding ActiveRecordCompanion object

    corresponding ActiveRecordCompanion object

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

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

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

    Definition Classes
    ValidationSupport
  68. def saveWithoutValidation(): Boolean

    Definition Classes
    Validatable
  69. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  70. def toFormValues(prefix: Option[String]): Map[String, String]

    Definition Classes
    IO
  71. def toFormValues: Map[String, String]

    Definition Classes
    IO
  72. def toMap: Map[String, Any]

    Definition Classes
    ActiveRecordBaseIO
  73. def toString(): String

    Definition Classes
    AnyRef → Any
  74. def update(validate: Boolean): Versionable.this.type

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

    Definition Classes
    ActiveRecordBase
  76. def validate(): Boolean

    Definition Classes
    IOValidatable
  77. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. 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 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