entitytled.EntityRepositoryComponent

EntityRepository

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

Repository class for managing the retrieval and persistence of entities.

T

The entity's table type.

E

The entity type.

I

The entity's ID type.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EntityRepository
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EntityRepository()(implicit ev: slick.driver.JdbcProfile.API.BaseColumnType[I], tqp: (EntityRepositoryComponent.this)#TableQueryProvider[T, E])

    Creates a new entity repository.

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(id: I)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    id

    The ID of entity instance that was deleted.

    Attributes
    protected
  7. def afterInsert(id: I, instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    id

    The ID of entity instance that was inserted.

    instance

    The entity instance that was inserted.

    Attributes
    protected
  8. def afterSave(id: I, instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    id

    The ID of entity instance that was saved.

    instance

    The entity instance that was saved.

    Attributes
    protected
  9. def afterUpdate(id: I, instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    id

    The ID of entity instance that was updated.

    instance

    The entity instance that was updated.

    Attributes
    protected
  10. val all: slick.driver.JdbcProfile.API.Query[T, E, Seq]

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def beforeDelete(id: I)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    id

    The ID of entity instance that is to be deleted.

    Attributes
    protected
  13. def beforeInsert(instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    instance

    The entity instance that is to be insterted.

    Attributes
    protected
  14. def beforeSave(instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    instance

    The entity instance that is to be saved.

    Attributes
    protected
  15. def beforeUpdate(instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[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.

    instance

    The entity instance that is to be updated.

    Attributes
    protected
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def delete(id: I)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[Unit]

    Returns a database action for deleteing the entity with the given ID from the database.

    Returns a database action for deleteing the entity with the given ID from the database.

    id

    The ID of the entity to be deleted.

    ec

    The execution context in which the action is to be build.

  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  23. def insert(instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[I]

    Returns a database action for inserting the given entity instance into the database.

    Returns a database action for inserting the given entity instance into the database.

    instance

    The entity instance to be inserted.

    ec

    The execution context in which the action is to be build.

  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  28. def one(id: I): (EntityRepositoryComponent.this)#EntityInstanceActionBuilder[T, E]

  29. val query: slick.driver.JdbcProfile.API.Query[T, E, Seq]

  30. val result: FixedSqlStreamingAction[Seq[E], E, Read]

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def update(instance: E)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[Unit]

    Returns a database action for updating the database record for the given entity instance.

    Returns a database action for updating the database record for the given entity instance.

    instance

    The entity instance to be updated.

    ec

    The execution context in which the action is to be build.

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped