getl.netezza.NetezzaTable.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.netezza
import com.fasterxml.jackson.annotation.JsonIgnore
import getl.data.Connection
import getl.exception.ExceptionGETL
import getl.jdbc.TableDataset
import groovy.transform.InheritConstructors
/**
* Vertica table
* @author Alexsey Konstantinov
*
*/
@InheritConstructors
class NetezzaTable extends TableDataset {
@Override
void setConnection(Connection value) {
if (value != null && !(value instanceof NetezzaConnection))
throw new ExceptionGETL('Connection to NetezzaConnection class is allowed!')
super.setConnection(value)
}
NetezzaConnection useConnection(NetezzaConnection value) {
setConnection(value)
return value
}
/** Current Netezza connection */
@JsonIgnore
NetezzaConnection getCurrentNetezzaConnection() { connection as NetezzaConnection }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy