Packages

c

slick.lifted

AbstractTable

abstract class AbstractTable[T] extends Rep[T]

The profile-independent superclass of all table row objects.

T

Row type for this table. Make sure it matches the type of your * projection.

Source
AbstractTable.scala
Linear Supertypes
Rep[T], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractTable
  2. Rep
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AbstractTable(tableTag: Tag, schemaName: Option[String], tableName: String)

Type Members

  1. abstract type TableElementType

    The client-side type of the table as defined by its * projection

Abstract Value Members

  1. abstract def *: ProvenShape[T]

    The * projection of the table used as default for queries and inserts.

    The * projection of the table used as default for queries and inserts. Should include all columns as a tuple, HList or custom shape and optionally map them to a custom entity type using the <> operator. The ProvenShape return type ensures that there is a Shape available for translating between the Column-based type in * and the client-side type without Column in the table's type parameter.

  2. abstract def tableIdentitySymbol: TableIdentitySymbol

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toany2stringadd[AbstractTable[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (AbstractTable[T], B)
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toArrowAssoc[AbstractTable[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. def collectFieldSymbols(n: Node): Iterable[FieldSymbol]
    Attributes
    protected[this]
  9. def create_*: Iterable[FieldSymbol]
  10. def encodeRef(path: Node): AbstractTable[T]

    Encode a reference into this Rep.

    Encode a reference into this Rep.

    Definition Classes
    AbstractTableRep
  11. def ensuring(cond: (AbstractTable[T]) => Boolean, msg: => Any): AbstractTable[T]
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toEnsuring[AbstractTable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (AbstractTable[T]) => Boolean): AbstractTable[T]
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toEnsuring[AbstractTable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): AbstractTable[T]
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toEnsuring[AbstractTable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): AbstractTable[T]
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toEnsuring[AbstractTable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def foreignKey[P, PU, TT <: AbstractTable[_], U](name: String, sourceColumns: P, targetTableQuery: TableQuery[TT])(targetColumns: (TT) => P, onUpdate: ForeignKeyAction = ForeignKeyAction.NoAction, onDelete: ForeignKeyAction = ForeignKeyAction.NoAction)(implicit unpack: Shape[_ <: FlatShapeLevel, TT, U, _], unpackP: Shape[_ <: FlatShapeLevel, P, PU, _]): ForeignKeyQuery[TT, U]

    Define a foreign key relationship.

    Define a foreign key relationship.

    name

    The name of the foreign key in the database (only used when you define the database schema with Slick).

    sourceColumns

    A column or a projection of multiple columns from this table defining the source of the foreign key.

    targetTableQuery

    The TableQuery for the target table.

    targetColumns

    A function that maps from the target table to the column (or columns) to which the foreign key points.

    onUpdate

    A ForeignKeyAction, default being NoAction.

    onDelete

    A ForeignKeyAction, default being NoAction.

  18. final def foreignKeys: Iterable[ForeignKey]
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. def index[A](name: String, on: A, unique: Boolean = false)(implicit shape: Shape[_ <: FlatShapeLevel, A, _, _]): Index

    Define an index or a unique constraint.

  22. def indexes: Iterable[Index]
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. def primaryKey[A](name: String, sourceColumns: A)(implicit shape: Shape[_ <: FlatShapeLevel, A, _, _]): PrimaryKey

    Define the primary key for this table.

    Define the primary key for this table. It is usually simpler to use the O.PrimaryKey option on the primary key column but this method allows you to define compound primary keys or give them user-defined names (when defining the database schema with Slick).

  28. final def primaryKeys: Iterable[PrimaryKey]
  29. val schemaName: Option[String]
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def tableConstraints: Iterator[Constraint]
  32. val tableName: String
  33. lazy val tableNode: TableNode
  34. val tableTag: Tag
  35. def toNode: Node

    Get the Node for this Rep.

    Get the Node for this Rep.

    Definition Classes
    AbstractTableRep
  36. def toString(): String
    Definition Classes
    Rep → AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toStringFormat[AbstractTable[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (AbstractTable[T], B)
    Implicit
    This member is added by an implicit conversion from AbstractTable[T] toArrowAssoc[AbstractTable[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Rep[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromAbstractTable[T] to any2stringadd[AbstractTable[T]]

Inherited by implicit conversion StringFormat fromAbstractTable[T] to StringFormat[AbstractTable[T]]

Inherited by implicit conversion Ensuring fromAbstractTable[T] to Ensuring[AbstractTable[T]]

Inherited by implicit conversion ArrowAssoc fromAbstractTable[T] to ArrowAssoc[AbstractTable[T]]

Ungrouped