nz.co.gregs.dbvolution.databases.Informix11DB Maven / Gradle / Ivy
/*
* Copyright 2013 Gregory Graham.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package nz.co.gregs.dbvolution.databases;
import java.sql.SQLException;
import javax.sql.DataSource;
import nz.co.gregs.dbvolution.databases.definitions.Informix11DBDefinition;
/**
* A version of DBDatabase tweaked for Informix 11 and higher.
*
* Support DBvolution at
* Patreon
*
* @author Gregory Graham
*/
public class Informix11DB extends InformixDB {
private final static String INFORMIXDRIVERNAME = "com.informix.jdbc.IfxDriver";
private static final long serialVersionUID = 1l;
/**
* Creates a DBDatabase configured for Informix with the given JDBC URL,
* username, and password.
*
*
* Remember to include the Informix JDBC driver in your classpath.
*
*
*
*
*
* 1 Database exceptions may be thrown
*
* @param jdbcURL jdbcURL
* @param username username
* @param password password
* @throws java.lang.ClassNotFoundException java.lang.ClassNotFoundException
*/
public Informix11DB(String jdbcURL, String username, String password) throws ClassNotFoundException {
super(new Informix11DBDefinition(), INFORMIXDRIVERNAME, jdbcURL, username, password);
}
/**
* Creates a DBDatabase configured for Informix for the given data source.
*
*
* Remember to include the Informix JDBC driver in your classpath.
*
*
*
* 1 Database exceptions may be thrown
*
* @param dataSource dataSource
* @throws java.lang.ClassNotFoundException java.lang.ClassNotFoundException
* @throws java.sql.SQLException java.sql.SQLException
*/
public Informix11DB(DataSource dataSource) throws ClassNotFoundException, SQLException {
super(new Informix11DBDefinition(), dataSource);
}
@Override
public DBDatabase clone() throws CloneNotSupportedException {
return super.clone();
}
}