scala.slick.codegen

AbstractSourceCodeGenerator

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
Type Hierarchy Learn more about scaladoc diagrams
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractSourceCodeGenerator(model: Model)

Type Members

  1. implicit class StringExtensions extends AnyRef

    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

    Table generator virtual class

    Table generator virtual class

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

Abstract Value Members

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

    Table generator factory.

    Table generator factory. Override for customization.

    Definition Classes
    AbstractGenerator

Concrete Value Members

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

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

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

    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)

    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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

  9. def docWithCode(doc: String, code: String): String

    Assemble doc comment with scala code

    Assemble doc comment with scala code

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

    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
  11. def ensuring(cond: (AbstractSourceCodeGenerator) ⇒ Boolean): AbstractSourceCodeGenerator

    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
  12. def ensuring(cond: Boolean, msg: ⇒ Any): AbstractSourceCodeGenerator

    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
  13. def ensuring(cond: Boolean): AbstractSourceCodeGenerator

    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
  14. def entityName: (String) ⇒ String

    Maps database table name to entity case class name

    Maps database table name to entity case class name

    Definition Classes
    AbstractGenerator
  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 AbstractSourceCodeGenerator to StringFormat[AbstractSourceCodeGenerator] performed by method StringFormat 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. final def optionType(t: String): String

    Wrap the given type into an Option type

    Wrap the given type into an Option type

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

    Generates code for a qualified Scala type

    Generates code for a qualified Scala type

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  28. val scalaKeywords: collection.Seq[String]

    Words that are reserved keywords in Scala

    Words that are reserved keywords in Scala

    Definition Classes
    GeneratorHelpers
  29. val slickTableTermMembersNoArgs: collection.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
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Maps database table name to Table class and value name

    Maps database table name to Table class and value name

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

    Table code generators.

    Table code generators.

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

    Table code generators indexed by db table name.

    Table code generators indexed by db table name.

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

    Marks a String as a TermName (e.g.

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

    Definition Classes
    StringGeneratorHelpersGeneratorHelpers
  35. def toString(): String

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

    Attributes
    protected
  37. def typeName(name: String): String

    Marks a String as a TypeName (e.g.

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

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

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

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

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

    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