entitytled.EntityCompanionComponent

EntityCompanion

abstract class EntityCompanion[T <: (EntityCompanionComponent.this)#EntityTable[E, I], E <: (EntityCompanionComponent.this)#Entity[E, I], I] extends (EntityCompanionComponent.this)#EntityRepository[T, E, I]

Trait for entity companion objects.

Linear Supertypes
(EntityCompanionComponent.this)#EntityRepository[T, E, I], (EntityCompanionComponent.this)#AbstractEntityCollectionBuilder[T, E, I], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EntityCompanion
  2. EntityRepository
  3. AbstractEntityCollectionBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EntityCompanion()(implicit ev: scala.slick.driver.JdbcProfile.SimpleQL.BaseColumnType[I])

Abstract Value Members

  1. abstract val query: scala.slick.driver.JdbcProfile.SimpleQL.Query[T, E, Seq]

    The base query representing the collection of entities.

    The base query representing the collection of entities.

    Definition Classes
    EntityCompanionAbstractEntityCollectionBuilder

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. def afterDelete(key: I)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    May be overriden to specify actions that should be taken after deleting an entity.

    May be overriden to specify actions that should be taken after deleting an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  7. def afterInsert(key: I, instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    May be overriden to specify actions that should be taken after inserting a new entity.

    May be overriden to specify actions that should be taken after inserting a new entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  8. def afterSave(key: I, instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    May be overriden to specify actions that should be taken either after inserting, or after updating an entity.

    May be overriden to specify actions that should be taken either after inserting, or after updating an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  9. def afterUpdate(key: I, instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    May be overriden to specify actions that should be taken after updating an entity.

    May be overriden to specify actions that should be taken after updating an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def beforeDelete(key: I)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    May be overriden to specify actions that should be taken before deleting an entity.

    May be overriden to specify actions that should be taken before deleting an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  12. def beforeInsert(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): E

    May be overriden to specify actions that should be taken before inserting a new entity.

    May be overriden to specify actions that should be taken before inserting a new entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  13. def beforeSave(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): E

    May be overriden to specify actions that should be taken either before inserting, or before updating an entity.

    May be overriden to specify actions that should be taken either before inserting, or before updating an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  14. def beforeUpdate(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): E

    May be overriden to specify actions that should be taken before updating an entity.

    May be overriden to specify actions that should be taken before updating an entity.

    Attributes
    protected
    Definition Classes
    EntityRepository
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val defaultIncludes: (EntityCompanionComponent.this)#Includes[E]

  17. def delete(id: I)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Removes the entity with the given ID from the database.

    Removes the entity with the given ID from the database.

    Definition Classes
    EntityRepository
  18. def drop(num: Int): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

    Definition Classes
    AbstractEntityCollectionBuilder
  19. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  21. def filter[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Narrows the query to only those entities that satisfy the predicate.

    Narrows the query to only those entities that satisfy the predicate.

    Definition Classes
    AbstractEntityCollectionBuilder
  22. def filterNot[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Narrows the query to only those entities that do not satisfy the predicate.

    Narrows the query to only those entities that do not satisfy the predicate.

    Definition Classes
    AbstractEntityCollectionBuilder
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def find(id: I)(implicit session: scala.slick.driver.JdbcProfile.SimpleQL.Session, ev: scala.slick.driver.JdbcProfile.SimpleQL.BaseColumnType[I]): Option[E]

    Returns the entity with the given ID wrapped in Some, or None if no such entity exists.

    Returns the entity with the given ID wrapped in Some, or None if no such entity exists.

    Definition Classes
    AbstractEntityCollectionBuilder
  25. def firstOption()(implicit session: scala.slick.driver.JdbcProfile.SimpleQL.Session): Option[E]

    Return the first entity of the result set wrapped in Some, or None if the result set is empty.

    Return the first entity of the result set wrapped in Some, or None if the result set is empty.

    Definition Classes
    AbstractEntityCollectionBuilder
  26. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  28. def include(include: (EntityBuilderComponent.this)#Includable[T, E]*): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Include includables on the entities in the result set.

    Include includables on the entities in the result set.

    Definition Classes
    AbstractEntityCollectionBuilder
  29. val includes: List[(EntityBuilderComponent.this)#Includable[T, E]]

    The includables that should be included with the resulting entities.

    The includables that should be included with the resulting entities.

    Definition Classes
    AbstractEntityCollectionBuilder
  30. def insert(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): I

    Inserts a given entity instance into the database.

    Inserts a given entity instance into the database.

    Definition Classes
    EntityRepository
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def list()(implicit session: scala.slick.driver.JdbcProfile.SimpleQL.Session): Seq[E]

    Returns a list of the entities in the result set.

    Returns a list of the entities in the result set.

    Definition Classes
    AbstractEntityCollectionBuilder
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  36. def sortBy[C](f: (T) ⇒ C)(implicit arg0: (C) ⇒ Ordered): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Sort this query according to a function which extracts the ordering criteria from the entities.

    Sort this query according to a function which extracts the ordering criteria from the entities.

    Definition Classes
    AbstractEntityCollectionBuilder
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def take(num: Int): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E, I]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    AbstractEntityCollectionBuilder
  39. def toMany[To <: scala.slick.driver.JdbcProfile.SimpleQL.Table[M], M](toQuery: scala.slick.driver.JdbcProfile.SimpleQL.Query[To, M, Seq], joinCondition: (T, To) ⇒ scala.slick.driver.JdbcProfile.SimpleQL.Column[Boolean]): (EntityCompanionComponent.this)#ToMany[T, To, E, I, M]

    Creates a new direct (without a join-table) 'to many' relationship

    Creates a new direct (without a join-table) 'to many' relationship

    Attributes
    protected
  40. def toManyThrough[To <: scala.slick.driver.JdbcProfile.SimpleQL.Table[M], Through <: scala.slick.driver.JdbcProfile.SimpleQL.Table[_], M](toQuery: scala.slick.driver.JdbcProfile.SimpleQL.Query[(Through, To), _ <: Tuple2[_, M], Seq], joinCondition: (T, (Through, To)) ⇒ scala.slick.driver.JdbcProfile.SimpleQL.Column[Boolean]): (EntityCompanionComponent.this)#ToManyThrough[T, Through, To, E, I, M]

    Creates a new indirect (with a join-table) 'to many' relationship

    Creates a new indirect (with a join-table) 'to many' relationship

    Attributes
    protected
  41. def toOne[To <: scala.slick.driver.JdbcProfile.SimpleQL.Table[M], M](toQuery: scala.slick.driver.JdbcProfile.SimpleQL.Query[To, M, Seq], joinCondition: (T, To) ⇒ scala.slick.driver.JdbcProfile.SimpleQL.Column[Boolean]): (EntityCompanionComponent.this)#ToOne[T, To, E, I, M]

    Creates a new direct (without a join-table) 'to one' relationship

    Creates a new direct (without a join-table) 'to one' relationship

    Attributes
    protected
  42. def toOneThrough[To <: scala.slick.driver.JdbcProfile.SimpleQL.Table[M], Through <: scala.slick.driver.JdbcProfile.SimpleQL.Table[_], M](toQuery: scala.slick.driver.JdbcProfile.SimpleQL.Query[(Through, To), _ <: Tuple2[_, M], Seq], joinCondition: (T, (Through, To)) ⇒ scala.slick.driver.JdbcProfile.SimpleQL.Column[Boolean]): (EntityCompanionComponent.this)#ToOneThrough[T, Through, To, E, I, M]

    Creates a new indirect (with a join-table) 'to one' relationship

    Creates a new indirect (with a join-table) 'to one' relationship

    Attributes
    protected
  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. def update(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Updates the database record for the given entity instance.

    Updates the database record for the given entity instance.

    Definition Classes
    EntityRepository
  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from (EntityCompanionComponent.this)#EntityRepository[T, E, I]

Inherited from (EntityCompanionComponent.this)#AbstractEntityCollectionBuilder[T, E, I]

Inherited from AnyRef

Inherited from Any

Ungrouped