abstract case class AbstractTableDef(model: model.Table) extends Product with Serializable
Code generator for table related code
- model
corresponding Slick meta model component
- Self Type
- AbstractTableDef
- Source
- AbstractGenerator.scala
- Grouped
- Alphabetic
- By Inheritance
- AbstractTableDef
- Serializable
- Product
- Equals
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AbstractTableDef(model: model.Table)
- model
corresponding Slick meta model component
Type Members
- abstract case class AbstractColumnDef(model: model.Column) extends AbstractTermDef with Product with Serializable
Column related generator definition
Column related generator definition
- model
corresponding Slick meta model component
- trait AbstractDef extends AnyRef
Common interface for any kind of definition within the generated code
- trait AbstractEntityTypeDef extends AbstractTypeDef
Entity case class or type alias generator definition (Mapped case class holding a complete row of data of this table).
- abstract case class AbstractForeignKeyDef(model: model.ForeignKey) extends AbstractTermDef with Product with Serializable
ForeignKey related generator definition
ForeignKey related generator definition
- model
corresponding Slick meta model component
- abstract case class AbstractIndexDef(model: model.Index) extends AbstractTermDef with Product with Serializable
Index related generator definition
Index related generator definition
- model
corresponding Slick meta model component
- trait AbstractPlainSqlMapperDef extends AbstractTermDef
Plain SQL GetResult mapper generator definition
- abstract case class AbstractPrimaryKeyDef(model: model.PrimaryKey) extends AbstractTermDef with Product with Serializable
PrimaryKey related generator definition (Currently only used for composite primary keys.)
PrimaryKey related generator definition (Currently only used for composite primary keys.)
- model
corresponding Slick meta model component
- trait AbstractTableClassDef extends AbstractTypeDef
Table class generator definition
- trait AbstractTableValueDef extends AbstractTermDef
Table value generator definition (generates a collection-like value representing this database table).
- trait AbstractTermDef extends AbstractDef
Common interface for definitions that define a term (val, def, ...) within the generated code
- trait AbstractTypeDef extends AbstractDef
Common interface for definitions that define a type (class, case class, ...) within the generated code
- abstract type Column <: AbstractColumnDef
Column generator virtual class
- abstract type EntityType <: AbstractEntityTypeDef
Entity case class or type alias generator virtual class
- abstract type ForeignKey <: AbstractForeignKeyDef
Foreign key generator virtual class
- abstract type Index <: AbstractIndexDef
Index generator virtual class
- abstract type PlainSqlMapper <: AbstractPlainSqlMapperDef
Plain SQL GetResult mapper generator virtual class
- abstract type PrimaryKey <: AbstractPrimaryKeyDef
Primary key generator virtual class
- abstract type TableClass <: AbstractTableClassDef
Table class generator virtual class
- abstract type TableValue <: AbstractTableValueDef
Table value generator virtual class
Abstract Value Members
- abstract def Column: (model.Column) => Column
Column generator factory.
Column generator factory. Override for customization.
- abstract def EntityType: EntityType
Entity case class or type alias generator factory.
Entity case class or type alias generator factory. Override for customization.
- abstract def ForeignKey: (model.ForeignKey) => ForeignKey
ForeignKey generator factory.
ForeignKey generator factory. Override for customization.
- abstract def Index: (model.Index) => Index
Index generator factory.
Index generator factory. Override for customization.
- abstract def PlainSqlMapper: PlainSqlMapper
Plain SQL GetResult mapper generator factory.
Plain SQL GetResult mapper generator factory. Override for customization.
- abstract def PrimaryKey: (model.PrimaryKey) => PrimaryKey
PrimaryKey generator factory.
PrimaryKey generator factory. Override for customization.
- abstract def TableClass: TableClass
Table class generator factory.
Table class generator factory. Override for customization.
- abstract def TableValue: TableValue
Table value generator factory.
Table value generator factory. Override for customization.
- abstract def compoundType(types: Seq[Code]): Code
Creates a compound type from a given sequence of types.
Creates a compound type from a given sequence of types. Uses HList if hlistEnabled else tuple.
- abstract def compoundValue(values: Seq[Code]): Code
Creates a compound value from a given sequence of values.
Creates a compound value from a given sequence of values. Uses HList if hlistEnabled else tuple.
- abstract def factory: Code
Function that constructs an entity object from the unmapped values
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (AbstractTableDef, B)
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toArrowAssoc[AbstractTableDef] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def autoIncLast: Boolean
Indicates whether auto increment columns should be put last.
Indicates whether auto increment columns should be put last. Please set to !hlistEnabled for switching this on.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def code: Seq[Code]
Generates the complete code for this table and its subordinate generators.
- final lazy val columns: Seq[Column]
Column code generators in the desired user-facing order.
- final lazy val columnsByName: Map[String, Column]
Column code generators indexed by db column name
- final lazy val columnsPositional: IndexedSeq[Column]
Column code generators in the order they appear in the model.
- def definitions: Seq[AbstractDef]
Definitions to be generated for this table
- lazy val desiredColumnOrder: Seq[Int]
Database column positions in the desired user-facing order.
Database column positions in the desired user-facing order. Currently just moves the positions of AutoInc columns to the end if autoIncLastAsOption is enabled.
- def ensuring(cond: (AbstractTableDef) => Boolean, msg: => Any): AbstractTableDef
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toEnsuring[AbstractTableDef] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (AbstractTableDef) => Boolean): AbstractTableDef
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toEnsuring[AbstractTableDef] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): AbstractTableDef
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toEnsuring[AbstractTableDef] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): AbstractTableDef
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toEnsuring[AbstractTableDef] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final lazy val foreignKeys: Seq[ForeignKey]
Foreign key code generators
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hlistEnabled: Boolean
If HList should be used as a compound type instead of tuples.
If HList should be used as a compound type instead of tuples. Only if hugeClassEnabled is false.
- def hugeClassEnabled: Boolean
Default is true, i.e.
Default is true, i.e. a case class will be generated even if column.size > 22. Override to false to get the code as before Slick 3.3, i.e. a HList based type will be generated instead.
- final lazy val indices: Seq[Index]
Index code generators
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isMappedToHugeClass: Boolean
Indicates if table has more than 22 columns but still has to be mapped to a case class.
- def mappingEnabled: Boolean
Indicates if this table should be mapped using factory and extractor or not, in which case tuples are used.
Indicates if this table should be mapped using factory and extractor or not, in which case tuples are used. (Consider overriding EntityType.enabled instead, which affects this, too.) Disabled by default when using hlists.
- val model: model.Table
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final lazy val primaryKey: Option[PrimaryKey]
Primary key code generator, if this table has one
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toStringFormat[AbstractTableDef] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (AbstractTableDef, B)
- Implicit
- This member is added by an implicit conversion from AbstractTableDef toArrowAssoc[AbstractTableDef] 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.