entitytled.EntityRepositoryComponent

EntityRepository

Related Doc: package EntityRepositoryComponent

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

Repository class for managing the retrieval and persistence of entities.

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

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

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

    Removes the entity with the given ID from the database.

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

    Select all elements except the first num ones.

    Select all elements except the first num ones.

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

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

    Definition Classes
    AnyRef → Any
  18. def filter[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityRepositoryComponent.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
  19. def filterNot[C <: scala.slick.driver.JdbcProfile.SimpleQL.Column[_]](f: (T) ⇒ C)(implicit wt: CanBeQueryCondition[C]): (EntityRepositoryComponent.this)#EntityCollectionBuilder[T, E]

    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
  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: (EntityRepositoryComponent.this)#SideLoadable[T, E]*): (EntityRepositoryComponent.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.

  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): (EntityRepositoryComponent.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[(EntityRepositoryComponent.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): (EntityRepositoryComponent.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): (EntityRepositoryComponent.this)#EntityCollectionBuilder[T, E]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    AbstractEntityCollectionBuilder
  37. def toString(): String

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

    Updates the database record for the given entity instance.

  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Inherited from AnyRef

Inherited from Any

Ungrouped