slick.lifted

ForeignKeyQuery

class ForeignKeyQuery[E <: AbstractTable[_], U] extends WrappingQuery[E, U, Seq] with Constraint

A query that selects data linked by a foreign key.

Source
Constraint.scala
Linear Supertypes
Constraint, WrappingQuery[E, U, Seq], Query[E, U, Seq], QueryBase[Seq[U]], Rep[Seq[U]], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ForeignKeyQuery
  2. Constraint
  3. WrappingQuery
  4. Query
  5. QueryBase
  6. Rep
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ForeignKeyQuery(nodeDelegate: Node, base: ShapedValue[_ <: E, U], fks: IndexedSeq[ForeignKey], targetBaseQuery: Query[E, U, Seq], generator: AnonSymbol, aliasedValue: E)

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. def &(other: ForeignKeyQuery[E, U]): ForeignKeyQuery[E, U]

    Combine the constraints of this ForeignKeyQuery with another one with the same target table, leading to a single instance of the target table which satisfies the constraints of both.

  5. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  6. def ++[O >: E, R, D[_]](other: Query[O, U, D]): Query[O, U, Seq]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are preserved.

    Definition Classes
    Query
  7. def ->[B](y: B): (ForeignKeyQuery[E, U], B)

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to ArrowAssoc[ForeignKeyQuery[E, U]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def countDistinct: Rep[Int]

    The number of distinct elements of the query.

    The number of distinct elements of the query.

    Definition Classes
    Query
  13. def drop(num: Int): Query[E, U, Seq]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

    Definition Classes
    Query
  14. def drop(num: Long): Query[E, U, Seq]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

    Definition Classes
    Query
  15. def drop(num: ConstColumn[Long]): Query[E, U, Seq]

    Select all elements except the first num ones.

    Select all elements except the first num ones.

    Definition Classes
    Query
  16. def encodeRef(path: Node): Query[E, U, Seq]

    Encode a reference into this Rep.

    Encode a reference into this Rep.

    Definition Classes
    QueryRep
  17. def ensuring(cond: (ForeignKeyQuery[E, U]) ⇒ Boolean, msg: ⇒ Any): ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (ForeignKeyQuery[E, U]) ⇒ Boolean): ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  23. def exists: Rep[Boolean]

    Test whether this query is non-empty.

    Test whether this query is non-empty.

    Definition Classes
    Query
  24. def filter[T <: Rep[_]](f: (E) ⇒ T)(implicit wt: CanBeQueryCondition[T]): Query[E, U, Seq]

    Select all elements of this query which satisfy a predicate.

    Select all elements of this query which satisfy a predicate. Unlike withFilter, this method only allows Rep-valued predicates, so it guards against the accidental use use plain Booleans.

    Definition Classes
    Query
  25. def filterNot[T <: Rep[_]](f: (E) ⇒ T)(implicit wt: CanBeQueryCondition[T]): Query[E, U, Seq]

    Definition Classes
    Query
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. val fks: IndexedSeq[ForeignKey]

  28. def flatMap[F, T, D[_]](f: (E) ⇒ Query[F, T, D]): Query[F, T, Seq]

    Build a new query by applying a function to all elements of this query and using the elements of the resulting queries.

    Build a new query by applying a function to all elements of this query and using the elements of the resulting queries. This corresponds to an implicit inner join in SQL.

    Definition Classes
    Query
  29. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def groupBy[K, T, G, P](f: (E) ⇒ K)(implicit kshape: Shape[_ <: FlatShapeLevel, K, T, G], vshape: Shape[_ <: FlatShapeLevel, E, _, P]): Query[(G, Query[P, U, Seq]), (T, Query[P, U, Seq]), Seq]

    Partition this query into a query of pairs of a key and a nested query containing the elements for the key, according to some discriminator function.

    Partition this query into a query of pairs of a key and a nested query containing the elements for the key, according to some discriminator function.

    Definition Classes
    Query
  32. def hashCode(): Int

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

    Definition Classes
    Any
  34. def join[E2, U2, D[_]](q2: Query[E2, U2, D]): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries with a cross join or inner join.

    Join two queries with a cross join or inner join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
  35. def joinFull[E1 >: E, E2, U2, D[_], O1, U1, O2](q2: Query[E2, _, D])(implicit ol1: OptionLift[E1, O1], sh1: Shape[FlatShapeLevel, O1, U1, _], ol2: OptionLift[E2, O2], sh2: Shape[FlatShapeLevel, O2, U2, _]): BaseJoinQuery[O1, O2, U1, U2, Seq, E, E2]

    Join two queries with a full outer join.

    Join two queries with a full outer join. An optional join predicate can be specified later by calling on. Both sides of the join are lifted to an Option. If at least one element on either side matches the other side, all matching elements are returned as Some, otherwise a single None row is returned.

    Definition Classes
    Query
  36. def joinLeft[E2, U2, D[_], O2](q2: Query[E2, _, D])(implicit ol: OptionLift[E2, O2], sh: Shape[FlatShapeLevel, O2, U2, _]): BaseJoinQuery[E, O2, U, U2, Seq, E, E2]

    Join two queries with a left outer join.

    Join two queries with a left outer join. An optional join predicate can be specified later by calling on. The right side of the join is lifted to an Option. If at least one element on the right matches, all matching elements are returned as Some, otherwise a single None row is returned.

    Definition Classes
    Query
  37. def joinRight[E1 >: E, E2, U2, D[_], O1, U1](q2: Query[E2, U2, D])(implicit ol: OptionLift[E1, O1], sh: Shape[FlatShapeLevel, O1, U1, _]): BaseJoinQuery[O1, E2, U1, U2, Seq, E, E2]

    Join two queries with a right outer join.

    Join two queries with a right outer join. An optional join predicate can be specified later by calling on. The left side of the join is lifted to an Option. If at least one element on the left matches, all matching elements are returned as Some, otherwise a single None row is returned.

    Definition Classes
    Query
  38. def length: Rep[Int]

    The total number of elements (i.

    The total number of elements (i.e. rows).

    Definition Classes
    Query
  39. def map[F, G, T](f: (E) ⇒ F)(implicit shape: Shape[_ <: FlatShapeLevel, F, T, G]): Query[G, T, Seq]

    Build a new query by applying a function to all elements of this query.

    Build a new query by applying a function to all elements of this query.

    Definition Classes
    Query
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  43. def pack[R](implicit packing: Shape[_ <: FlatShapeLevel, E, _, R]): Query[R, U, Seq]

    Definition Classes
    Query
  44. final lazy val packed: Node

    Definition Classes
    Query
  45. val shaped: ShapedValue[_ <: E, U]

    Definition Classes
    WrappingQueryQuery
  46. def size: Rep[Int]

    The total number of elements (i.

    The total number of elements (i.e. rows).

    Definition Classes
    Query
  47. def sortBy[T](f: (E) ⇒ T)(implicit arg0: (T) ⇒ Ordered): Query[E, U, Seq]

    Sort this query according to a function which extracts the ordering criteria from the query's elements.

    Sort this query according to a function which extracts the ordering criteria from the query's elements.

    Definition Classes
    Query
  48. def sorted(implicit ev: (E) ⇒ Ordered): Query[E, U, Seq]

    Sort this query according to a the ordering of its elements.

    Sort this query according to a the ordering of its elements.

    Definition Classes
    Query
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def take(num: Int): Query[E, U, Seq]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    Query
  51. def take(num: Long): Query[E, U, Seq]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    Query
  52. def take(num: ConstColumn[Long]): Query[E, U, Seq]

    Select the first num elements.

    Select the first num elements.

    Definition Classes
    Query
  53. def to[D[_]](implicit ctc: TypedCollectionTypeConstructor[D]): Query[E, U, D]

    Definition Classes
    Query
  54. val toNode: Node

    Get the Node for this Rep.

    Get the Node for this Rep.

    Definition Classes
    WrappingQueryRep
  55. def toString(): String

    Definition Classes
    Rep → AnyRef → Any
  56. def union[O >: E, R, D[_]](other: Query[O, U, D]): Query[O, U, Seq]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are eliminated from the result.

    Definition Classes
    Query
  57. def unionAll[O >: E, R, D[_]](other: Query[O, U, D]): Query[O, U, Seq]

    Return a new query containing the elements from both operands.

    Return a new query containing the elements from both operands. Duplicate elements are preserved.

    Definition Classes
    Query
  58. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. def withFilter[T](f: (E) ⇒ T)(implicit arg0: CanBeQueryCondition[T]): Query[E, U, Seq]

    Select all elements of this query which satisfy a predicate.

    Select all elements of this query which satisfy a predicate. This method is used when desugaring for-comprehensions over queries. There is no reason to call it directly because it is the same as filter.

    Definition Classes
    Query
  62. def zip[E2, U2, D[_]](q2: Query[E2, U2, D]): Query[(E, E2), (U, U2), Seq]

    Return a query formed from this query and another query by combining corresponding elements in pairs.

    Return a query formed from this query and another query by combining corresponding elements in pairs.

    Definition Classes
    Query
  63. def zipWith[E2, U2, F, G, T, D[_]](q2: Query[E2, U2, D], f: (E, E2) ⇒ F)(implicit shape: Shape[_ <: FlatShapeLevel, F, T, G]): Query[G, T, Seq]

    Return a query formed from this query and another query by combining corresponding elements with the specified function.

    Return a query formed from this query and another query by combining corresponding elements with the specified function.

    Definition Classes
    Query
  64. def zipWithIndex: BaseJoinQuery[E, Rep[Long], U, Long, Seq, E, Rep[Long]]

    Zip this query with its indices (starting at 0).

    Zip this query with its indices (starting at 0).

    Definition Classes
    Query
  65. def [B](y: B): (ForeignKeyQuery[E, U], B)

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to ArrowAssoc[ForeignKeyQuery[E, U]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (foreignKeyQuery: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (foreignKeyQuery: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def innerJoin[E2, U2, D[_]](q2: Query[E2, U2, D]): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries with a cross / inner join.

    Join two queries with a cross / inner join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Use join instead of joinInner

  2. def join[E2, U2, D[_]](q2: Query[E2, U2, D], jt: JoinType): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries.

    Join two queries. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Use join (without explicit JoinType), joinLeft, joinRight or joinOuter instead

  3. def leftJoin[E2, U2, D[_]](q2: Query[E2, U2, D]): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries with a left outer join.

    Join two queries with a left outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Use joinLeft (with correct Option types) instead of leftJoin

  4. def outerJoin[E2, U2, D[_]](q2: Query[E2, U2, D]): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries with a full outer join.

    Join two queries with a full outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Use joinFull (with correct Option types) instead of outerJoin

  5. def rightJoin[E2, U2, D[_]](q2: Query[E2, U2, D]): BaseJoinQuery[E, E2, U, U2, Seq, E, E2]

    Join two queries with a right outer join.

    Join two queries with a right outer join. An optional join predicate can be specified later by calling on.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0) Use joinRight (with correct Option types) instead of rightJoin

  6. def where[T <: Rep[_]](f: (E) ⇒ T)(implicit arg0: CanBeQueryCondition[T]): Query[E, U, Seq]

    Select all elements of this query which satisfy a predicate.

    Select all elements of this query which satisfy a predicate. Unlike withFilter, this method only allows Column-valued predicates, so it guards against the accidental use use plain Booleans.

    Definition Classes
    Query
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1) Use filter instead of where

  7. def x: ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to ArrowAssoc[ForeignKeyQuery[E, U]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (foreignKeyQuery: ArrowAssoc[ForeignKeyQuery[E, U]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  8. def x: ForeignKeyQuery[E, U]

    Implicit information
    This member is added by an implicit conversion from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (foreignKeyQuery: Ensuring[ForeignKeyQuery[E, U]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Constraint

Inherited from WrappingQuery[E, U, Seq]

Inherited from Query[E, U, Seq]

Inherited from QueryBase[Seq[U]]

Inherited from Rep[Seq[U]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ForeignKeyQuery[E, U] to StringAdd

Inherited by implicit conversion any2stringfmt from ForeignKeyQuery[E, U] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from ForeignKeyQuery[E, U] to ArrowAssoc[ForeignKeyQuery[E, U]]

Inherited by implicit conversion any2Ensuring from ForeignKeyQuery[E, U] to Ensuring[ForeignKeyQuery[E, U]]

Ungrouped