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

getl.db2.DB2Connection.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.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