com.github.aselab.activerecord

IntermediateRecordCompanion

trait IntermediateRecordCompanion[T <: IntermediateRecord] extends ActiveRecordBaseCompanion[CompositeKey2[Long, Long], T]

Base class of IntermediateRecord companion objects.

Linear Supertypes
ActiveRecordBaseCompanion[CompositeKey2[Long, Long], T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IntermediateRecordCompanion
  2. ActiveRecordBaseCompanion
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

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. def all: Query[T]

    all search.

    all search.

    Definition Classes
    ActiveRecordBaseCompanion
  7. def apply(id: CompositeKey2[Long, Long]): Option[T]

    same as find method.

    same as find method.

    Definition Classes
    ActiveRecordBaseCompanion
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def create(model: T): T

    insert record from model.

    insert record from model.

    Attributes
    protected[activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  11. def delete(id: CompositeKey2[Long, Long]): Boolean

    delete record from id.

    delete record from id.

    Attributes
    protected[activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  12. def deleteAll(): List[T]

    delete all records.

    delete all records.

    Definition Classes
    ActiveRecordBaseCompanion
  13. final def eq(arg0: AnyRef): Boolean

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

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

    ActiveRecord fields information

    ActiveRecord fields information

    Definition Classes
    ActiveRecordBaseCompanion
  16. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def find(id: CompositeKey2[Long, Long]): Option[T]

    search by id.

    search by id.

    Definition Classes
    ActiveRecordBaseCompanion
  18. def findAllBy(name: String, value: Any)(implicit query: Queryable[T]): Query[T]

    Search by fieldname and value.

    Search by fieldname and value.

    findAllBy("name", "abc")
    
    name

    field name

    value

    field value

    query

    table or subquery in from clause. default is table

    Definition Classes
    ActiveRecordBaseCompanion
  19. def findAllBy(condition: (String, Any), conditions: (String, Any)*)(implicit query: Queryable[T]): Query[T]

    Search by multiple fieldnames and values.

    Search by multiple fieldnames and values.

    findAllBy("name" -> "abc", "email" -> "[email protected]")
    
    condition

    fieldname-value tuple

    conditions

    multiple fieldname-value tuples(optional)

    query

    table or subquery in from clause. default is table

    Definition Classes
    ActiveRecordBaseCompanion
  20. def findBy(name: String, value: Any)(implicit query: Queryable[T]): Option[T]

    Search by fieldname and value and return first record.

    Search by fieldname and value and return first record.

    findBy("name", "abc")
    
    name

    field name

    value

    field value

    query

    table or subquery in from clause. default is table

    Definition Classes
    ActiveRecordBaseCompanion
  21. def findBy(condition: (String, Any), conditions: (String, Any)*)(implicit query: Queryable[T]): Option[T]

    Search by multiple fieldnames and values and return first record.

    Search by multiple fieldnames and values and return first record.

    findBy("name" -> "abc", "email" -> "[email protected]")
    
    condition

    fieldname-value tuple

    conditions

    multiple fieldname-value tuples(optional)

    query

    table or subquery in from clause. default is table

    Definition Classes
    ActiveRecordBaseCompanion
  22. lazy val formatFields: List[Field]

    Definition Classes
    ActiveRecordBaseCompanion
  23. final def getClass(): java.lang.Class[_]

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

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

    Definition Classes
    Any
  26. def isUnique(name: String, m: T): Boolean

    unique validation.

    unique validation.

    Definition Classes
    ActiveRecordBaseCompanion
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def newInstance: T

    Create a new model object.

    Create a new model object. ActiveRecord class must implement default constructor.

    Definition Classes
    ActiveRecordBaseCompanion
  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. lazy val schema: ActiveRecordTables

    database schema

    database schema

    Definition Classes
    ActiveRecordBaseCompanion
  32. def self: IntermediateRecordCompanion.this.type

    self reference

    self reference

    Attributes
    protected
    Definition Classes
    ActiveRecordBaseCompanion
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. implicit lazy val table: Table[T]

    corresponding database table

    corresponding database table

    Definition Classes
    ActiveRecordBaseCompanion
  35. implicit def toModel[A <: ActiveRecord](r: ActiveRecordManyToOne[A]): Option[A]

    Definition Classes
    ActiveRecordBaseCompanion
  36. implicit def toModelList(query: Query[T]): List[T]

    Definition Classes
    ActiveRecordBaseCompanion
  37. implicit def toQueryable(t: IntermediateRecordCompanion.this.type): Table[T]

    Definition Classes
    ActiveRecordBaseCompanion
  38. implicit def toRichQuery(r: ActiveRecordOneToMany[T])(implicit m: Manifest[T]): RichQuery[T]

    Definition Classes
    ActiveRecordBaseCompanion
  39. implicit def toRichQuery(t: IntermediateRecordCompanion.this.type)(implicit m: Manifest[T]): RichQuery[T]

    Definition Classes
    ActiveRecordBaseCompanion
  40. implicit def toRichQuery(query: Queryable[T])(implicit m: Manifest[T]): RichQuery[T]

    implicit conversion for query chain.

    implicit conversion for query chain.

    Definition Classes
    ActiveRecordBaseCompanion
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. lazy val uniqueFields: List[Field]

    Unique annotated fields

    Unique annotated fields

    Definition Classes
    ActiveRecordBaseCompanion
  43. def update(model: T): Unit

    update record from model.

    update record from model.

    Attributes
    protected[activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. def where(condition: (T) ⇒ LogicalBoolean)(implicit query: Queryable[T]): Query[T]

    query search.

    query search.

    where {m: T => m.name === "abc" and m.age.~ > 20}
    
    condition

    search condition

    query

    table or subquery in from clause. default is table

    Definition Classes
    ActiveRecordBaseCompanion

Inherited from ActiveRecordBaseCompanion[CompositeKey2[Long, Long], T]

Inherited from AnyRef

Inherited from Any