org.squeryl.dsl

ManyToMany

trait ManyToMany [O <: org.squeryl.KeyedEntity[_], A <: org.squeryl.KeyedEntity[_]] extends Query[O]

This trait is what is referred by both the left and right side of a manyToMany relation. Type parameters are : O: the type at the "other" side of the relation A: the association type i.e. the entity in the "middle" of the relation

Object mapping to the "middle" entity are called "association objects"

this trait extends Query[O] and can be queried against like a normal query.

Note that this trait is used on both "left" and "right" sides of the relation, but in a given relation

linear super types: Query[O], Queryable[O], Iterable[O], IterableLike[O, Iterable[O]], Equals, Traversable[O], GenericTraversableTemplate[O, Iterable], TraversableLike[O, Iterable[O]], TraversableOnce[O], FilterMonadic[O, Iterable[O]], HasNewBuilder[O, Iterable[O]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ManyToMany
  2. Query
  3. Queryable
  4. Iterable
  5. IterableLike
  6. Equals
  7. Traversable
  8. GenericTraversableTemplate
  9. TraversableLike
  10. TraversableOnce
  11. FilterMonadic
  12. HasNewBuilder
  13. AnyRef
  14. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. type Self = Iterable[O]

    attributes: protected
    definition classes: TraversableLike

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def ++ [B >: A, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike
  7. def /: [B] (z: B)(op: (B, O) ⇒ B) : B

    definition classes: TraversableOnce
  8. def :\ [B] (z: B)(op: (O, B) ⇒ B) : B

    definition classes: TraversableOnce
  9. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  10. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  11. def addString (b: StringBuilder) : StringBuilder

    definition classes: TraversableOnce
  12. def addString (b: StringBuilder, sep: String) : StringBuilder

    definition classes: TraversableOnce
  13. def addString (b: StringBuilder, start: String, sep: String, end: String) : StringBuilder

    definition classes: TraversableOnce
  14. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  15. def assign (o: O) : A

    Creates a new association object 'a' and calls assign(o,a)

    Creates a new association object 'a' and calls assign(o,a)

    attributes: abstract
  16. def assign (o: O, a: A) : A

    returns

    the 'a' parameter is returned

    attributes: abstract
  17. def associate (o: O) : A

    Creates a new association object 'a' and calls associate(o,a)

    Creates a new association object 'a' and calls associate(o,a)

    Note that this method will fail if the association object has NOT NULL constraint fields appart from the foreign keys in the relations

    attributes: abstract
  18. def associate (o: O, a: A) : A

    returns

    the 'a' parameter is returned

    attributes: abstract
  19. def associationMap : Query[(O, A)]

    returns

    a Query of Tuple2 containing all objects on the 'other side' along with their association object

    attributes: abstract
  20. def associations : Query[A]

    a Query returning all of this member's association entries

    a Query returning all of this member's association entries

    attributes: abstract
  21. def ast : ExpressionNode

    attributes: abstract
    definition classes: Query
  22. def canEqual (that: Any) : Boolean

    definition classes: IterableLike → Equals
  23. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  24. def collect [B, That] (pf: PartialFunction[O, B])(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike
  25. def companion : GenericCompanion[Iterable]

    definition classes: Iterable → Traversable → GenericTraversableTemplate
  26. def copyToArray [B >: A] (xs: Array[B], start: Int, len: Int) : Unit

    definition classes: IterableLike → TraversableLike → TraversableOnce
  27. def copyToArray [B >: A] (xs: Array[B]) : Unit

    definition classes: TraversableOnce
  28. def copyToArray [B >: A] (xs: Array[B], start: Int) : Unit

    definition classes: TraversableOnce
  29. def copyToBuffer [B >: A] (dest: Buffer[B]) : Unit

    definition classes: TraversableOnce
  30. def count (p: (O) ⇒ Boolean) : Int

    definition classes: TraversableOnce
  31. def dissociate (o: O) : Boolean

    Causes the deletion of the 'Association object' between this side and the other side of the relation.

    Causes the deletion of the 'Association object' between this side and the other side of the relation.

    returns

    true if 'o' was associated (if an association object existed between 'this' and 'o') false otherwise

    attributes: abstract
  32. def dissociateAll : Int

    Deletes all "associations" relating this "side" to the other

    Deletes all "associations" relating this "side" to the other

    attributes: abstract
  33. def distinct : Query[O]

    attributes: abstract
    definition classes: Query
  34. def drop (n: Int) : Iterable[O]

    definition classes: TraversableLike
  35. def dropRight (n: Int) : Iterable[O]

    definition classes: IterableLike
  36. def dropWhile (p: (O) ⇒ Boolean) : Iterable[O]

    definition classes: TraversableLike
  37. def dumpAst : String

    attributes: abstract
    definition classes: Query
  38. def elements : Iterator[O]

    definition classes: IterableLike
      deprecated:
    1. use iterator' instead

  39. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  40. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  41. def exists (p: (O) ⇒ Boolean) : Boolean

    definition classes: IterableLike → TraversableLike → TraversableOnce
  42. def filter (p: (O) ⇒ Boolean) : Iterable[O]

    definition classes: TraversableLike
  43. def filterNot (p: (O) ⇒ Boolean) : Iterable[O]

    definition classes: TraversableLike
  44. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  45. def find (p: (O) ⇒ Boolean) : Option[O]

    definition classes: IterableLike → TraversableLike → TraversableOnce
  46. def first : O

    definition classes: IterableLike
      deprecated:
    1. use head' instead

  47. def firstOption : Option[O]

    definition classes: IterableLike
      deprecated:
    1. use headOption' instead

  48. def flatMap [B, That] (f: (O) ⇒ Traversable[B])(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike → FilterMonadic
  49. def flatten [B] (implicit asTraversable: (O) ⇒ Traversable[B]) : Iterable[B]

    definition classes: GenericTraversableTemplate
  50. def foldLeft [B] (z: B)(op: (B, O) ⇒ B) : B

    definition classes: TraversableOnce
  51. def foldRight [B] (z: B)(op: (O, B) ⇒ B) : B

    definition classes: IterableLike → TraversableOnce
  52. def forUpdate : Query[O]

    attributes: abstract
    definition classes: Query
  53. def forall (p: (O) ⇒ Boolean) : Boolean

    definition classes: IterableLike → TraversableLike → TraversableOnce
  54. def foreach [U] (f: (O) ⇒ U) : Unit

    definition classes: IterableLike → TraversableLike → TraversableOnce → FilterMonadic
  55. def genericBuilder [B] : Builder[B, Iterable[B]]

    definition classes: GenericTraversableTemplate
  56. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  57. def groupBy [K] (f: (O) ⇒ K) : Map[K, Iterable[O]]

    definition classes: TraversableLike
  58. def grouped (size: Int) : Iterator[Iterable[O]]

    definition classes: IterableLike
  59. def hasDefiniteSize : Boolean

    definition classes: TraversableLike → TraversableOnce
  60. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  61. def head : O

    definition classes: IterableLike → TraversableLike
  62. def headOption : Option[O]

    definition classes: Query → TraversableLike
  63. def init : Iterable[O]

    definition classes: TraversableLike
  64. def invokeYield (rsm: ResultSetMapper, resultSet: ResultSet) : O

    attributes: protected[squeryl] abstract
    definition classes: Query
  65. def isEmpty : Boolean

    definition classes: IterableLike → TraversableLike → TraversableOnce
  66. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  67. def isTraversableAgain : Boolean

    attributes: final
    definition classes: TraversableLike → TraversableOnce
  68. def iterator : Iterator[O]

    attributes: abstract
    definition classes: IterableLike
  69. def last : O

    definition classes: TraversableLike
  70. def lastOption : Option[O]

    definition classes: TraversableLike
  71. def map [B, That] (f: (O) ⇒ B)(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike → FilterMonadic
  72. def max [B >: A] (implicit cmp: Ordering[B]) : O

    definition classes: TraversableOnce
  73. def min [B >: A] (implicit cmp: Ordering[B]) : O

    definition classes: TraversableOnce
  74. def minus (q: Query[O]) : Query[O]

    definition classes: Query
  75. def mkString : String

    definition classes: TraversableOnce
  76. def mkString (sep: String) : String

    definition classes: TraversableOnce
  77. def mkString (start: String, sep: String, end: String) : String

    definition classes: TraversableOnce
  78. def name : String

    attributes: abstract
    definition classes: Queryable
  79. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  80. def newBuilder : Builder[O, Iterable[O]]

    attributes: protected[this]
    definition classes: GenericTraversableTemplate → HasNewBuilder
  81. def nonEmpty : Boolean

    definition classes: TraversableOnce
  82. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  83. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  84. def page (offset: Int, pageLength: Int) : Query[O]

    attributes: abstract
    definition classes: Query
  85. def partition (p: (O) ⇒ Boolean) : (Iterable[O], Iterable[O])

    definition classes: TraversableLike
  86. def product [B >: A] (implicit num: Numeric[B]) : B

    definition classes: TraversableOnce
  87. def projection : IterableView[O, Iterable[O]]

    definition classes: IterableLike
      deprecated:
    1. use view' instead

  88. def reduceLeft [B >: A] (op: (B, O) ⇒ B) : B

    definition classes: TraversableOnce
  89. def reduceLeftOption [B >: A] (op: (B, O) ⇒ B) : Option[B]

    definition classes: TraversableOnce
  90. def reduceRight [B >: A] (op: (O, B) ⇒ B) : B

    definition classes: IterableLike → TraversableOnce
  91. def reduceRightOption [B >: A] (op: (O, B) ⇒ B) : Option[B]

    definition classes: TraversableOnce
  92. def repr : Iterable[O]

    definition classes: TraversableLike
  93. def reversed : List[O]

    attributes: protected[this]
    definition classes: TraversableOnce
  94. def sameElements [B >: A] (that: Iterable[B]) : Boolean

    definition classes: IterableLike
  95. def scanLeft [B, That] (z: B)(op: (B, O) ⇒ B)(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike
  96. def scanRight [B, That] (z: B)(op: (O, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[O], B, That]) : That

    definition classes: TraversableLike
  97. def single : O

    Returns the first row of the query.

    Returns the first row of the query. An exception will be thrown if the query returns no row or more than one row.

    definition classes: Query
  98. def size : Int

    definition classes: TraversableOnce
  99. def slice (from: Int, until: Int) : Iterable[O]

    definition classes: IterableLike → TraversableLike
  100. def sliding [B >: A] (size: Int, step: Int) : Iterator[Iterable[O]]

    definition classes: IterableLike
  101. def sliding [B >: A] (size: Int) : Iterator[Iterable[O]]

    definition classes: IterableLike
  102. def span (p: (O) ⇒ Boolean) : (Iterable[O], Iterable[O])

    definition classes: TraversableLike
  103. def splitAt (n: Int) : (Iterable[O], Iterable[O])

    definition classes: TraversableLike
  104. def statement : String

    returns a 'pretty' statement, i.

    returns a 'pretty' statement, i.e. values are printed instead of '?'

    attributes: abstract
    definition classes: Query
  105. def stringPrefix : String

    definition classes: TraversableLike
  106. def sum [B >: A] (implicit num: Numeric[B]) : B

    definition classes: TraversableOnce
  107. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  108. def tail : Iterable[O]

    definition classes: TraversableLike
  109. def take (n: Int) : Iterable[O]

    definition classes: IterableLike → TraversableLike
  110. def takeRight (n: Int) : Iterable[O]

    definition classes: IterableLike
  111. def takeWhile (p: (O) ⇒ Boolean) : Iterable[O]

    definition classes: IterableLike → TraversableLike
  112. def thisCollection : Iterable[O]

    attributes: protected[this]
    definition classes: IterableLike → TraversableLike
  113. def toArray [B >: A] (implicit arg0: ClassManifest[B]) : Array[B]

    definition classes: TraversableOnce
  114. def toBuffer [B >: A] : Buffer[B]

    definition classes: TraversableOnce
  115. def toCollection (repr: Iterable[O]) : Iterable[O]

    attributes: protected[this]
    definition classes: IterableLike → TraversableLike
  116. def toIndexedSeq [B >: A] : IndexedSeq[B]

    definition classes: TraversableOnce
  117. def toIterable : Iterable[O]

    definition classes: IterableLike → TraversableOnce
  118. def toIterator : Iterator[O]

    definition classes: TraversableLike → TraversableOnce
  119. def toList : List[O]

    definition classes: TraversableOnce
  120. def toMap [T, U] (implicit ev: <:<[O, (T, U)]) : Map[T, U]

    definition classes: TraversableOnce
  121. def toSeq : Seq[O]

    definition classes: IterableLike → TraversableOnce
  122. def toSet [B >: A] : Set[B]

    definition classes: TraversableOnce
  123. def toStream : Stream[O]

    definition classes: IterableLike → TraversableLike → TraversableOnce
  124. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: TraversableLike → AnyRef → Any
  125. def toTraversable : Traversable[O]

    definition classes: TraversableLike → TraversableOnce
  126. def transpose [B] (implicit asTraversable: (O) ⇒ Traversable[B]) : Iterable[Iterable[B]]

    definition classes: GenericTraversableTemplate
  127. def union (q: Query[O]) : Query[O]

    definition classes: Query
  128. def unzip [A1, A2] (implicit asPair: (O) ⇒ (A1, A2)) : (Iterable[A1], Iterable[A2])

    definition classes: GenericTraversableTemplate
  129. def view (from: Int, until: Int) : IterableView[O, Iterable[O]]

    definition classes: IterableLike → TraversableLike
  130. def view : IterableView[O, Iterable[O]]

    definition classes: IterableLike → TraversableLike
  131. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  132. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  133. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  134. def where (whereClauseFunctor: (O) ⇒ LogicalBoolean)(implicit dsl: QueryDsl) : Query[O]

    definition classes: Queryable
  135. def withFilter (p: (O) ⇒ Boolean) : FilterMonadic[O, Iterable[O]]

    definition classes: TraversableLike → FilterMonadic
  136. def zip [A1 >: A, B, That] (that: Iterable[B])(implicit bf: CanBuildFrom[Iterable[O], (A1, B), That]) : That

    definition classes: IterableLike
  137. def zipAll [B, A1 >: A, That] (that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[O], (A1, B), That]) : That

    definition classes: IterableLike
  138. def zipWithIndex [A1 >: A, That] (implicit bf: CanBuildFrom[Iterable[O], (A1, Int), That]) : That

    definition classes: IterableLike

Inherited from Query[O]

Inherited from Queryable[O]

Inherited from Iterable[O]

Inherited from IterableLike[O, Iterable[O]]

Inherited from Equals

Inherited from Traversable[O]

Inherited from GenericTraversableTemplate[O, Iterable]

Inherited from TraversableLike[O, Iterable[O]]

Inherited from TraversableOnce[O]

Inherited from FilterMonadic[O, Iterable[O]]

Inherited from HasNewBuilder[O, Iterable[O]]

Inherited from AnyRef

Inherited from Any