scala.slick.model.codegen.SourceCodeGenerator

TableDef

class TableDef extends SourceCodeGenerator.TableDef

Code generator for table related code

Definition Classes
SourceCodeGeneratorAbstractSourceCodeGeneratorAbstractGenerator
Source
SourceCodeGenerator.scala
Linear Supertypes
SourceCodeGenerator.TableDef, SourceCodeGenerator.TableDef, Serializable, java.io.Serializable, Product, Equals, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
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 any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TableDef(model: model.Table)

    model

    corresponding Slick meta model component

Type Members

  1. type Column = ColumnDef

    Column generator virtual class

    Column generator virtual class

    Definition Classes
    TableDefTableDef
  2. class ColumnDef extends TableDef.ColumnDef

    Column related generator definition

  3. trait Def extends AnyRef

    Common interface for any kind of definition within the generated code

  4. type EntityType = EntityTypeDef

    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

    Entity case class or type alias generator definition (Mapped case class holding a complete row of data of this table).

  6. type ForeignKey = ForeignKeyDef

    Foreign key generator virtual class

    Foreign key generator virtual class

    Definition Classes
    TableDefTableDef
  7. class ForeignKeyDef extends TableDef.ForeignKeyDef

    ForeignKey related generator definition

  8. type Index = IndexDef

    Index generator virtual class

    Index generator virtual class

    Definition Classes
    TableDefTableDef
  9. class IndexDef extends TableDef.IndexDef

    Index related generator definition

  10. type PlainSqlMapper = PlainSqlMapperDef

    Plain SQL GetResult mapper generator virtual class

    Plain SQL GetResult mapper generator virtual class

    Definition Classes
    TableDefTableDef
  11. trait PlainSqlMapperDef extends TableDef.PlainSqlMapperDef

    Plain SQL GetResult mapper generator definition

  12. type PrimaryKey = PrimaryKeyDef

    Primary key generator virtual class

    Primary key generator virtual class

    Definition Classes
    TableDefTableDef
  13. class PrimaryKeyDef extends TableDef.PrimaryKeyDef

    PrimaryKey related generator definition (Currently only used for composite primary keys.

  14. type TableClass = TableClassDef

    Table class generator virtual class

    Table class generator virtual class

    Definition Classes
    TableDefTableDef
  15. trait TableClassDef extends TableDef.TableClassDef

    Table class generator definition

  16. type TableValue = TableValueDef

    Table value generator virtual class

    Table value generator virtual class

    Definition Classes
    TableDefTableDef
  17. trait TableValueDef extends TableDef.TableValueDef

    Table value generator definition (generates a collection-like value representing this database table).

  18. trait TermDef extends Def

    Common interface for definitions that define a term (val, def, .

  19. trait TypeDef extends Def

    Common interface for definitions that define a type (class, case class, .

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def Column: (model.Column) ⇒ ColumnDef

    Column generator factory.

    Column generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  9. def EntityType: EntityType

    Entity case class or type alias generator factory.

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

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

    ForeignKey generator factory.

    ForeignKey generator factory. Override for customization.

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

    Index generator factory.

    Index generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  12. def PlainSqlMapper: PlainSqlMapper

    Plain SQL GetResult mapper generator factory.

    Plain SQL GetResult mapper generator factory. Override for customization.

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

    PrimaryKey generator factory.

    PrimaryKey generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  14. def TableClass: TableClass

    Table class generator factory.

    Table class generator factory. Override for customization.

    Definition Classes
    TableDefTableDef
  15. def TableValue: TableValue

    Table value generator factory.

    Table value generator factory. Override for customization.

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

    Definition Classes
    Any
  17. def autoIncLastAsOption: Boolean

    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
  18. def clone(): AnyRef

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

    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
  20. final lazy val columns: Seq[Column]

    Column code generators in the desired user-facing order.

    Column code generators in the desired user-facing order.

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

    Column code generators indexed by db column name

    Column code generators indexed by db column name

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

    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
  23. def compound(valuesOrTypes: Seq[String]): String

    Creates a compound type or value from a given sequence of types or values.

    Creates a compound type or value from a given sequence of types or values. Uses HList if hlistEnabled else tuple.

    Definition Classes
    TableDefTableDef
  24. def definitions: collection.Seq[Def]

    Definitions to be generated for this table

    Definitions to be generated for this table

    Definition Classes
    TableDef
  25. final 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.

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

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

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

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

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

    Definition Classes
    AnyRef
  31. def extractor: String

    Function that extracts the unmapped values from an entity object

    Function that extracts the unmapped values from an entity object

    Definition Classes
    TableDefTableDef
  32. def factory: String

    Function that constructs an entity object from the unmapped values

    Function that constructs an entity object from the unmapped values

    Definition Classes
    TableDefTableDef
  33. def finalize(): Unit

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

    Foreign key code generators

    Foreign key code generators

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

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

    Definition Classes
    AnyRef → Any
  37. 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. Default to true for > 22 columns.

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

    Index code generators

    Index code generators

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

    Definition Classes
    Any
  40. 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.

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

    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

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

    Primary key code generator, if this table has one

    Primary key code generator, if this table has one

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

    Definition Classes
    AnyRef
  46. final def wait(): Unit

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

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

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

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from TableDef to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tableDef: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from TableDef to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tableDef: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: TableDef

    Implicit information
    This member is added by an implicit conversion from TableDef to ArrowAssoc[TableDef] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tableDef: ArrowAssoc[TableDef]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: TableDef

    Implicit information
    This member is added by an implicit conversion from TableDef to Ensuring[TableDef] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tableDef: Ensuring[TableDef]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from SourceCodeGenerator.TableDef

Inherited from SourceCodeGenerator.TableDef

Inherited from Serializable

Inherited from java.io.Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TableDef to StringAdd

Inherited by implicit conversion any2stringfmt from TableDef to StringFormat

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

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

Basic customization overrides

Ungrouped