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.
- Alphabetic
- By Inheritance
- PartitioningSchemaSlicer
- DefaultSchemaSlicer
- SchemaSlicer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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 nameSchema. This schema slicer 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( ... )
-
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
imports(unitFullName: String): Set[Import]
Import all other partitions (potentially including the unpartitioned package).
-
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
slice(repository: ModelRepository): Set[CompilationUnit]
Slices the ModelRepository into a set of CompilationUnit.
Slices the ModelRepository into a set of CompilationUnit.
- Definition Classes
- PartitioningSchemaSlicer → SchemaSlicer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
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( ... )