case class AliasState(next: Int, seenTables: Set[String], tableAliases: Map[(List[String], String), String], seenColumns: Set[String], columnAliases: Map[(List[String], String), String], ownerChain: List[ColumnOwner]) extends Product with Serializable
State required to assign table and column aliases.
Used when rendering an SqlQuery
as a Fragment
. Table aliases are assigned
as needed for recursive queries. Column aliases are assigned to disambiguate
collections of columns generated by subqueries and unions.
- Source
- SqlMapping.scala
- Alphabetic
- By Inheritance
- AliasState
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AliasState(next: Int, seenTables: Set[String], tableAliases: Map[(List[String], String), String], seenColumns: Set[String], columnAliases: Map[(List[String], String), String], ownerChain: List[ColumnOwner])
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val columnAliases: Map[(List[String], String), String]
- def columnDef(column: SqlColumn): (AliasState, (Option[String], String))
Update state to reflect a defining occurence of a column
- def columnRef(column: SqlColumn): (AliasState, (Option[String], String))
Yields the possibly aliased name of the supplied column
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val next: Int
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val ownerChain: List[ColumnOwner]
- def popOwner: (AliasState, ColumnOwner)
Update state to restore the current column owner while traversing the
SqlQuery
being rendered - def productElementNames: Iterator[String]
- Definition Classes
- Product
- def pushOwner(owner: ColumnOwner): (AliasState, Unit)
Update state to reflect the current column owner while traversing the
SqlQuery
being rendered - val seenColumns: Set[String]
- val seenTables: Set[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tableAliases: Map[(List[String], String), String]
- def tableDef(table: TableExpr): (AliasState, String)
Update state to reflect a defining occurence of a table
- def tableRef(table: TableExpr): (AliasState, String)
Yields the possibly aliased name of the supplied table
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()