c

app.wordpace.inkwell.generator

PartitioningSchemaEmitter

class PartitioningSchemaEmitter extends DefaultSchemaEmitter

Partitions the schema into different packages based on a partitioning map. A single model may be included in multiple partitions. Models not included in any partition will be generated into the base package.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartitioningSchemaEmitter
  2. DefaultSchemaEmitter
  3. SchemaEmitter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PartitioningSchemaEmitter(config: GeneratorConfiguration, schema: Schema, partitions: Map[String, Set[String]], simpleUnitName: String)

    partitions

    The map of partitions from a partition name to a set of scala names. We, again, believe Scala names are more apt to represent each table, because we are ultimately partitioning the space of Scala types, not the space of database tables.

    simpleUnitName

    The simple name for every unit. For example, let's say we have a partition (pack -> c1, pack -> c2, back -> c3), class names c1, c2, c3, c4, and a unit name Schema. This schema emitter will generate three units: Schema (c4), pack.Schema (c1, c2), and back.Schema (c3).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  6. def compilationUnits: Seq[CompilationUnit]

    The generated compilation units which will be written to different files.

    The generated compilation units which will be written to different files.

    Definition Classes
    PartitioningSchemaEmitterSchemaEmitter
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def header(unitName: String): String

    The emitted header generated from the package declaration, imports and possibly additional code.

    The emitted header generated from the package declaration, imports and possibly additional code.

    Attributes
    protected
    Definition Classes
    SchemaEmitter
  12. def importCode: String

    The emitted import section below each unit's package declaration.

    The emitted import section below each unit's package declaration.

    Attributes
    protected
    Definition Classes
    SchemaEmitter
  13. def imports: Set[Import]

    A set of imports.

    A set of imports.

    Definition Classes
    DefaultSchemaEmitterSchemaEmitter
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def packageName(unitName: String): String

    The package name referenced in the unit's package declaration.

    The package name referenced in the unit's package declaration.

    Definition Classes
    DefaultSchemaEmitterSchemaEmitter
  19. val schema: Schema

    The schema to be transformed.

    The schema to be transformed.

    Definition Classes
    DefaultSchemaEmitterSchemaEmitter
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def tableCode(table: Table): String

    Emits code for the given table.

    Emits code for the given table.

    Attributes
    protected
    Definition Classes
    DefaultSchemaEmitter
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def toUnit(unitName: String, tables: Seq[Table]): CompilationUnit

    Turns a unit name and a sequence of tables into a compilation unit.

    Turns a unit name and a sequence of tables into a compilation unit.

    Attributes
    protected
    Definition Classes
    DefaultSchemaEmitter
  24. def toUnit(unitName: String, bodyCode: String): CompilationUnit

    Turns a unit name and code body (without the header) into a full compilation unit.

    Turns a unit name and code body (without the header) into a full compilation unit.

    Attributes
    protected
    Definition Classes
    DefaultSchemaEmitter
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from DefaultSchemaEmitter

Inherited from SchemaEmitter

Inherited from AnyRef

Inherited from Any

Ungrouped