Class

stark.activerecord.services

ActiveRecordInstance

Related Doc: package services

Permalink

abstract class ActiveRecordInstance[A] extends Dynamic

Linear Supertypes
Dynamic, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActiveRecordInstance
  2. Dynamic
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActiveRecordInstance()(implicit clazzTag: ClassTag[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def all: QlRelation[A]

    Permalink
  5. macro def applyDynamic(name: String)(params: Any*): DSLSelectionQuery[A, A]

    Permalink

    find_by_xx_and_yy method such as:

    find_by_xx_and_yy method such as:

    ModelA.find_by_name_and_code("jcai","1232")

    name

    method name

    params

    parameter list

    returns

    Relation query instance

  6. macro def applyDynamicNamed(name: String)(params: (String, Any)*): DSLSelectionQuery[A, A]

    Permalink

    where method sucha as:

    where method sucha as:

    find_by(name="jcai",code="1232")

    name

    method name

    params

    method parameter

    returns

    relation query object

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asc(fields: String*): QlRelation[A]

    Permalink
  9. val clazz: Class[A]

    Permalink

    get model class and primary key

  10. implicit val clazzTag: ClassTag[A]

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def count: SelectStep[A, Array[Any]]

    Permalink
  13. def countByJPQL(ql: String, parameters: Any*): Long

    Permalink
  14. def delete: DeleteStep[A]

    Permalink
  15. def desc(fields: String*): QlRelation[A]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. val field: Option[java.lang.reflect.Field]

    Permalink
    Attributes
    protected
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def find(keys: Array[Any]): QlRelation[A]

    Permalink

    find some records by primary key

    find some records by primary key

    keys

    key array

    returns

    query object

  21. def find(key: Any): A

    Permalink

    retrieving single object,must exist

    retrieving single object,must exist

    key

    primary key

    returns

    entity object

  22. def findOption(key: Any): Option[A]

    Permalink

    retrieving single object,may not exist

    retrieving single object,may not exist

    key

    primary key

    returns

    entity object

  23. def first(n: Int = 1): QlRelation[A]

    Permalink
  24. def first: A

    Permalink
  25. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  28. def last(n: Int): QlRelation[A]

    Permalink
  29. def last: A

    Permalink
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. val primaryKey: String

    Permalink
  34. def select(fields: SelectionField*): SelectStep[A, Array[Any]]

    Permalink

    select some fields

    select some fields

    fields

    fields

    returns

    Select step

  35. macro def selectDynamic[T](fieldName: String): Field[T]

    Permalink
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def take(n: Int): QlRelation[A]

    Permalink
  38. def take: A

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def update: UpdateStep[A]

    Permalink
  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def where: DSLSelectionQuery[A, A]

    Permalink

    where by DSL

    where by DSL

    returns

    select step

  45. def whereByJPQL(ql: String, parameters: Any*): QlRelation[A]

    Permalink

    whereByJPQL(ql,parameters) ModelA.where("name=?1 and code=?2","jcai","1232")

    whereByJPQL(ql,parameters) ModelA.where("name=?1 and code=?2","jcai","1232")

    ql

    query language

    parameters

    parameters

    returns

    Realtion Object

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Ungrouped