public class DataMigratorGenerateNumber extends DataMigrator
Constructor and Description |
---|
DataMigratorGenerateNumber(DataObjectDefinition object,
StringPattern pattern)
Creates a data migrator to generate number
|
Modifier and Type | Method and Description |
---|---|
void |
generateMigratorToFile(SourceGenerator sg,
Module module)
generates the migrator code to a file
|
java.lang.String |
getClassName() |
changeName, cleanName, equals, getName
public DataMigratorGenerateNumber(DataObjectDefinition object, StringPattern pattern)
object
- data object the migrator is defined onpattern
- defined pattern (could be different from the auto-number
pattern or similar)public java.lang.String getClassName()
getClassName
in class DataMigrator
public void generateMigratorToFile(SourceGenerator sg, Module module) throws java.io.IOException
DataMigrator
generateMigratorToFile
in class DataMigrator
sg
- source generationmodule
- module of the migratorjava.io.IOException
- if any issue happens while writing the files