getl.db2.DB2Connection.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.db2
import com.fasterxml.jackson.annotation.JsonIgnore
import getl.driver.Driver
import getl.jdbc.TableDataset
import getl.jdbc.JDBCConnection
import groovy.transform.InheritConstructors
/**
* IBM DB2 connection class
* @author Alexsey Konstantinov
*
*/
@InheritConstructors
class DB2Connection extends JDBCConnection {
@Override
protected Class driverClass() { DB2Driver }
/** Current DB2 connection driver */
@JsonIgnore
DB2Driver getCurrentDB2Driver() { driver as DB2Driver }
@Override
protected void doInitConnection () {
super.doInitConnection()
driverName = "com.ibm.db2.jcc.DB2Driver"
}
@Override
protected Class getTableClass() { DB2Table }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy