[#6372] Add DSLContext Configuration.dsl()
This commit is contained in:
parent
d3d66edacf
commit
f8191d8390
@ -164,6 +164,17 @@ import org.jooq.tools.StopWatchListener;
|
||||
*/
|
||||
public interface Configuration extends Serializable {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Wrap this Configuration
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Wrap this <code>Configuration</code> in a {@link DSLContext}, providing
|
||||
* access to the configuration-contextual DSL to construct executable
|
||||
* queries.
|
||||
*/
|
||||
DSLContext dsl();
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Custom data
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@ -497,6 +497,15 @@ public class DefaultConfiguration implements Configuration {
|
||||
: new ConcurrentHashMap<Object, Object>();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// XXX: Wrap this Configuration
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public final DSLContext dsl() {
|
||||
return DSL.using(this);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// XXX: Deriving configurations
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user