entitytled.EntityRepositoryComponent

EntityRepository

Related Doc: package EntityRepositoryComponent

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: 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(id: I): 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
  5. def afterInsert(id: I, instance: E): 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
  6. def afterSave(id: I, instance: E): 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
  7. def afterUpdate(id: I, instance: E): 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
  8. val all: slick.driver.JdbcProfile.API.Query[T, E, Seq]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def beforeDelete(id: I): 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
  11. def beforeInsert(instance: E): 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
  12. def beforeSave(instance: E): 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
  13. def beforeUpdate(instance: E): 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
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. 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.

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  21. 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.

  22. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. 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.

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped