com.github.aselab.activerecord

ActiveRecordBaseCompanion

Related Doc: package activerecord

trait ActiveRecordBaseCompanion[K, T <: ActiveRecordBase[K]] extends ActiveModelCompanion[T] with CompanionConversion[T]

Source
ActiveRecord.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActiveRecordBaseCompanion
  2. CompanionConversion
  3. CompanionIterable
  4. ActiveModelCompanion
  5. JsonSupport
  6. FormSupport
  7. ProductModelCompanion
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type C = ActiveModelCompanion[ActiveModel]

    Definition Classes
    FormSupport

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. def all: ActiveRecord.Relation1[T, T]

    all search.

    all search.

    Definition Classes
    ActiveRecordBaseCompanionCompanionIterable
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def assignValue(value: Any, fieldInfo: FieldInfo): Any

    Definition Classes
    FormSupport
  7. def bind(data: Map[String, String])(implicit source: T = self.newInstance): T

    Definition Classes
    FormSupport
  8. lazy val classInfo: ClassInfo[T]

    ProductModel class information

    ProductModel class information

    Definition Classes
    ProductModelCompanion
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. implicit def companionToIterable(c: ActiveRecordBaseCompanion.this.type): List[T]

    Definition Classes
    CompanionIterable
  11. implicit def companionToRelation(c: ActiveRecordBaseCompanion.this.type): ActiveRecord.Relation1[T, T]

    Definition Classes
    CompanionConversion
  12. def create(model: T): T

    insert record from model.

    insert record from model.

    Attributes
    protected[com.github.aselab.activerecord]
  13. def delete(id: K): Boolean

    delete record from id.

    delete record from id.

    Attributes
    protected[com.github.aselab.activerecord]
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. lazy val fieldInfo: Map[String, FieldInfo]

    ProductModel fields information

    ProductModel fields information

    Definition Classes
    ProductModelCompanion
  17. lazy val fields: List[FieldInfo]

    Definition Classes
    ProductModelCompanion
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def find(id: K): Option[T]

    search by id.

  20. def forceDelete(condition: (T) ⇒ dsl.LogicalBoolean): Int

  21. def forceDeleteAll(): Int

  22. def forceInsertAll(models: T*): Unit

  23. def forceInsertAll(models: Iterable[T]): Unit

  24. def forceUpdate(condition: (T) ⇒ dsl.LogicalBoolean)(updateAssignments: (T) ⇒ dsl.UpdateAssignment*): Int

  25. def forceUpdateAll(updateAssignments: (T) ⇒ dsl.UpdateAssignment*): Int

  26. def fromArrayJson(json: String): List[T]

    Definition Classes
    JsonSupport
  27. def fromJArray(jarray: JValue): List[T]

    Definition Classes
    JsonSupport
  28. def fromJValue(jvalue: JValue): T

    Definition Classes
    JsonSupport
  29. def fromJson(json: String): T

    Definition Classes
    JsonSupport
  30. def fromMap(data: Map[String, Any]): T

  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  33. def inTransaction[R](f: ⇒ R): R

  34. def insertWithValidation(models: T*): Iterable[T]

  35. def insertWithValidation(models: Iterable[T]): Iterable[T]

  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. lazy val isOptimistic: Boolean

  38. def isRequired(name: String): Boolean

    Definition Classes
    FormSupport
  39. def isUnique(name: String, m: T): Boolean

    unique validation.

  40. implicit val keyedEntityDef: dsl.KeyedEntityDef[T, K] { val idPropertyName: String }

  41. implicit val manifest: ClassTag[T]

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

    Definition Classes
    AnyRef
  43. macro def newInstance(data: (String, Any)*): T

    Definition Classes
    ActiveModelCompanion
  44. def newInstance: T

    Create a new model object.

    Create a new model object.

    Definition Classes
    ActiveModelCompanionProductModelCompanion
  45. final def notify(): Unit

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

    Definition Classes
    AnyRef
  47. lazy val schema: ActiveRecordTables

    database schema

  48. def self: ActiveRecordBaseCompanion.this.type

    self reference

    self reference

    Attributes
    protected
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. lazy val table: dsl.Table[T]

    corresponding database table

  51. lazy val targetClass: Class[T]

    corresponding model class

    corresponding model class

    Attributes
    protected
    Definition Classes
    ProductModelCompanion
  52. def toString(): String

    Definition Classes
    AnyRef → Any
  53. def transaction[R](f: ⇒ R): R

  54. def unbind(m: T): Map[String, String]

    Definition Classes
    FormSupport
  55. lazy val uniqueFields: List[FieldInfo]

    Unique annotated fields

  56. def unsafeAssign(data: Map[String, Any], assignFunc: (Any, FieldInfo) ⇒ Any)(implicit source: T = self.newInstance): T

    Definition Classes
    FormSupport
  57. def update(model: T): Unit

    update record from model.

    update record from model.

    Attributes
    protected[com.github.aselab.activerecord]
  58. lazy val validatableFields: List[FieldInfo]

    Definition Classes
    ProductModelCompanion
  59. lazy val validators: Map[String, Seq[(Annotation, Validator[_])]]

    Definition Classes
    ProductModelCompanion
  60. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CompanionConversion[T]

Inherited from CompanionIterable[T]

Inherited from ActiveModelCompanion[T]

Inherited from JsonSupport[T]

Inherited from FormSupport[T]

Inherited from ProductModelCompanion[T]

Inherited from AnyRef

Inherited from Any

Ungrouped