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.
- Alphabetic
- By Inheritance
- PartitioningSchemaEmitter
- DefaultSchemaEmitter
- SchemaEmitter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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 nameSchema. This schema emitter will generate three units:Schema(c4),pack.Schema(c1, c2), andback.Schema(c3).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
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
- PartitioningSchemaEmitter → SchemaEmitter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
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
-
def
imports: Set[Import]
A set of imports.
A set of imports.
- Definition Classes
- DefaultSchemaEmitter → SchemaEmitter
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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
- DefaultSchemaEmitter → SchemaEmitter
-
val
schema: Schema
The schema to be transformed.
The schema to be transformed.
- Definition Classes
- DefaultSchemaEmitter → SchemaEmitter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tableCode(table: Table): String
Emits code for the given table.
Emits code for the given table.
- Attributes
- protected
- Definition Classes
- DefaultSchemaEmitter
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )