com.github.aselab.activerecord

ActiveRecordBase

trait ActiveRecordBase[T] extends KeyedEntity[T] with Product with CRUDable with ActiveRecordBaseRelationSupport

Linear Supertypes
ActiveRecordBaseRelationSupport, CRUDable, Product, Equals, KeyedEntity[T], PersistenceStatus, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ActiveRecordBase
  2. ActiveRecordBaseRelationSupport
  3. CRUDable
  4. Product
  5. Equals
  6. KeyedEntity
  7. PersistenceStatus
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Definition Classes
    Equals
  2. abstract def id: T

    Definition Classes
    KeyedEntity
  3. abstract def productArity: Int

    Definition Classes
    Product
  4. 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[T, ActiveRecordBase.this.type]

    corresponding ActiveRecordCompanion object

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

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

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

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

    Delete model.

    Delete model.

    before and after callbacks are available.

    Definition Classes
    CRUDable
  20. def doCreate(): Boolean

    Model creation.

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

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

    Model deletion.

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

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

    Model update.

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

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseCRUDable
  23. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseRelationSupport
  28. def hashCode(): Int

    Definition Classes
    KeyedEntity → AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def isNewInstance: Boolean

    Definition Classes
    ActiveRecordBaseCRUDable
  31. def isPersisted: Boolean

    Definition Classes
    PersistenceStatus
  32. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    Product
  36. def productPrefix: String

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

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseActiveRecordBaseRelationSupport
  38. 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
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

Inherited from Product

Inherited from Equals

Inherited from KeyedEntity[T]

Inherited from PersistenceStatus

Inherited from AnyRef

Inherited from Any