org.disl.pattern.TablePattern.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disl Show documentation
Show all versions of disl Show documentation
disl = data integration specific language. Goal of this project is to implement groovy based domain specific language supporting modelling of data integration projects. Disl will support data modeling and data mapping including support for MDA transformations and unit testing.
/*
* Copyright 2015 Karel H?bl .
*
* This file is part of disl.
*
* Disl is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Disl is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Disl. If not, see .
*/
package org.disl.pattern
import groovy.sql.Sql
import org.disl.meta.Context
import org.disl.meta.Table
/**
* Pattern for Table.
* */
abstract class TablePattern extends Pattern {
T table
final T getTable() {
table
}
void addSqlScriptStep(String name,String code) {
add(ExecuteSQLScriptTableStep.create(name, code))
}
@Override
public String toString() {
"${this.getClass().getSimpleName()}(${getTable()})"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy