case class SqlUnion(elems: List[SqlSelect], aliases: List[String] = Nil) extends SqlQuery with Product with Serializable
Representation of a UNION ALL of SQL SELECTs
- Alphabetic
- By Inheritance
- SqlUnion
- Serializable
- Product
- Equals
- SqlQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addColumns(cols: List[ColumnRef]): SqlUnion
Add the given columns to this query
- def addFilterOrderByLimit(pred: Option[Predicate], oss: Option[List[OrderSelection[_]]], limit: Option[Int], folQuery: Option[SqlSelect], aliasedMappings: AliasedMappings): Option[(SqlUnion, AliasedMappings)]
Add WHERE, ORDER BY and LIMIT to this query
- val aliases: List[String]
- lazy val alignedCols: List[ColumnRef]
The union of the columns of the underlying SELECTs in the order they will be yielded as the columns of this UNION
- lazy val alignedElems: List[SqlSelect]
The underlying SELECTs with their columns permuted into the aligned order with any missing columns padded as NULLs
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val context: Context
The context for this query
- val elems: List[SqlSelect]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fetch: F[Table]
Execute this query in
F
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def index(col: ColumnRef): Int
The index of the given unaliased column in the result set
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nest(parentContext: Context, fieldName: String, resultName: String, extraCols: List[ColumnRef], extraJoins: List[SqlJoin], aliasedMappings: AliasedMappings): (SqlQuery, AliasedMappings)
Nest this query as a subobject in the enclosing
parentContext
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toFragment: SqlMapping.Fragment
- def toSelect(aliasedMappings: AliasedMappings): (SqlSelect, AliasedMappings)
Wrap this UNION in a SELECT with explicitly aliased columns so that it can be used as a subobject query
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withContext(context: Context): SqlUnion
This query in the given context
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated