entitytled.EntityRepositoryComponent

EntityRepository

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

Repository class for managing the retrieval and persistence of entities.

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

Instance Constructors

  1. new EntityRepository()(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
    AbstractEntityCollectionBuilder

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
  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
  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
  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
  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
  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
  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
  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
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def delete(id: I)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Removes the entity with the given ID from the database.

  17. def drop(num: Int): (EntityRepositoryComponent.this)#EntityCollectionBuilder[T, E, I]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

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

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

    Definition Classes
    AnyRef → Any
  20. def filter[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityRepositoryComponent.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
  21. def filterNot[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityRepositoryComponent.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
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def find(id: I)(implicit session: 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
  24. 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
  25. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  27. def include(include: (EntityRepositoryComponent.this)#Includable[T, E]*): (EntityRepositoryComponent.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
  28. val includes: List[(EntityRepositoryComponent.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
  29. def insert(instance: E)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): I

    Inserts a given entity instance into the database.

  30. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  35. def sortBy[C](f: (T) ⇒ C)(implicit arg0: (C) ⇒ Ordered): (EntityRepositoryComponent.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
  36. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    AbstractEntityCollectionBuilder
  38. def toString(): String

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

    Updates the database record for the given entity instance.

  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Inherited from AnyRef

Inherited from Any

Ungrouped