[#1586] Add missing constructors taking DataSource to dialect-specific
factories
This commit is contained in:
parent
297735c227
commit
202065f013
@ -32,6 +32,8 @@ package org.jooq.util.ase;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -77,6 +79,18 @@ public class ASEFactory extends Factory {
|
||||
super(connection, SQLDialect.ASE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public ASEFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.ASE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -87,6 +101,16 @@ public class ASEFactory extends Factory {
|
||||
super(connection, SQLDialect.ASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public ASEFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.ASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -32,6 +32,8 @@ package org.jooq.util.cubrid;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -76,6 +78,18 @@ public class CUBRIDFactory extends Factory {
|
||||
super(connection, SQLDialect.CUBRID, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public CUBRIDFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.CUBRID, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -86,6 +100,16 @@ public class CUBRIDFactory extends Factory {
|
||||
super(connection, SQLDialect.CUBRID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public CUBRIDFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.CUBRID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.db2;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class DB2Factory extends Factory {
|
||||
super(connection, SQLDialect.DB2, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public DB2Factory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.DB2, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class DB2Factory extends Factory {
|
||||
super(connection, SQLDialect.DB2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public DB2Factory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.DB2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.derby;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class DerbyFactory extends Factory {
|
||||
super(connection, SQLDialect.DERBY, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public DerbyFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.DERBY, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class DerbyFactory extends Factory {
|
||||
super(connection, SQLDialect.DERBY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public DerbyFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.DERBY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.h2;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class H2Factory extends Factory {
|
||||
super(connection, SQLDialect.H2, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public H2Factory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.H2, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class H2Factory extends Factory {
|
||||
super(connection, SQLDialect.H2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public H2Factory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.H2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.hsqldb;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class HSQLDBFactory extends Factory {
|
||||
super(connection, SQLDialect.HSQLDB, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public HSQLDBFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.HSQLDB, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class HSQLDBFactory extends Factory {
|
||||
super(connection, SQLDialect.HSQLDB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public HSQLDBFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.HSQLDB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.ingres;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class IngresFactory extends Factory {
|
||||
super(connection, SQLDialect.INGRES, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public IngresFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.INGRES, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class IngresFactory extends Factory {
|
||||
super(connection, SQLDialect.INGRES);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public IngresFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.INGRES);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.mysql;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.SQLDialect;
|
||||
@ -84,6 +86,18 @@ public class MySQLFactory extends Factory {
|
||||
super(connection, SQLDialect.MYSQL, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public MySQLFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.MYSQL, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -94,6 +108,16 @@ public class MySQLFactory extends Factory {
|
||||
super(connection, SQLDialect.MYSQL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public MySQLFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.MYSQL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.oracle;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
@ -84,6 +86,18 @@ public class OracleFactory extends Factory {
|
||||
super(connection, SQLDialect.ORACLE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public OracleFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.ORACLE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -94,6 +108,16 @@ public class OracleFactory extends Factory {
|
||||
super(connection, SQLDialect.ORACLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public OracleFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.ORACLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.postgres;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class PostgresFactory extends Factory {
|
||||
super(connection, SQLDialect.POSTGRES, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public PostgresFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.POSTGRES, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class PostgresFactory extends Factory {
|
||||
super(connection, SQLDialect.POSTGRES);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public PostgresFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.POSTGRES);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.sqlite;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
@ -83,6 +85,18 @@ public class SQLiteFactory extends Factory {
|
||||
super(connection, SQLDialect.SQLITE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public SQLiteFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.SQLITE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -93,6 +107,16 @@ public class SQLiteFactory extends Factory {
|
||||
super(connection, SQLDialect.SQLITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public SQLiteFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.SQLITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -37,6 +37,8 @@ package org.jooq.util.sqlserver;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -82,6 +84,18 @@ public class SQLServerFactory extends Factory {
|
||||
super(connection, SQLDialect.SQLSERVER, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public SQLServerFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.SQLSERVER, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -92,6 +106,16 @@ public class SQLServerFactory extends Factory {
|
||||
super(connection, SQLDialect.SQLSERVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public SQLServerFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.SQLSERVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
@ -32,6 +32,8 @@ package org.jooq.util.sybase;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SchemaMapping;
|
||||
import org.jooq.conf.Settings;
|
||||
@ -77,6 +79,18 @@ public class SybaseFactory extends Factory {
|
||||
super(connection, SQLDialect.SYBASE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source and a settings configured
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public SybaseFactory(DataSource dataSource, Settings settings) {
|
||||
super(dataSource, SQLDialect.SYBASE, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
@ -87,6 +101,16 @@ public class SybaseFactory extends Factory {
|
||||
super(connection, SQLDialect.SYBASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a data source
|
||||
*
|
||||
* @param dataSource The data source to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public SybaseFactory(DataSource dataSource) {
|
||||
super(dataSource, SQLDialect.SYBASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with settings configured
|
||||
* <p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user