jointype.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 57 行
SCALA
57 行
/* __ *\** ________ ___ / / ___ Scala API **** / __/ __// _ | / / / _ | (c) 2003-2007, LAMP/EPFL **** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **** /____/\___/_/ |_/____/_/ | | **** |/ **\* */// $Id: JoinType.scala 10890 2007-04-30 17:47:18Z michelou $package scala.dbc.statement/** A join behaviour in a <code>Jointure</code>. */abstract class JoinType { /** A SQL-99 string representation of the join behaviour. */ def sqlString: String}object JoinType { /** A join behaviour where a joined tuple is created only when a * corresponding tuple exists in both original relations. */ case object Inner extends JoinType { val sqlString = "INNER JOIN" } /** A join behaviour family where a joined tuple is created even when a * tuple has no corresponding tuple in the other relation. The fields * populated by values of the other tuple will receive the NULL value. */ abstract class Outer extends JoinType object Outer { /** An outer join behaviour where there will be at least on tuple for * every tuple in the left relation. */ case object Left extends Outer { val sqlString = "LEFT OUTER JOIN" } /** An outer join behaviour where there will be at least on tuple for * every tuple in the right relation. */ case object Right extends Outer { val sqlString = "RIGHT OUTER JOIN" } /** An outer join behaviour where there will be at least on tuple for * every tuple in both right and left relations. */ case object Full extends Outer { val sqlString = "FULL OUTER JOIN" } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?