EmbeddedColumn

case class EmbeddedColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a column of an embedded subobject

Columns of embedded subobjects have a different context path from columns of their enclosing object, however they resolve to columns of the same SqlSelect. To satisfy the SqlSelect invariant that all its columns must share the same context path we have to wrap the embedded column so that its context path conforms.

Source:
SqlMapping.scala
trait Serializable
trait Product
trait Equals
trait SqlColumn
class Object
trait Matchable
class Any

Value members

Inherited methods

Derives a new column with a different owner with this column as underlying.

Derives a new column with a different owner with this column as underlying.

Used to represent columns on the outside of subqueries and common table expressions. Note that column aliases are tracked across derivation so that derived columns will continue to refer to the same underlying data irrespective of renaming.

Inherited from:
SqlColumn
Source:
SqlMapping.scala
override def equals(other: Any): Boolean

Equality on SqlColumns

Equality on SqlColumns

Two SqlColumns are equal if their underlyings have the same name and owner.

Definition Classes
SqlColumn -> Any
Inherited from:
SqlColumn
Source:
SqlMapping.scala
override def hashCode(): Int
Definition Classes
SqlColumn -> Any
Inherited from:
SqlColumn
Source:
SqlMapping.scala
def in(other: ColumnOwner): SqlColumn

Yields a copy of this column in other

Yields a copy of this column in other

Only well defined if the move doesn't lose an owner name

Inherited from:
SqlColumn
Source:
SqlMapping.scala

The named owner of this column, if any

The named owner of this column, if any

Inherited from:
SqlColumn
Source:
SqlMapping.scala
Inherited from:
Product
override def toString: String
Definition Classes
SqlColumn -> Any
Inherited from:
SqlColumn
Source:
SqlMapping.scala

This column as a Term which can appear in a Predicate

This column as a Term which can appear in a Predicate

Inherited from:
SqlColumn
Source:
SqlMapping.scala