com.github.aselab.activerecord.experimental

Versionable

trait Versionable extends ActiveRecord with Serializable

Linear Supertypes
Serializable, ActiveRecord, ActiveRecordRelationSupport, ActiveRecordBase[Long], ActiveRecordBaseRelationSupport, CRUDable, Product, Equals, KeyedEntity[Long], PersistenceStatus, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Versionable
  2. Serializable
  3. ActiveRecord
  4. ActiveRecordRelationSupport
  5. ActiveRecordBase
  6. ActiveRecordBaseRelationSupport
  7. CRUDable
  8. Product
  9. Equals
  10. KeyedEntity
  11. PersistenceStatus
  12. AnyRef
  13. Any
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: ActiveRecordBaseCompanion[Long, Versionable.this.type]

    corresponding ActiveRecordCompanion object

    corresponding ActiveRecordCompanion object

    Definition Classes
    ActiveRecordBase
  7. var _isNewInstance: 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

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. 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
  15. 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
  16. 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
  17. 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
  18. def belongsTo[T <: ActiveRecord](implicit m: Manifest[T]): ActiveRecordManyToOne[T]

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseRelationSupport
  19. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def delete(): Boolean

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  21. def doCreate(): Boolean

    Model creation.

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

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

    Model deletion.

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

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

    Model update.

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

    Definition Classes
    VersionableActiveRecordBaseCRUDable
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(obj: Any): Boolean

    Definition Classes
    ActiveRecordBase → Equals → KeyedEntity → AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  28. def getRelation(left: Class[_], right: Class[_]): RelationWrapper[ActiveRecord, com.github.aselab.activerecord.ActiveRecordBase[_]]

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseRelationSupport
  29. def hasAndBelongsToMany[T <: ActiveRecord](implicit m: Manifest[T]): ActiveRecordManyToMany[T, DefaultIntermediateRecord]

    Attributes
    protected
    Definition Classes
    ActiveRecordRelationSupport
  30. def hasMany[T <: com.github.aselab.activerecord.ActiveRecordBase[_]](implicit m: Manifest[T]): ActiveRecordOneToMany[T]

    Attributes
    protected
    Definition Classes
    ActiveRecordRelationSupport
  31. def hasManyThrough[A <: ActiveRecord, B <: IntermediateRecord](implicit m: Manifest[A]): ActiveRecordManyToMany[A, B]

    Attributes
    protected
    Definition Classes
    ActiveRecordRelationSupport
  32. def hashCode(): Int

    Definition Classes
    KeyedEntity → AnyRef → Any
  33. val id: Long

    primary key

    primary key

    Definition Classes
    ActiveRecord → KeyedEntity
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def isNewInstance: Boolean

    Definition Classes
    ActiveRecordActiveRecordBaseCRUDable
  36. def isPersisted: Boolean

    Definition Classes
    PersistenceStatus
  37. def map(newValues: (String, Any)*): Versionable

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

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

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

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

    Definition Classes
    Product
  42. def productPrefix: String

    Definition Classes
    Product
  43. lazy val relations: Map[(String, String), RelationWrapper[ActiveRecord, com.github.aselab.activerecord.ActiveRecordBase[_]]]

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseActiveRecordBaseRelationSupport
  44. def save(): Boolean

    Save model.

    Save model.

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

    Definition Classes
    CRUDable
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  46. def toMap(implicit excludeRelation: Boolean = false): Map[String, Any]

    Definition Classes
    Serializable
  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from ActiveRecord

Inherited from ActiveRecordBase[Long]

Inherited from CRUDable

Inherited from Product

Inherited from Equals

Inherited from KeyedEntity[Long]

Inherited from PersistenceStatus

Inherited from AnyRef

Inherited from Any