slick.codegen

AbstractGenerator

abstract class AbstractGenerator[Code, TermName, TypeName] extends GeneratorHelpers[Code, TermName, TypeName]

Slick code generator providing the base structure and facilities. It contains a subclass as a generator for Tables, which again contains subclasses for Column, etc. The implementation follows the virtual class pattern, which allows flexible customization by overriding the inner classes (following the pattern).

Self Type
AbstractGenerator[Code, TermName, TypeName]
Source
AbstractGenerator.scala
See also

http://lampwww.epfl.ch/~odersky/papers/ScalableComponent.html

Linear Supertypes
GeneratorHelpers[Code, TermName, TypeName], AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. AbstractGenerator
  2. GeneratorHelpers
  3. AnyRef
  4. 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 AbstractGenerator(model: Model)

Type Members

  1. implicit class StringExtensions extends AnyRef

    Slick code generator string extension methods.

  2. abstract type Table <: TableDef

    Table generator virtual class

  3. abstract case class TableDef(model: model.Table) extends Product with Serializable

    Code generator for table related code

Abstract Value Members

  1. abstract def Table: (model.Table) ⇒ Table

    Table generator factory.

    Table generator factory. Override for customization.

  2. abstract def docWithCode(comment: String, code: Code): Code

    Assemble doc comment with scala code

    Assemble doc comment with scala code

    Definition Classes
    GeneratorHelpers
  3. abstract def optionType(tpe: Code): Code

    Wrap the given type into an Option type

    Wrap the given type into an Option type

    Definition Classes
    GeneratorHelpers
  4. abstract def parseType(tpe: String): Code

    Generates code for a qualified Scala type

    Generates code for a qualified Scala type

    Definition Classes
    GeneratorHelpers
  5. abstract def termName(name: String): TermName

    Marks a String as a TermName (e.

    Marks a String as a TermName (e.g. for escaping scala keywords)

    Attributes
    protected
    Definition Classes
    GeneratorHelpers
  6. abstract def typeName(name: String): TypeName

    Marks a String as a TypeName (e.

    Marks a String as a TypeName (e.g. for escaping scala keywords)

    Attributes
    protected
    Definition Classes
    GeneratorHelpers

Concrete 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 AbstractGenerator[Code, TermName, TypeName] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (AbstractGenerator[Code, TermName, TypeName], B)

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to ArrowAssoc[AbstractGenerator[Code, TermName, TypeName]] 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (AbstractGenerator[Code, TermName, TypeName]) ⇒ Boolean, msg: ⇒ Any): AbstractGenerator[Code, TermName, TypeName]

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

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

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to Ensuring[AbstractGenerator[Code, TermName, TypeName]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): AbstractGenerator[Code, TermName, TypeName]

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to Ensuring[AbstractGenerator[Code, TermName, TypeName]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def entityName: (String) ⇒ String

    Maps database table name to entity case class name

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def indent(code: String): String

    Definition Classes
    GeneratorHelpers
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. val scalaKeywords: Seq[String]

    Words that are reserved keywords in Scala

    Words that are reserved keywords in Scala

    Definition Classes
    GeneratorHelpers
  27. val slickTableTermMembersNoArgs: Seq[String]

    Existing term member names in Table[_] that do not take parameters

    Existing term member names in Table[_] that do not take parameters

    Definition Classes
    GeneratorHelpers
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def tableName: (String) ⇒ String

    Maps database table name to Table class and value name

  30. final lazy val tables: Seq[Table]

    Table code generators.

  31. final lazy val tablesByName: Map[QualifiedName, Table]

    Table code generators indexed by db table name.

  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (AbstractGenerator[Code, TermName, TypeName], B)

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to ArrowAssoc[AbstractGenerator[Code, TermName, TypeName]] 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 AbstractGenerator[Code, TermName, TypeName] 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:
    (abstractGenerator: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] 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:
    (abstractGenerator: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: AbstractGenerator[Code, TermName, TypeName]

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to ArrowAssoc[AbstractGenerator[Code, TermName, TypeName]] 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:
    (abstractGenerator: ArrowAssoc[AbstractGenerator[Code, TermName, TypeName]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: AbstractGenerator[Code, TermName, TypeName]

    Implicit information
    This member is added by an implicit conversion from AbstractGenerator[Code, TermName, TypeName] to Ensuring[AbstractGenerator[Code, TermName, TypeName]] 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:
    (abstractGenerator: Ensuring[AbstractGenerator[Code, TermName, TypeName]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from GeneratorHelpers[Code, TermName, TypeName]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from AbstractGenerator[Code, TermName, TypeName] to StringAdd

Inherited by implicit conversion any2stringfmt from AbstractGenerator[Code, TermName, TypeName] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from AbstractGenerator[Code, TermName, TypeName] to ArrowAssoc[AbstractGenerator[Code, TermName, TypeName]]

Inherited by implicit conversion any2Ensuring from AbstractGenerator[Code, TermName, TypeName] to Ensuring[AbstractGenerator[Code, TermName, TypeName]]

Basic customization overrides

Ungrouped