c

app.wordpace.inkwell.generator

PartitioningSchemaSlicer

class PartitioningSchemaSlicer extends DefaultSchemaSlicer

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartitioningSchemaSlicer
  2. DefaultSchemaSlicer
  3. SchemaSlicer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    partitions

    The map of partitions from a partition name to a set of scala names. We 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 slicer 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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def imports(unitFullName: String): Set[Import]

    Import all other partitions (potentially including the unpartitioned package).

  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def slice(repository: ModelRepository): Set[CompilationUnit]

    Slices the ModelRepository into a set of CompilationUnit.

    Slices the ModelRepository into a set of CompilationUnit.

    Definition Classes
    PartitioningSchemaSlicerSchemaSlicer
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. def toUnit(fullName: String, models: Set[Model], imports: Set[Import]): CompilationUnit

    Creates the actual CompilationUnit.

    Creates the actual CompilationUnit. Override this if you want to use a different compilation unit. Creates a DefaultCompilationUnit by default.

    Attributes
    protected
    Definition Classes
    DefaultSchemaSlicer
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  21. 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 DefaultSchemaSlicer

Inherited from SchemaSlicer

Inherited from AnyRef

Inherited from Any

Ungrouped