object SqlQuery extends Serializable
- Source
- SqlMapping.scala
- Alphabetic
- By Inheritance
- SqlQuery
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class SqlJoin(parent: TableExpr, child: TableExpr, on: List[(SqlColumn, SqlColumn)], inner: Boolean) extends ColumnOwner with Product with Serializable
Representation of an SQL join
- case class SqlSelect(context: Context, withs: List[WithRef], table: TableExpr, cols: List[SqlColumn], joins: List[SqlJoin], wheres: List[Predicate], orders: List[OrderSelection[_]], offset: Option[Int], limit: Option[Int], distinct: List[SqlColumn], oneToOne: Boolean, predicate: Boolean) extends SqlQuery with Product with Serializable
Representation of an SQL SELECT
- case class SqlUnion(elems: List[SqlSelect]) extends SqlQuery with Product with Serializable
Representation of a UNION ALL of SQL SELECTs
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()
- def combineAll(queries: List[SqlQuery]): Result[SqlQuery]
Combine the given queries as a single SQL query
- def combineRootNodes(nodes: List[SqlQuery]): Result[SqlQuery]
- def contextualiseOrderTerms[T](context: Context, owner: ColumnOwner, os: OrderSelection[T]): Result[OrderSelection[T]]
Contextualise all terms in the given
OrderSelection
to the given context and owner - def contextualiseTerm(context: Context, owner: ColumnOwner, term: Term[_]): Result[SqlColumn]
Yield a copy of the given
Term
with all referencedSqlColumns
relativised to the given context and owned by by the given owner - def contextualiseWhereTerms(context: Context, owner: ColumnOwner, pred: Predicate): Result[Predicate]
Contextualise all terms in the given
Predicate
to the given context and owner - def embedColumn(table: TableExpr, parentTable: TableRef, col: SqlColumn): SqlColumn
- def embedOrderTerms[T](table: TableExpr, parentTable: TableRef, os: OrderSelection[T]): Result[OrderSelection[T]]
- def embedTerm(table: TableExpr, parentTable: TableRef, term: Term[_]): Result[SqlColumn]
- def embedWhereTerms(table: TableExpr, parentTable: TableRef, pred: Predicate): Result[Predicate]
Embed all terms in the given
Predicate
in the given table and parent table - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEmbeddedIn(inner: Context, outer: Context): Boolean
- 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()
- def ordersToFragment(orders: List[OrderSelection[_]]): Aliased[SqlMappingLike.Fragment]
Render the given
OrderSelections
as aFragment
- def substOrderTables[T](from: TableExpr, to: TableExpr, os: OrderSelection[T]): OrderSelection[T]
Yields a copy of the given
OrderSelection
with all occurences offrom
replaced byto
- def substWhereTables(from: TableExpr, to: TableExpr, pred: Predicate): Predicate
Yields a copy of the given
Predicate
with all occurences offrom
replaced byto
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- def whereCols(f: (Term[_]) => SqlColumn, pred: Predicate): List[SqlColumn]
Compute the set of columns referred to by the given prediate
- def wherePaths(pred: Predicate): List[List[String]]
Compute the set of paths traversed by the given prediate
- def whereToFragment(context: Context, pred: Predicate): Aliased[SqlMappingLike.Fragment]
Render the given
Predicate
as aFragment
representing a where clause conjunct - def wheresToFragment(context: Context, wheres: List[Predicate]): Aliased[SqlMappingLike.Fragment]
Render the given
Predicates
as a where clauseFragment
- case object EmptySqlQuery extends SqlQuery with Product with Serializable
- object SqlJoin extends Serializable
- object SqlSelect extends Serializable
- object SqlUnion extends Serializable