Class

slick.codegen

AbstractSourceCodeGenerator

Related Doc: package codegen

Permalink

abstract class AbstractSourceCodeGenerator extends AbstractGenerator[String, String, String] with StringGeneratorHelpers

Base implementation for a Source code String generator

Source
AbstractSourceCodeGenerator.scala
Linear Supertypes
StringGeneratorHelpers, AbstractGenerator[String, String, String], GeneratorHelpers[String, String, String], AnyRef, Any
Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. AbstractSourceCodeGenerator
  2. StringGeneratorHelpers
  3. AbstractGenerator
  4. GeneratorHelpers
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractSourceCodeGenerator(model: Model)

    Permalink

Type Members

  1. implicit class StringExtensions extends AnyRef

    Permalink

    Slick code generator string extension methods.

    Slick code generator string extension methods. (Warning: Not unicode-safe, uses String#apply)

    Definition Classes
    GeneratorHelpers
  2. abstract type Table <: AbstractSourceCodeGenerator.TableDef

    Permalink

    Table generator virtual class

    Table generator virtual class

    Definition Classes
    AbstractGenerator
  3. abstract class TableDef extends AbstractSourceCodeGenerator.TableDef

    Permalink

Abstract Value Members

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

    Permalink

    Table generator factory.

    Table generator factory. Override for customization.

    Definition Classes
    AbstractGenerator

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Permalink

    Generates code for the complete model (not wrapped in a package yet)

  9. def codeForContainer: String

    Permalink

    Generates code for the container class (not wrapped in a package yet)

  10. def codeForDDL: String

    Permalink

    Generates code for the DDL statement.

  11. def codePerTable: Map[String, String]

    Permalink

    Generates a map that associates the table name with its generated code (not wrapped in a package yet).

  12. val ddlEnabled: Boolean

    Permalink

    Enables DDL Generation.

    Enables DDL Generation.

    Definition Classes
    AbstractGenerator
  13. def docWithCode(doc: String, code: String): String

    Permalink

    Assemble doc comment with scala code

    Assemble doc comment with scala code

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  14. def ensuring(cond: (AbstractSourceCodeGenerator) ⇒ Boolean, msg: ⇒ Any): AbstractSourceCodeGenerator

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

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from AbstractSourceCodeGenerator to Ensuring[AbstractSourceCodeGenerator] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def entityName: (String) ⇒ String

    Permalink

    Maps database table name to entity case class name

    Maps database table name to entity case class name

    Definition Classes
    AbstractGenerator
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def optionType(t: String): String

    Permalink

    Wrap the given type into an Option type

    Wrap the given type into an Option type

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  31. def parseType(tpe: String): String

    Permalink

    Generates code for a qualified Scala type

    Generates code for a qualified Scala type

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  32. val scalaKeywords: Seq[String]

    Permalink

    Words that are reserved keywords in Scala

    Words that are reserved keywords in Scala

    Definition Classes
    GeneratorHelpers
  33. def shouldQuoteIdentifier(s: String): Boolean

    Permalink
    Definition Classes
    StringGeneratorHelpers
  34. val slickTableTermMembersNoArgs: Seq[String]

    Permalink

    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
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def tableName: (String) ⇒ String

    Permalink

    Maps database table name to Table class and value name

    Maps database table name to Table class and value name

    Definition Classes
    AbstractGenerator
  37. final lazy val tables: Seq[Table]

    Permalink

    Table code generators.

    Table code generators.

    Definition Classes
    AbstractGenerator
  38. final lazy val tablesByName: Map[QualifiedName, Table]

    Permalink

    Table code generators indexed by db table name.

    Table code generators indexed by db table name.

    Definition Classes
    AbstractGenerator
  39. def termName(name: String): String

    Permalink

    Marks a String as a TermName (e.g.

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

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. def tuple(i: Int): String

    Permalink
    Attributes
    protected
  42. def typeName(name: String): String

    Permalink

    Marks a String as a TypeName (e.g.

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

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def [B](y: B): (AbstractSourceCodeGenerator, B)

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

Inherited from StringGeneratorHelpers

Inherited from AbstractGenerator[String, String, String]

Inherited from GeneratorHelpers[String, String, String]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from AbstractSourceCodeGenerator to any2stringadd[AbstractSourceCodeGenerator]

Inherited by implicit conversion StringFormat from AbstractSourceCodeGenerator to StringFormat[AbstractSourceCodeGenerator]

Inherited by implicit conversion Ensuring from AbstractSourceCodeGenerator to Ensuring[AbstractSourceCodeGenerator]

Inherited by implicit conversion ArrowAssoc from AbstractSourceCodeGenerator to ArrowAssoc[AbstractSourceCodeGenerator]

Basic customization overrides

Ungrouped