Class

slick.codegen.SourceCodeGenerator

TableDef

Related Doc: package SourceCodeGenerator

Permalink

class TableDef extends SourceCodeGenerator.TableDef

Source
SourceCodeGenerator.scala
Linear Supertypes
SourceCodeGenerator.TableDef, SourceCodeGenerator.TableDef, Serializable, Serializable, Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. TableDef
  2. TableDef
  3. TableDef
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TableDef(model: model.Table)

    Permalink

Type Members

  1. type Column = ColumnDef

    Permalink

    Column generator virtual class

    Column generator virtual class

    Definition Classes
    TableDefTableDef
  2. class ColumnDef extends TableDef.ColumnDef

    Permalink
    Definition Classes
    TableDef
  3. trait Def extends AnyRef

    Permalink

    Common interface for any kind of definition within the generated code

    Common interface for any kind of definition within the generated code

    Definition Classes
    TableDef
  4. type EntityType = EntityTypeDef

    Permalink

    Entity case class or type alias generator virtual class

    Entity case class or type alias generator virtual class

    Definition Classes
    TableDefTableDef
  5. trait EntityTypeDef extends TableDef.EntityTypeDef

    Permalink
    Definition Classes
    TableDef
  6. type ForeignKey = ForeignKeyDef

    Permalink

    Foreign key generator virtual class

    Foreign key generator virtual class

    Definition Classes
    TableDefTableDef
  7. class ForeignKeyDef extends TableDef.ForeignKeyDef

    Permalink
    Definition Classes
    TableDef
  8. type Index = IndexDef

    Permalink

    Index generator virtual class

    Index generator virtual class

    Definition Classes
    TableDefTableDef
  9. class IndexDef extends TableDef.IndexDef

    Permalink
    Definition Classes
    TableDef
  10. type PlainSqlMapper = PlainSqlMapperDef

    Permalink

    Plain SQL GetResult mapper generator virtual class

    Plain SQL GetResult mapper generator virtual class

    Definition Classes
    TableDefTableDef
  11. trait PlainSqlMapperDef extends TableDef.PlainSqlMapperDef

    Permalink
    Definition Classes
    TableDef
  12. type PrimaryKey = PrimaryKeyDef

    Permalink

    Primary key generator virtual class

    Primary key generator virtual class

    Definition Classes
    TableDefTableDef
  13. class PrimaryKeyDef extends TableDef.PrimaryKeyDef

    Permalink
    Definition Classes
    TableDef
  14. type TableClass = TableClassDef

    Permalink

    Table class generator virtual class

    Table class generator virtual class

    Definition Classes
    TableDefTableDef
  15. trait TableClassDef extends TableDef.TableClassDef

    Permalink
    Definition Classes
    TableDef
  16. type TableValue = TableValueDef

    Permalink

    Table value generator virtual class

    Table value generator virtual class

    Definition Classes
    TableDefTableDef
  17. trait TableValueDef extends TableDef.TableValueDef

    Permalink
    Definition Classes
    TableDef
  18. trait TermDef extends Def

    Permalink

    Common interface for definitions that define a term (val, def, ...) within the generated code

    Common interface for definitions that define a term (val, def, ...) within the generated code

    Definition Classes
    TableDef
  19. trait TypeDef extends Def

    Permalink

    Common interface for definitions that define a type (class, case class, ...) within the generated code

    Common interface for definitions that define a type (class, case class, ...) within the generated code

    Definition Classes
    TableDef

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to any2stringadd[TableDef] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TableDef, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to ArrowAssoc[TableDef] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def Column: (model.Column) ⇒ ColumnDef

    Permalink

    Column generator factory.

    Column generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  7. def EntityType: EntityType

    Permalink

    Entity case class or type alias generator factory.

    Entity case class or type alias generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  8. def ForeignKey: (model.ForeignKey) ⇒ ForeignKeyDef

    Permalink

    ForeignKey generator factory.

    ForeignKey generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  9. def Index: (model.Index) ⇒ IndexDef

    Permalink

    Index generator factory.

    Index generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  10. def PlainSqlMapper: PlainSqlMapper

    Permalink

    Plain SQL GetResult mapper generator factory.

    Plain SQL GetResult mapper generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  11. def PrimaryKey: (model.PrimaryKey) ⇒ PrimaryKeyDef

    Permalink

    PrimaryKey generator factory.

    PrimaryKey generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  12. def TableClass: TableClass

    Permalink

    Table class generator factory.

    Table class generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  13. def TableValue: TableValue

    Permalink

    Table value generator factory.

    Table value generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def autoIncLast: Boolean

    Permalink

    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.

    Definition Classes
    TableDef
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def code: Seq[String]

    Permalink

    Generates the complete code for this table and its subordinate generators.

    Generates the complete code for this table and its subordinate generators.

    Definition Classes
    TableDef
  18. final lazy val columns: Seq[Column]

    Permalink

    Column code generators in the desired user-facing order.

    Column code generators in the desired user-facing order.

    Definition Classes
    TableDef
  19. final lazy val columnsByName: Map[String, Column]

    Permalink

    Column code generators indexed by db column name

    Column code generators indexed by db column name

    Definition Classes
    TableDef
  20. final lazy val columnsPositional: IndexedSeq[Column]

    Permalink

    Column code generators in the order they appear in the model.

    Column code generators in the order they appear in the model.

    Definition Classes
    TableDef
  21. def compoundType(types: Seq[String]): String

    Permalink

    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.

    Definition Classes
    TableDefTableDef
  22. def compoundValue(values: Seq[String]): String

    Permalink

    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.

    Definition Classes
    TableDefTableDef
  23. def definitions: Seq[Def]

    Permalink

    Definitions to be generated for this table

    Definitions to be generated for this table

    Definition Classes
    TableDef
  24. lazy val desiredColumnOrder: Seq[Int]

    Permalink

    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.

    Definition Classes
    TableDef
  25. def ensuring(cond: (TableDef) ⇒ Boolean, msg: ⇒ Any): TableDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to Ensuring[TableDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: (TableDef) ⇒ Boolean): TableDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to Ensuring[TableDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean, msg: ⇒ Any): TableDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to Ensuring[TableDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean): TableDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to Ensuring[TableDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def extractor: String

    Permalink

    Function that extracts the unmapped values from an entity object

    Function that extracts the unmapped values from an entity object

    Definition Classes
    TableDefTableDef
  31. def factory: String

    Permalink

    Function that constructs an entity object from the unmapped values

    Function that constructs an entity object from the unmapped values

    Definition Classes
    TableDefTableDef
  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. final lazy val foreignKeys: Seq[ForeignKey]

    Permalink

    Foreign key code generators

    Foreign key code generators

    Definition Classes
    TableDef
  34. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to StringFormat[TableDef] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hlistEnabled: Boolean

    Permalink

    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.

    Definition Classes
    TableDef
  37. def hugeClassEnabled: Boolean

    Permalink

    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.

    Definition Classes
    TableDef
  38. final lazy val indices: Seq[Index]

    Permalink

    Index code generators

    Index code generators

    Definition Classes
    TableDef
  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. final def isMappedToHugeClass: Boolean

    Permalink

    Indicates if table has more than 22 columns but still has to be mapped to a case class.

    Indicates if table has more than 22 columns but still has to be mapped to a case class.

    Definition Classes
    TableDef
  41. def mappingEnabled: Boolean

    Permalink

    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.

    Definition Classes
    TableDef
  42. val model: model.Table

    Permalink

    corresponding Slick meta model component

    corresponding Slick meta model component

    Definition Classes
    TableDef
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final lazy val primaryKey: Option[PrimaryKey]

    Permalink

    Primary key code generator, if this table has one

    Primary key code generator, if this table has one

    Definition Classes
    TableDef
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (TableDef, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableDef to ArrowAssoc[TableDef] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def autoIncLastAsOption: Boolean

    Permalink

    Indicates whether auto increment columns should be put last and made an Option with a None default.

    Indicates whether auto increment columns should be put last and made an Option with a None default. Please set to !hlistEnabled for switching this on.

    Definition Classes
    TableDef
    Annotations
    @deprecated
    Deprecated

    (Since version 3.2.0) Use autoIncLast = true and ColumnDef.asOption = autoInc instead.

Inherited from SourceCodeGenerator.TableDef

Inherited from SourceCodeGenerator.TableDef

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TableDef to any2stringadd[TableDef]

Inherited by implicit conversion StringFormat from TableDef to StringFormat[TableDef]

Inherited by implicit conversion Ensuring from TableDef to Ensuring[TableDef]

Inherited by implicit conversion ArrowAssoc from TableDef to ArrowAssoc[TableDef]

Basic customization now overrides

Basic customization overrides

Ungrouped