All Downloads are FREE. Search and download functionalities are using the official Maven repository.

getl.models.sub.RepositoryMapTables.groovy Maven / Gradle / Ivy

Go to download

GETL - based package in Groovy, which automates the work of loading and transforming data

There is a newer version: 4.18.9
Show newest version
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