AbstractForeignKeyDef

slick.codegen.AbstractGenerator.AbstractTableDef.AbstractForeignKeyDef
abstract case class AbstractForeignKeyDef(model: ForeignKey) extends AbstractTermDef

ForeignKey related generator definition

Attributes

model

corresponding Slick meta model component

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

Members list

Concise view

Basic customization overrides

def code: Code

Scala code

Scala code

Attributes

Inherited from:
AbstractDef
Source:
AbstractGenerator.scala
def doc: String

Scala doc comment

Scala doc comment

Attributes

Source:
AbstractGenerator.scala
def enabled: Boolean

Indicates whether this will be included in the generated code

Indicates whether this will be included in the generated code

Attributes

Inherited from:
AbstractDef
Source:
AbstractGenerator.scala
def rawName: String

Name as desired in Scala Code. (Allowed to collide with Scala keywords. Will be automatically escaped.)

Name as desired in Scala Code. (Allowed to collide with Scala keywords. Will be automatically escaped.)

Attributes

Source:
AbstractGenerator.scala

Value members

Abstract methods

def actionCode(action: ForeignKeyAction): Code

Attributes

Source:
AbstractGenerator.scala

Concrete methods

def dbName: String

Name used in the db or a default name

Name used in the db or a default name

Attributes

Source:
AbstractGenerator.scala
final def onDelete: Code

Attributes

Source:
AbstractGenerator.scala
final def onUpdate: Code

Attributes

Source:
AbstractGenerator.scala

Inherited methods

def disambiguateTerm(name: String, postfix: String): String

Adds one or more X to the end of the given string to avoid collisions with column names.

Adds one or more X to the end of the given string to avoid collisions with column names.

Attributes

Inherited from:
AbstractTermDef
Source:
AbstractGenerator.scala
override def docWithCode: Code

Scala doc comment with code

Scala doc comment with code

Attributes

Definition Classes
Inherited from:
AbstractTermDef
Source:
AbstractGenerator.scala
final def getEnabled: Option[AbstractDef]

Returns Some(this) if enabled else None

Returns Some(this) if enabled else None

Attributes

Inherited from:
AbstractDef
Source:
AbstractGenerator.scala
final def name: TermName

Name (escaped if colliding with Scala keyword).

Name (escaped if colliding with Scala keyword).

Attributes

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

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

final lazy val referencedColumns: Seq[Column]

Referenced Columns code generators

Referenced Columns code generators

Attributes

Source:
AbstractGenerator.scala
final lazy val referencedTable: Table

Referenced Table code generator

Referenced Table code generator

Attributes

Source:
AbstractGenerator.scala
final lazy val referencingColumns: Seq[Column]

Referencing columns code generators

Referencing columns code generators

Attributes

Source:
AbstractGenerator.scala

Referencing Table code generator

Referencing Table code generator

Attributes

Source:
AbstractGenerator.scala