@Bean DefaultDSLContext dsl() { return new DefaultDSLContext(configuration()); }
/** * Create an executor from a custom configuration. * * @param configuration The configuration */ public static DSLContext using(Configuration configuration) { return new DefaultDSLContext(configuration); }
/** * Create an executor with a custom connection provider and a dialect * configured. * * @param connectionProvider The connection provider providing jOOQ with * JDBC connections * @param dialect The dialect to use with objects created from this executor */ public static DSLContext using(ConnectionProvider connectionProvider, SQLDialect dialect) { return new DefaultDSLContext(connectionProvider, dialect); }
/** * Create an executor with a dialect configured. * <p> * Without a connection or data source, this executor cannot execute * queries. Use it to render SQL only. * * @param dialect The dialect to use with objects created from this executor */ public static DSLContext using(SQLDialect dialect) { return new DefaultDSLContext(dialect, null); }
protected DSLContext create() { return new DefaultDSLContext(configuration); }
/** * Create an executor with a dialect and settings configured. * <p> * Without a connection or data source, this executor cannot execute * queries. Use it to render SQL only. * * @param dialect The dialect to use with objects created from this executor * @param settings The runtime settings to apply to objects created from * this executor */ public static DSLContext using(SQLDialect dialect, Settings settings) { return new DefaultDSLContext(dialect, settings); }
/** * Create an executor with a custom connection provider, a dialect and settings * configured. * * @param connectionProvider The connection provider providing jOOQ with * JDBC connections * @param dialect The dialect to use with objects created from this executor * @param settings The runtime settings to apply to objects created from * this executor */ public static DSLContext using(ConnectionProvider connectionProvider, SQLDialect dialect, Settings settings) { return new DefaultDSLContext(connectionProvider, dialect, settings); }
protected DSLContext create() { return new DefaultDSLContext(configuration); }
protected DSLContext create() { return new DefaultDSLContext(configuration); }
protected DSLContext create() { return new DefaultDSLContext(configuration); }
/** * Create an executor with a connection and a dialect configured. * <p> * If you provide a JDBC connection to a jOOQ Configuration, jOOQ will use * that connection directly for creating statements. * <p> * This is a convenience constructor for * {@link #using(ConnectionProvider, SQLDialect, Settings)} using a * {@link DefaultConnectionProvider} * * @param connection The connection to use with objects created from this * executor * @param dialect The dialect to use with objects created from this executor * @see DefaultConnectionProvider */ public static DSLContext using(Connection connection, SQLDialect dialect) { return new DefaultDSLContext(connection, dialect, null); }
/** * Create an executor with a data source and a dialect configured. * <p> * If you provide a JDBC data source to a jOOQ Configuration, jOOQ will use * that data source for initialising connections, and creating statements. * <p> * This is a convenience constructor for * {@link #using(ConnectionProvider, SQLDialect)} using a * {@link DataSourceConnectionProvider} * * @param datasource The data source to use with objects created from this * executor * @param dialect The dialect to use with objects created from this executor * @see DataSourceConnectionProvider */ public static DSLContext using(DataSource datasource, SQLDialect dialect) { return new DefaultDSLContext(datasource, dialect); }
/** * Create an executor with a connection, a dialect and settings configured. * <p> * If you provide a JDBC connection to a jOOQ Configuration, jOOQ will use * that connection directly for creating statements. * <p> * This is a convenience constructor for * {@link #using(ConnectionProvider, SQLDialect, Settings)} using a * {@link DefaultConnectionProvider} * * @param connection The connection to use with objects created from this * executor * @param dialect The dialect to use with objects created from this executor * @param settings The runtime settings to apply to objects created from * this executor * @see DefaultConnectionProvider */ public static DSLContext using(Connection connection, SQLDialect dialect, Settings settings) { return new DefaultDSLContext(connection, dialect, settings); }
@Bean public DefaultDSLContext dslContext(){ DefaultDSLContext context = new DefaultDSLContext(jooqConfiguration()); return context; }
/** * Create an executor from a custom configuration. * * @param configuration The configuration */ @Transition( name = "USING", args = "Configuration" ) public static DSLContext using(Configuration configuration) { return new DefaultDSLContext(configuration); }
/** * Create an executor with a dialect configured. * <p> * Without a connection or data source, this executor cannot execute * queries. Use it to render SQL only. * * @param dialect The dialect to use with objects created from this executor */ @Transition( name = "USING", args = "SQLDialect" ) public static DSLContext using(SQLDialect dialect) { return new DefaultDSLContext(dialect, null); }
/** * Create an executor with a custom connection provider and a dialect * configured. * * @param connectionProvider The connection provider providing jOOQ with * JDBC connections * @param dialect The dialect to use with objects created from this executor */ @Transition( name = "USING", args = { "ConnectionProvider", "SQLDialect" } ) public static DSLContext using(ConnectionProvider connectionProvider, SQLDialect dialect) { return new DefaultDSLContext(connectionProvider, dialect); }
/** * Create an executor with a connection configured. * <p> * If you provide a JDBC connection to a jOOQ Configuration, jOOQ will use * that connection directly for creating statements. * <p> * This is a convenience constructor for * {@link #using(Connection, Settings)}, guessing the {@link SQLDialect} * using {@link JDBCUtils#dialect(Connection)} * * @param connection The connection to use with objects created from this * executor * @see DefaultConnectionProvider * @see JDBCUtils#dialect(Connection) */ public static DSLContext using(Connection connection) { return new DefaultDSLContext(connection, JDBCUtils.dialect(connection), null); }
/** * Create an executor with a dialect and settings configured. * <p> * Without a connection or data source, this executor cannot execute * queries. Use it to render SQL only. * * @param dialect The dialect to use with objects created from this executor * @param settings The runtime settings to apply to objects created from * this executor */ @Transition( name = "USING", args = { "SQLDialect", "Settings" } ) public static DSLContext using(SQLDialect dialect, Settings settings) { return new DefaultDSLContext(dialect, settings); }
/** * Create an executor with a connection, a dialect and settings configured. * <p> * If you provide a JDBC connection to a jOOQ Configuration, jOOQ will use * that connection directly for creating statements. * <p> * This is a convenience constructor for * {@link #using(ConnectionProvider, SQLDialect, Settings)} using a * {@link DefaultConnectionProvider} and guessing the {@link SQLDialect} * using {@link JDBCUtils#dialect(Connection)} * * @param connection The connection to use with objects created from this * executor * @param settings The runtime settings to apply to objects created from * this executor * @see DefaultConnectionProvider * @see JDBCUtils#dialect(Connection) */ public static DSLContext using(Connection connection, Settings settings) { return new DefaultDSLContext(connection, JDBCUtils.dialect(connection), settings); }