Trait

play.ext.activerecord

EntityCompanion

Related Doc: package activerecord

Permalink

trait EntityCompanion[T <: Entity] extends ActiveRecordCompanion[T] with ValidUntilCompanion[T] with PlayFormSupport[T]

Linear Supertypes
PlayFormSupport[T], ValidUntilCompanion[T], TimestampConversion, ActiveRecordCompanion[T], ActiveRecordBaseCompanion[Long, T], CompanionConversion[T], CompanionIterable[T], ActiveModelCompanion[T], com.github.aselab.activerecord.io.JsonSupport[T], FormSupport[T], ProductModelCompanion[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EntityCompanion
  2. PlayFormSupport
  3. ValidUntilCompanion
  4. TimestampConversion
  5. ActiveRecordCompanion
  6. ActiveRecordBaseCompanion
  7. CompanionConversion
  8. CompanionIterable
  9. ActiveModelCompanion
  10. JsonSupport
  11. FormSupport
  12. ProductModelCompanion
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type C = ActiveModelCompanion[ActiveModel]

    Permalink
    Definition Classes
    FormSupport

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: com.github.aselab.activerecord.ActiveRecord.Relation1[T, T]

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion → CompanionIterable
  5. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    FormSupport
  8. implicit def bindable: PathBindable[T]

    Permalink
  9. lazy val classInfo: ClassInfo[T]

    Permalink
    Definition Classes
    ProductModelCompanion
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    CompanionIterable
  12. implicit def companionToRelation(c: EntityCompanion.this.type): com.github.aselab.activerecord.ActiveRecord.Relation1[T, T]

    Permalink
    Definition Classes
    CompanionConversion
  13. def create(model: T): T

    Permalink
    Attributes
    protected[com.github.aselab.activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  14. implicit def date2timestamp(date: Option[Date]): Option[Timestamp]

    Permalink
    Attributes
    protected
    Definition Classes
    TimestampConversion
  15. implicit def date2timestamp(date: Date): Timestamp

    Permalink
    Attributes
    protected
    Definition Classes
    TimestampConversion
  16. def delete(id: Long): Boolean

    Permalink
    Attributes
    protected[com.github.aselab.activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    ProductModelCompanion
  21. def finalize(): Unit

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

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  23. def findActive(id: Long): Option[T]

    Permalink

    finds entity without deletedAt flag

    finds entity without deletedAt flag

    Definition Classes
    ValidUntilCompanion
  24. def forceDelete(condition: (T) ⇒ com.github.aselab.activerecord.dsl.LogicalBoolean): Int

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  25. def forceDeleteAll(): Int

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  26. def forceInsertAll(models: T*): Unit

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  27. def forceInsertAll(models: Iterable[T]): Unit

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  28. def forceUpdate(condition: (T) ⇒ com.github.aselab.activerecord.dsl.LogicalBoolean)(updateAssignments: (T) ⇒ com.github.aselab.activerecord.dsl.UpdateAssignment*): Int

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  29. def forceUpdateAll(updateAssignments: (T) ⇒ com.github.aselab.activerecord.dsl.UpdateAssignment*): Int

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  30. def form: Form[T]

    Permalink
    Definition Classes
    PlayFormSupport
  31. def form(source: T): Form[T]

    Permalink
    Definition Classes
    PlayFormSupport
  32. def fromArrayJson(json: String): List[T]

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

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

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

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

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  37. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. lazy val helper: PlayHelper[T]

    Permalink
    Definition Classes
    PlayFormSupport
  40. def inTransaction[R](f: ⇒ R): R

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  41. def insertWithValidation(models: T*): Iterable[T]

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  42. def insertWithValidation(models: Iterable[T]): Iterable[T]

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  43. def invalid[A <: ValidUntil]: (A) ⇒ BinaryOperatorNodeLogicalBoolean

    Permalink
    Attributes
    protected
    Definition Classes
    ValidUntilCompanion
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. lazy val isOptimistic: Boolean

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  46. def isRequired(name: String): Boolean

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

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  48. def isValid[A <: ValidUntil]: (A) ⇒ LogicalBoolean

    Permalink
    Attributes
    protected
    Definition Classes
    ValidUntilCompanion
  49. implicit val keyedEntityDef: com.github.aselab.activerecord.dsl.KeyedEntityDef[T, Long] { val idPropertyName: String }

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  50. implicit val manifest: ClassTag[T]

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion → CompanionIterable
  51. def mapping(source: Option[T]): FieldMapping[T]

    Permalink
    Definition Classes
    PlayFormSupport
  52. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    ActiveModelCompanion
  54. def newInstance: T

    Permalink
    Definition Classes
    ActiveModelCompanion → ProductModelCompanion
  55. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  57. def now: Timestamp

    Permalink
    Attributes
    protected
    Definition Classes
    ValidUntilCompanion
  58. lazy val schema: ActiveRecordTables

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  59. def self: EntityCompanion.this.type

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

    Permalink
    Definition Classes
    AnyRef
  61. lazy val table: com.github.aselab.activerecord.dsl.Table[T]

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  62. lazy val targetClass: Class[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProductModelCompanion
  63. implicit def timestamp2date(timestamp: Option[Timestamp]): Option[Date]

    Permalink
    Attributes
    protected
    Definition Classes
    TimestampConversion
  64. implicit def timestamp2date(timestamp: Timestamp): Date

    Permalink
    Attributes
    protected
    Definition Classes
    TimestampConversion
  65. def toString(): String

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

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  67. def unbind(m: T): Map[String, String]

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

    Permalink
    Definition Classes
    ActiveRecordBaseCompanion
  69. def unsafeAssign(data: Map[String, Any], assignFunc: (Any, FieldInfo) ⇒ Any)(implicit source: T): T

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

    Permalink
    Attributes
    protected[com.github.aselab.activerecord]
    Definition Classes
    ActiveRecordBaseCompanion
  71. lazy val validatableFields: List[FieldInfo]

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

    Permalink
    Definition Classes
    ProductModelCompanion
  73. def validity(validity: Boolean): (ValidUntil) ⇒ LogicalBoolean

    Permalink
    Attributes
    protected
    Definition Classes
    ValidUntilCompanion
  74. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PlayFormSupport[T]

Inherited from ValidUntilCompanion[T]

Inherited from TimestampConversion

Inherited from ActiveRecordCompanion[T]

Inherited from ActiveRecordBaseCompanion[Long, T]

Inherited from CompanionConversion[T]

Inherited from CompanionIterable[T]

Inherited from ActiveModelCompanion[T]

Inherited from com.github.aselab.activerecord.io.JsonSupport[T]

Inherited from FormSupport[T]

Inherited from ProductModelCompanion[T]

Inherited from AnyRef

Inherited from Any

Ungrouped