AbstractColumnDef

slick.codegen.AbstractGenerator.AbstractTableDef.AbstractColumnDef
abstract case class AbstractColumnDef(model: Column) extends AbstractTermDef

Column 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 asOption: Boolean

Indicates whether the exposed type of this column should be wrapped in an Option. Useful for autoInc and automatically created columns. Set to autoInc to expose autoInc columns as Option.

Indicates whether the exposed type of this column should be wrapped in an Option. Useful for autoInc and automatically created columns. Set to autoInc to expose autoInc columns as Option.

Attributes

Source:
AbstractGenerator.scala
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
def rawType: Code

Underlying Scala type of this column. Override this to just affect the data type but preserve potential Option-wrapping.

Underlying Scala type of this column. Override this to just affect the data type but preserve potential Option-wrapping.

Attributes

Source:
AbstractGenerator.scala

Value members

Abstract methods

def columnOptionCode: ColumnOption[_] => Option[Code]

Generates code for a columnOption

Generates code for a columnOption

Attributes

Source:
AbstractGenerator.scala
def defaultCode: Any => Code

Returns a function, that maps a value to its literal representation as code

Returns a function, that maps a value to its literal representation as code

Attributes

Source:
AbstractGenerator.scala

Concrete methods

final def actualType: Code

Possibly Option-wrapped Scala type of this column. @see rawType and @see exposedType

Possibly Option-wrapped Scala type of this column. @see rawType and @see exposedType

Attributes

Source:
AbstractGenerator.scala
final def autoInc: Boolean

Indicates whether this is an auto increment column

Indicates whether this is an auto increment column

Attributes

Source:
AbstractGenerator.scala
def dbType: Boolean

Indicates if a (non-portable) DBType ColumnOption should be generated

Indicates if a (non-portable) DBType ColumnOption should be generated

Attributes

Source:
AbstractGenerator.scala
def default: Option[Code]

Generates a literal representation of the default value or None in case of an Option-typed autoInc column

Generates a literal representation of the default value or None in case of an Option-typed autoInc column

Attributes

Source:
AbstractGenerator.scala
final def exposedType: Code

Option of actualType if fakeNullable else actualType.

Option of actualType if fakeNullable else actualType.

Attributes

Source:
AbstractGenerator.scala
def options: Iterable[Code]

Generates code for the ColumnOptions (DBType, AutoInc, etc.)

Generates code for the ColumnOptions (DBType, AutoInc, etc.)

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