entitytled.EntityCompanionComponent

EntityCompanion

Related Doc: package EntityCompanionComponent

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

Trait for entity companion objects.

Linear Supertypes
(EntityCompanionComponent.this)#EntityRepository[T, E], (EntityCompanionComponent.this)#AbstractEntityCollectionBuilder[T, E], 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[E.IdType])

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: 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 afterDelete(key: E.IdType)(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
  5. def afterInsert(key: E.IdType, 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
  6. def afterSave(key: E.IdType, 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
  7. def afterUpdate(key: E.IdType, 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
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def beforeDelete(key: E.IdType)(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
  10. 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
  11. 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
  12. 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
  13. def clone(): AnyRef

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

  15. def delete(id: E.IdType)(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
  16. def drop(num: Int): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

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

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

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

    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
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def find(key: E.IdType)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): 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
  22. 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
  23. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  25. def include(sideLoad: (EntityBuilderComponent.this)#SideLoadable[T, E]*): (EntityBuilderComponent.this)#EntityCollectionBuilder[T, E]

    Include side-loadables on the entities in the result set.

    Include side-loadables on the entities in the result set.

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

    Inserts a given entity instance into the database.

    Inserts a given entity instance into the database.

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

    Definition Classes
    Any
  28. 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
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  32. def one(id: E.IdType): (EntityBuilderComponent.this)#EntityInstanceBuilder[T, E]

    Narrows the query to one specific entity with the specified ID.

    Narrows the query to one specific entity with the specified ID.

    Definition Classes
    AbstractEntityCollectionBuilder
  33. val sideLoads: List[(EntityBuilderComponent.this)#SideLoadable[T, E]]

    The side-loadables that should be included with the resulting entities.

    The side-loadables that should be included with the resulting entities.

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

    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
  35. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    AbstractEntityCollectionBuilder
  37. 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, 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
  38. 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, 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
  39. 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, 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
  40. 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, 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
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. 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
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped