case class OrderedSelect(order: List[Int], selectValue: SelectValue) extends PseudoAst with Product with Serializable
In order to be able to reconstruct the original ordering of elements inside of a select clause, we need to keep track of their order, not only within the top-level select but also it's order within any possible tuples/case-classes that in which it is embedded. For example, in the query:
query[Person].map(p => (p.id, (p.name, p.age))).nested
// SELECT p.id, p.name, p.age FROM (SELECT x.id, x.name, x.age FROM person x) AS p
Since the p.name and p.age elements are selected inside of a sub-tuple, their "order" is
List(2,1) and List(2,2) respectively as opposed to p.id whose "order" is just List(1).This class keeps track of the values needed in order to perform do this.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OrderedSelect
- Serializable
- Serializable
- Product
- Equals
- PseudoAst
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new OrderedSelect(order: List[Int], selectValue: SelectValue)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val order: List[Int]
- val selectValue: SelectValue
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- OrderedSelect → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )