abstract class TableDef extends AbstractSourceCodeGenerator.TableDef
- Grouped
- Alphabetic
- By Inheritance
- TableDef
- TableDef
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TableDef(model: model.Table)
Type Members
-
trait
Def extends AnyRef
Common interface for any kind of definition within the generated code
Common interface for any kind of definition within the generated code
- Definition Classes
- TableDef
-
trait
TermDef extends Def
Common interface for definitions that define a term (val, def, ...) within the generated code
Common interface for definitions that define a term (val, def, ...) within the generated code
- Definition Classes
- TableDef
-
trait
TypeDef extends Def
Common interface for definitions that define a type (class, case class, ...) within the generated code
Common interface for definitions that define a type (class, case class, ...) within the generated code
- Definition Classes
- TableDef
-
abstract
type
Column <: TableDef.ColumnDef
Column generator virtual class
Column generator virtual class
- Definition Classes
- TableDef
- class ColumnDef extends TableDef.ColumnDef
-
abstract
type
EntityType <: TableDef.EntityTypeDef
Entity case class or type alias generator virtual class
Entity case class or type alias generator virtual class
- Definition Classes
- TableDef
- trait EntityTypeDef extends TableDef.EntityTypeDef
-
abstract
type
ForeignKey <: TableDef.ForeignKeyDef
Foreign key generator virtual class
Foreign key generator virtual class
- Definition Classes
- TableDef
- class ForeignKeyDef extends TableDef.ForeignKeyDef
-
abstract
type
Index <: TableDef.IndexDef
Index generator virtual class
Index generator virtual class
- Definition Classes
- TableDef
- class IndexDef extends TableDef.IndexDef
-
abstract
type
PlainSqlMapper <: TableDef.PlainSqlMapperDef
Plain SQL GetResult mapper generator virtual class
Plain SQL GetResult mapper generator virtual class
- Definition Classes
- TableDef
- trait PlainSqlMapperDef extends TableDef.PlainSqlMapperDef
-
abstract
type
PrimaryKey <: TableDef.PrimaryKeyDef
Primary key generator virtual class
Primary key generator virtual class
- Definition Classes
- TableDef
- class PrimaryKeyDef extends TableDef.PrimaryKeyDef
-
abstract
type
TableClass <: TableDef.TableClassDef
Table class generator virtual class
Table class generator virtual class
- Definition Classes
- TableDef
- trait TableClassDef extends TableDef.TableClassDef
-
abstract
type
TableValue <: TableDef.TableValueDef
Table value generator virtual class
Table value generator virtual class
- Definition Classes
- TableDef
- trait TableValueDef extends TableDef.TableValueDef
Abstract Value Members
-
abstract
def
Column: (model.Column) ⇒ Column
Column generator factory.
Column generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
EntityType: EntityType
Entity case class or type alias generator factory.
Entity case class or type alias generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
ForeignKey: (model.ForeignKey) ⇒ ForeignKey
ForeignKey generator factory.
ForeignKey generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
Index: (model.Index) ⇒ Index
Index generator factory.
Index generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
PlainSqlMapper: PlainSqlMapper
Plain SQL GetResult mapper generator factory.
Plain SQL GetResult mapper generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
PrimaryKey: (model.PrimaryKey) ⇒ PrimaryKey
PrimaryKey generator factory.
PrimaryKey generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
TableClass: TableClass
Table class generator factory.
Table class generator factory. Override for customization.
- Definition Classes
- TableDef
-
abstract
def
TableValue: TableValue
Table value generator factory.
Table value generator factory. Override for customization.
- Definition Classes
- TableDef
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (TableDef, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
autoIncLast: Boolean
Indicates whether auto increment columns should be put last.
Indicates whether auto increment columns should be put last. Please set to !hlistEnabled for switching this on.
- Definition Classes
- TableDef
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
code: Seq[String]
Generates the complete code for this table and its subordinate generators.
Generates the complete code for this table and its subordinate generators.
- Definition Classes
- TableDef
-
final
lazy val
columns: Seq[Column]
Column code generators in the desired user-facing order.
Column code generators in the desired user-facing order.
- Definition Classes
- TableDef
-
final
lazy val
columnsByName: Map[String, Column]
Column code generators indexed by db column name
Column code generators indexed by db column name
- Definition Classes
- TableDef
-
final
lazy val
columnsPositional: IndexedSeq[Column]
Column code generators in the order they appear in the model.
Column code generators in the order they appear in the model.
- Definition Classes
- TableDef
-
def
compoundType(types: Seq[String]): String
Creates a compound type from a given sequence of types.
-
def
compoundValue(values: Seq[String]): String
Creates a compound value from a given sequence of values.
-
def
definitions: Seq[Def]
Definitions to be generated for this table
Definitions to be generated for this table
- Definition Classes
- TableDef
-
lazy val
desiredColumnOrder: Seq[Int]
Database column positions in the desired user-facing order.
Database column positions in the desired user-facing order. Currently just moves the positions of AutoInc columns to the end if autoIncLastAsOption is enabled.
- Definition Classes
- TableDef
- def ensuring(cond: (TableDef) ⇒ Boolean, msg: ⇒ Any): TableDef
- def ensuring(cond: (TableDef) ⇒ Boolean): TableDef
- def ensuring(cond: Boolean, msg: ⇒ Any): TableDef
- def ensuring(cond: Boolean): TableDef
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
extractor: String
Function that extracts the unmapped values from an entity object
-
def
factory: String
Function that constructs an entity object from the unmapped values
-
final
lazy val
foreignKeys: Seq[ForeignKey]
Foreign key code generators
Foreign key code generators
- Definition Classes
- TableDef
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hlistEnabled: Boolean
If HList should be used as a compound type instead of tuples.
If HList should be used as a compound type instead of tuples. Only if hugeClassEnabled is false.
- Definition Classes
- TableDef
-
def
hugeClassEnabled: Boolean
Default is true, i.e.
Default is true, i.e. a case class will be generated even if column.size > 22. Override to false to get the code as before Slick 3.3, i.e. a HList based type will be generated instead.
- Definition Classes
- TableDef
-
final
lazy val
indices: Seq[Index]
Index code generators
Index code generators
- Definition Classes
- TableDef
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isMappedToHugeClass: Boolean
Indicates if table has more than 22 columns but still has to be mapped to a case class.
Indicates if table has more than 22 columns but still has to be mapped to a case class.
- Definition Classes
- TableDef
-
def
mappingEnabled: Boolean
Indicates if this table should be mapped using factory and extractor or not, in which case tuples are used.
Indicates if this table should be mapped using factory and extractor or not, in which case tuples are used. (Consider overriding EntityType.enabled instead, which affects this, too.) Disabled by default when using hlists.
- Definition Classes
- TableDef
-
val
model: model.Table
- Definition Classes
- TableDef
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
lazy val
primaryKey: Option[PrimaryKey]
Primary key code generator, if this table has one
Primary key code generator, if this table has one
- Definition Classes
- TableDef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (TableDef, B)
Deprecated Value Members
-
def
autoIncLastAsOption: Boolean
Indicates whether auto increment columns should be put last and made an Option with a None default.
Indicates whether auto increment columns should be put last and made an Option with a None default. Please set to !hlistEnabled for switching this on.
- Definition Classes
- TableDef
- Annotations
- @deprecated
- Deprecated
(Since version 3.2.0) Use autoIncLast = true and ColumnDef.asOption = autoInc instead.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated