org.virtuslab.unicorn.repositories.JunctionRepositories

JunctionRepository

Related Doc: package JunctionRepositories

class JunctionRepository[First, Second, Table <: (JunctionRepositories.this)#JunctionTable[First, Second]] extends (JunctionRepositories.this)#CommonRepositoryMethods[(First, Second), Table]

Repository with basic methods for junction tables.

First

type of one entity

Second

type of other entity

Linear Supertypes
(JunctionRepositories.this)#CommonRepositoryMethods[(First, Second), Table], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JunctionRepository
  2. CommonRepositoryMethods
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JunctionRepository(query: slick.driver.JdbcProfile.API.TableQuery[Table])(implicit arg0: slick.driver.JdbcProfile.API.BaseColumnType[First], arg1: slick.driver.JdbcProfile.API.BaseColumnType[Second])

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def create(): slick.driver.JdbcProfile.API.DBIO[Unit]

    Creates table definition in database.

    Creates table definition in database.

    Definition Classes
    CommonRepositoryMethods
  7. def delete(first: First, second: Second): slick.driver.JdbcProfile.API.DBIO[Int]

    Deletes one element.

    Deletes one element.

    first

    element of junction

    second

    element of junction

    returns

    number of deleted elements (0 or 1)

  8. def deleteAll(): slick.driver.JdbcProfile.API.DBIO[Int]

    Deletes all elements in table.

    Deletes all elements in table.

    returns

    number of deleted elements

    Definition Classes
    CommonRepositoryMethods
  9. def deleteForA(a: First): slick.driver.JdbcProfile.API.DBIO[Int]

    Delete all rows with given a value.

    Delete all rows with given a value.

    a

    element to query by

  10. def deleteForB(b: Second): slick.driver.JdbcProfile.API.DBIO[Int]

    Delete all rows with given b value.

    Delete all rows with given b value.

    b

    element to query by

  11. def drop(): slick.driver.JdbcProfile.API.DBIO[Unit]

    Drops table definition from database.

    Drops table definition from database.

    Definition Classes
    CommonRepositoryMethods
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def exists(first: First, second: Second): slick.driver.JdbcProfile.API.DBIO[Boolean]

    Checks if element exists in database.

    Checks if element exists in database.

    first

    element of junction

    second

    element of junction

    returns

    true if element exists in database

  15. val existsQuery: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[First], slick.driver.JdbcProfile.API.Rep[Second]) ⇒ Rep[Boolean], (slick.driver.JdbcProfile.API.Rep[First], slick.driver.JdbcProfile.API.Rep[Second]), (First, Second), Rep[Boolean], Boolean]

    Attributes
    protected
  16. def existsQueryFun(first: slick.driver.JdbcProfile.API.Rep[First], second: slick.driver.JdbcProfile.API.Rep[Second]): Rep[Boolean]

    Attributes
    protected
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def findAll(): slick.driver.JdbcProfile.API.DBIO[Seq[(First, Second)]]

    returns

    all elements of type A

    Definition Classes
    CommonRepositoryMethods
  19. def findByFirstFun(first: slick.driver.JdbcProfile.API.Rep[First]): Query[Table, Table.TableElementType, Seq]

    Attributes
    protected
  20. val findByFirstQueryCompiled: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[First]) ⇒ Query[Table, Table.TableElementType, Seq], slick.driver.JdbcProfile.API.Rep[First], First, Query[Table, Table.TableElementType, Seq], Seq[Table.TableElementType]]

    Attributes
    protected
  21. def findBySecondFun(second: slick.driver.JdbcProfile.API.Rep[Second]): Query[Table, Table.TableElementType, Seq]

    Attributes
    protected
  22. val findBySecondQuery: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[Second]) ⇒ Query[Table, Table.TableElementType, Seq], slick.driver.JdbcProfile.API.Rep[Second], Second, Query[Table, Table.TableElementType, Seq], Seq[Table.TableElementType]]

    Attributes
    protected
  23. def findFirstBySecondFun(second: slick.driver.JdbcProfile.API.Rep[Second]): Query[Rep[First], First, Seq]

    Attributes
    protected
  24. val findFirstBySecondQuery: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[Second]) ⇒ Query[Rep[First], First, Seq], slick.driver.JdbcProfile.API.Rep[Second], Second, Query[Rep[First], First, Seq], Seq[First]]

    Attributes
    protected
  25. val findOneQueryCompiled: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[First], slick.driver.JdbcProfile.API.Rep[Second]) ⇒ Query[Table, Table.TableElementType, Seq], (slick.driver.JdbcProfile.API.Rep[First], slick.driver.JdbcProfile.API.Rep[Second]), (First, Second), Query[Table, Table.TableElementType, Seq], Seq[Table.TableElementType]]

    Attributes
    protected
  26. def findOneQueryFun(first: slick.driver.JdbcProfile.API.Rep[First], second: slick.driver.JdbcProfile.API.Rep[Second]): Query[Table, Table.TableElementType, Seq]

    Attributes
    protected
  27. def findSecondByFirstFun(first: slick.driver.JdbcProfile.API.Rep[First]): Query[Rep[Second], Second, Seq]

    Attributes
    protected
  28. val findSecondByFirstQuery: CompiledFunction[(slick.driver.JdbcProfile.API.Rep[First]) ⇒ Query[Rep[Second], Second, Seq], slick.driver.JdbcProfile.API.Rep[First], First, Query[Rep[Second], Second, Seq], Seq[Second]]

    Attributes
    protected
  29. def forA(a: First): slick.driver.JdbcProfile.API.DBIO[Seq[Second]]

    a

    element to query by

    returns

    all b values for given a

  30. def forB(b: Second): slick.driver.JdbcProfile.API.DBIO[Seq[First]]

    b

    element to query by

    returns

    all a values for given b

  31. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  33. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  37. val query: slick.driver.JdbcProfile.API.TableQuery[Table]

  38. def save(a: First, b: Second)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[Unit]

    Saves one element if it's not present in db already.

    Saves one element if it's not present in db already.

    a

    one element

    b

    other element

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

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from (JunctionRepositories.this)#CommonRepositoryMethods[(First, Second), Table]

Inherited from AnyRef

Inherited from Any

Ungrouped