getl.models.sub.RepositoryMapTables.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of getl Show documentation
Show all versions of getl Show documentation
GETL - based package in Groovy, which automates the work of loading and transforming data
package getl.models.sub
import getl.lang.sub.GetlRepository
import getl.lang.sub.RepositoryObjects
import getl.models.MapTables
import groovy.transform.InheritConstructors
/**
* Repository models of map tables
* @author Alexsey Konstantinov
*/
@InheritConstructors
class RepositoryMapTables extends RepositoryObjects {
@Override
List getListClasses() { [MapTables.name] }
@Override
MapTables createObject(String className) {
new MapTables(this)
}
@Override
Map exportConfig(GetlRepository repObject) {
return (repObject as MapTables).params
}
@Override
GetlRepository importConfig(Map config, GetlRepository existObject, String objectName) {
return (existObject != null)?((existObject as MapTables).importParams(config) as MapTables):
new MapTables(dslCreator, false, config)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy