SourceCodeTableDef

slick.codegen.SourceCodeGenerator.SourceCodeTableDef

Attributes

Source:
SourceCodeGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Basic customization overrides

abstract case class AbstractColumnDef(model: Column) extends AbstractTermDef

Column related generator definition

Column related generator definition

Attributes

model

corresponding Slick meta model component

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes

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

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

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract case class AbstractForeignKeyDef(model: ForeignKey) extends AbstractTermDef

ForeignKey related generator definition

ForeignKey related generator definition

Attributes

model

corresponding Slick meta model component

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
abstract case class AbstractIndexDef(model: Index) extends AbstractTermDef

Index related generator definition

Index related generator definition

Attributes

model

corresponding Slick meta model component

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes

Plain SQL GetResult mapper generator definition

Plain SQL GetResult mapper generator definition

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract case class AbstractPrimaryKeyDef(model: PrimaryKey) extends AbstractTermDef

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

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

Attributes

model

corresponding Slick meta model component

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes

Table class generator definition

Table class generator definition

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

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

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

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
def Column: Column => Column

Column generator factory. Override for customization.

Column generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala

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

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

Attributes

Source:
SourceCodeGenerator.scala
def ForeignKey: ForeignKey => ForeignKey

ForeignKey generator factory. Override for customization.

ForeignKey generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala
def Index: Index => Index

Index generator factory. Override for customization.

Index generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala

Plain SQL GetResult mapper generator factory. Override for customization.

Plain SQL GetResult mapper generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala
def PrimaryKey: PrimaryKey => PrimaryKey

PrimaryKey generator factory. Override for customization.

PrimaryKey generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala

Table class generator factory. Override for customization.

Table class generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala

Table value generator factory. Override for customization.

Table value generator factory. Override for customization.

Attributes

Source:
SourceCodeGenerator.scala
def autoIncLast: Boolean

Indicates whether auto increment columns should be put last. Please set to !hlistEnabled for switching this on.

Indicates whether auto increment columns should be put last. Please set to !hlistEnabled for switching this on.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
def code: Seq[Code]

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

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

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala

Definitions to be generated for this table

Definitions to be generated for this table

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
def factory: String

Function that constructs an entity object from the unmapped values

Function that constructs an entity object from the unmapped values

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
def mappingEnabled: Boolean

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.

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.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala

Basic customization now overrides

def hlistEnabled: Boolean

If HList should be used as a compound type instead of tuples. Only if hugeClassEnabled is false.

If HList should be used as a compound type instead of tuples. Only if hugeClassEnabled is false.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
def hugeClassEnabled: Boolean
   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.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala

Type members

Inherited classlikes

Common interface for any kind of definition within the generated code

Common interface for any kind of definition within the generated code

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AbstractSourceCodeColumnDef(model: Column) extends AbstractColumnDef

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class AbstractSourceCodeIndexDef(model: Index) extends AbstractIndexDef

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any

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

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

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

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Types

Column generator virtual class

Column generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Entity case class or type alias generator virtual class

Entity case class or type alias generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Foreign key generator virtual class

Foreign key generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Index generator virtual class

Index generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Plain SQL GetResult mapper generator virtual class

Plain SQL GetResult mapper generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Primary key generator virtual class

Primary key generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Table class generator virtual class

Table class generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Table value generator virtual class

Table value generator virtual class

Attributes

Source:
SourceCodeGenerator.scala

Value members

Inherited methods

def compoundType(types: Seq[String]): String

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

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

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
def compoundValue(values: Seq[String]): String

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

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

Attributes

Inherited from:
AbstractSourceCodeTableDef
Source:
AbstractSourceCodeGenerator.scala
final def isMappedToHugeClass: Boolean

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.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

final lazy val columns: Seq[Column]

Column code generators in the desired user-facing order.

Column code generators in the desired user-facing order.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
final lazy val columnsByName: Map[String, Column]

Column code generators indexed by db column name

Column code generators indexed by db column name

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
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.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
lazy val desiredColumnOrder: Seq[Int]

Database column positions in the desired user-facing order. Currently just moves the positions of AutoInc columns to the end if autoIncLastAsOption is enabled.

Database column positions in the desired user-facing order. Currently just moves the positions of AutoInc columns to the end if autoIncLastAsOption is enabled.

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
final lazy val foreignKeys: Seq[ForeignKey]

Foreign key code generators

Foreign key code generators

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
final lazy val indices: Seq[Index]

Index code generators

Index code generators

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala
final lazy val primaryKey: Option[PrimaryKey]

Primary key code generator, if this table has one

Primary key code generator, if this table has one

Attributes

Inherited from:
AbstractTableDef
Source:
AbstractGenerator.scala