Trait

org.squeryl.dsl

ManyToMany

Related Doc: package dsl

Permalink

trait ManyToMany[O, A] 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

Source
ManyToMany.scala
Linear Supertypes
Query[O], Queryable[O], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ManyToMany
  2. Query
  3. Queryable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def assign(o: O): A

    Permalink

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

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

    Permalink

    returns

    the 'a' parameter is returned

  3. abstract def associate(o: O): A

    Permalink

    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

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

    Permalink

    returns

    the 'a' parameter is returned

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

    Permalink

    returns

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

  6. abstract def associations: Query[A]

    Permalink

    a Query returning all of this member's association entries

  7. abstract def ast: ExpressionNode

    Permalink
    Definition Classes
    Query
  8. abstract def dissociate(o: O): Boolean

    Permalink

    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

  9. abstract def dissociateAll: Int

    Permalink

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

  10. abstract def distinct: Query[O]

    Permalink
    Definition Classes
    Query
  11. abstract def dumpAst: String

    Permalink
    Definition Classes
    Query
  12. abstract def except(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query
  13. abstract def exceptAll(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query
  14. abstract def forUpdate: Query[O]

    Permalink
    Definition Classes
    Query
  15. abstract def intersect(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query
  16. abstract def intersectAll(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query
  17. abstract def invokeYield(rsm: ResultSetMapper, resultSet: ResultSet): O

    Permalink
    Attributes
    protected[org.squeryl]
    Definition Classes
    Query
  18. abstract def iterator: Iterator[O]

    Permalink
    Definition Classes
    Query
  19. abstract def kedL: KeyedEntityDef[O, _]

    Permalink
  20. abstract def name: String

    Permalink
    Definition Classes
    Queryable
  21. abstract def page(offset: Int, pageLength: Int): Query[O]

    Permalink
    Definition Classes
    Query
  22. abstract def statement: String

    Permalink

    returns a 'pretty' statement, i.e.

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

    Definition Classes
    Query
  23. abstract def union(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query
  24. abstract def unionAll(q: Query[O]): Query[O]

    Permalink
    Definition Classes
    Query

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def headOption: Option[O]

    Permalink
    Definition Classes
    Query
  12. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def single: O

    Permalink

    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
  17. def singleOption: Option[O]

    Permalink

    Returns Some(singleRow), None if there are none, throws an exception if the query returns more than one row.

    Returns Some(singleRow), None if there are none, throws an exception if the query returns more than one row.

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

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def where(whereClauseFunctor: (O) ⇒ LogicalBoolean)(implicit dsl: QueryDsl): Query[O]

    Permalink
    Definition Classes
    Queryable

Inherited from Query[O]

Inherited from Queryable[O]

Inherited from AnyRef

Inherited from Any

Ungrouped