Package

com.jaroop.anorm

relational

Permalink

package relational

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. relational
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class OneToMany[A, B](parent: A, child: Option[B]) extends Product with Serializable

    Permalink

    Describes a one to many relationship between a single parent and child.

    Describes a one to many relationship between a single parent and child. This is an intermediate class for parsing SQL results, then flattening.

    A

    The type of the parent object.

    B

    The type of the child object.

    parent

    The parent object which contains a list of child objects.

    child

    The child object.

  2. case class OneToMany2[A, B1, B2](parent: A, c1: Option[B1], c2: Option[B2]) extends Product with Serializable

    Permalink
  3. case class OneToMany3[A, B1, B2, B3](parent: A, c1: Option[B1], c2: Option[B2], c3: Option[B3]) extends Product with Serializable

    Permalink
  4. case class OneToMany4[A, B1, B2, B3, B4](parent: A, c1: Option[B1], c2: Option[B2], c3: Option[B3], c4: Option[B4]) extends Product with Serializable

    Permalink
  5. case class OneToMany5[A, B1, B2, B3, B4, B5](parent: A, c1: Option[B1], c2: Option[B2], c3: Option[B3], c4: Option[B4], c5: Option[B5]) extends Product with Serializable

    Permalink
  6. case class RelationalParser[A, B](parser: RowParser[OneToMany[A, B]]) extends Product with Serializable

    Permalink

    A wrapper for a RowParser[OneTomany[A, B]] to control flattening of the result set.

    A wrapper for a RowParser[OneTomany[A, B]] to control flattening of the result set.

    parser

    The underlying Anorm parser used.

  7. case class RelationalParser2[A, B1, B2](parser: RowParser[OneToMany2[A, B1, B2]]) extends Product with Serializable

    Permalink
  8. case class RelationalParser3[A, B1, B2, B3](parser: RowParser[OneToMany3[A, B1, B2, B3]]) extends Product with Serializable

    Permalink
  9. case class RelationalParser4[A, B1, B2, B3, B4](parser: RowParser[OneToMany4[A, B1, B2, B3, B4]]) extends Product with Serializable

    Permalink
  10. case class RelationalParser5[A, B1, B2, B3, B4, B5](parser: RowParser[OneToMany5[A, B1, B2, B3, B4, B5]]) extends Product with Serializable

    Permalink
  11. case class RelationalResultParser[A, B, R](parser: RelationalParser[A, B], f: (List[A]) ⇒ R) extends Product with Serializable

    Permalink

    Holds a RelationalParser and a function that describes what to do with the result List.

  12. case class RelationalResultParser2[A, B1, B2, R](parser: RelationalParser2[A, B1, B2], f: (List[A]) ⇒ R) extends Product with Serializable

    Permalink
  13. case class RelationalResultParser3[A, B1, B2, B3, R](parser: RelationalParser3[A, B1, B2, B3], f: (List[A]) ⇒ R) extends Product with Serializable

    Permalink
  14. case class RelationalResultParser4[A, B1, B2, B3, B4, R](parser: RelationalParser4[A, B1, B2, B3, B4], f: (List[A]) ⇒ R) extends Product with Serializable

    Permalink
  15. case class RelationalResultParser5[A, B1, B2, B3, B4, B5, R](parser: RelationalParser5[A, B1, B2, B3, B4, B5], f: (List[A]) ⇒ R) extends Product with Serializable

    Permalink
  16. case class RelationalSQL[T](sql: SimpleSql[T]) extends Product with Serializable

    Permalink

    Holds a SimpleSql[T] statement created from SQL(...) in order to apply the underlying RowParser, then use RowFlatteners to flatten the relational structure into the parent object.

  17. case class RowFlattener[A, B](f: (A, List[B]) ⇒ A) extends Product with Serializable

    Permalink

    A Function-like class to describe how to copy a list of child objects into their respective parents.

    A Function-like class to describe how to copy a list of child objects into their respective parents.

    A

    The type of the parent object in a one-to-many relation.

    B

    The type of the child object in a one-to-many relation.

    f

    A function that takes a parent and a list of it's children and returns the parent with the children nested inside.

  18. case class RowFlattener2[A, B1, B2](f: (A, List[B1], List[B2]) ⇒ A) extends Product with Serializable

    Permalink
  19. case class RowFlattener3[A, B1, B2, B3](f: (A, List[B1], List[B2], List[B3]) ⇒ A) extends Product with Serializable

    Permalink
  20. case class RowFlattener4[A, B1, B2, B3, B4](f: (A, List[B1], List[B2], List[B3], List[B4]) ⇒ A) extends Product with Serializable

    Permalink
  21. case class RowFlattener5[A, B1, B2, B3, B4, B5](f: (A, List[B1], List[B2], List[B3], List[B4], List[B5]) ⇒ A) extends Product with Serializable

    Permalink

Value Members

  1. object OneToMany extends Serializable

    Permalink
  2. object RelationalParser extends Serializable

    Permalink

    Holds several apply methods to make defining parsers a bit cleaner.

  3. object RowFlattener extends Serializable

    Permalink

    Includes extra apply methods for each RowFlattener arity.

  4. implicit def query2Relational(sql: SqlQuery): RelationalSQL[Row]

    Permalink

    Implicitly convert SqlQuery to RelationalSQL[Row]

    Implicitly convert SqlQuery to RelationalSQL[Row]

    returns

    A RelationalSQL wrapper of the SqlQuery as SimpleSql[Row]

  5. implicit def simple2Relational[T](sql: SimpleSql[T]): RelationalSQL[T]

    Permalink

    Implicitly convert SimpleSql[T] to RelationalSQL[T] for almost seemless integration

    Implicitly convert SimpleSql[T] to RelationalSQL[T] for almost seemless integration

    returns

    A RelationalSQL wrapper of SimpleSql

Inherited from AnyRef

Inherited from Any

Ungrouped