Relation

decrel.Relation
See theRelation companion object
sealed trait Relation[-In, +Out]

A declaration of a Relation object by extending one of Relation.Single, Relation.Optional or Relation.Many can be thought of as an edge in the directed graph that is your entire domain model.

An expression with a type of Relation[A, B] represents a traversal of the domain model graph starting from A into B, where B can be a result of accumulation of an arbitrary number of nodes.

Attributes

In

When declaring: starting node of an edge. When in an expression: starting node of a traversal

Out

When declaring: ending node of an edge. When in an expression: accumulated nodes of a traversal

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Composed[LeftTree, LeftIn, LeftOut, RightTree, RightIn, RightOut, Out]
class Many[LeftTree, LeftIn, LeftOut, RightTree, RightIn, RightOut, CC]
class Optional[LeftTree, LeftIn, LeftOut, RightTree, RightIn, RightOut]
class Single[LeftTree, LeftIn, LeftOut, RightTree, RightIn, RightOut]
class Zipped[LeftTree, LeftIn, LeftOut, RightTree, RightIn, RightOut, ZippedOut]
class Custom[Tree, In, Out]
trait Declared[In, Out]
trait Many[In, Collection, Out]
trait Optional[In, Out]
trait Single[In, Out]
trait Self[A]

Members list

Concise view