This commit is contained in:
Lukas Eder 2022-04-13 14:20:14 +02:00
parent fb99f8b05a
commit 69d2708080
5 changed files with 332 additions and 0 deletions

View File

@ -0,0 +1,82 @@
/*
* 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.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq;

View File

@ -562,6 +562,13 @@ public interface Configuration extends Serializable {
/**
* Retrieve the configured schema mapping.
*
@ -1266,6 +1273,20 @@ public interface Configuration extends Serializable {
@ -1871,6 +1892,17 @@ public interface Configuration extends Serializable {

View File

@ -0,0 +1,114 @@
/*
* 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.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.impl;

View File

@ -54,6 +54,7 @@ import java.util.function.Function;
import javax.sql.DataSource;
// ...
import org.jooq.CacheProvider;
import org.jooq.CharsetProvider;
import org.jooq.CommitProvider;
@ -61,6 +62,7 @@ import org.jooq.Configuration;
import org.jooq.ConnectionProvider;
import org.jooq.ConverterProvider;
import org.jooq.DSLContext;
import org.jooq.DefaultAuditProvider;
import org.jooq.DiagnosticsListener;
import org.jooq.DiagnosticsListenerProvider;
import org.jooq.ExecuteListener;
@ -138,6 +140,8 @@ public class DefaultConfiguration extends AbstractConfiguration {
// [#7062] Apart from the possibility of containing user defined objects, the data
// map also contains the reflection cache, which isn't serializable (and
// should not be serialized anyway).
@ -197,6 +201,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
null,
dialect,
settings,
@ -238,6 +243,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
configuration.clock,
configuration.dialect,
configuration.settings,
@ -278,6 +284,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
Clock clock,
SQLDialect dialect,
Settings settings,
@ -307,6 +314,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
set(clock);
set(dialect);
set(settings);
@ -371,6 +379,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -405,6 +414,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -439,6 +449,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -473,6 +484,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -512,6 +524,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -546,6 +559,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -580,6 +594,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -619,6 +634,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -658,6 +674,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -692,6 +709,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -726,6 +744,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -760,6 +779,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -794,6 +814,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -828,6 +849,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -862,6 +884,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -901,6 +924,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -935,6 +959,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -969,6 +994,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -1003,6 +1029,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
settings,
@ -1026,6 +1053,41 @@ public class DefaultConfiguration extends AbstractConfiguration {
@ -1074,6 +1136,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
newClock,
dialect,
settings,
@ -1108,6 +1171,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
newDialect,
settings,
@ -1142,6 +1206,7 @@ public class DefaultConfiguration extends AbstractConfiguration {
clock,
dialect,
newSettings,
@ -1355,6 +1420,12 @@ public class DefaultConfiguration extends AbstractConfiguration {
@Override
public final Configuration set(Clock newClock) {
@ -1583,6 +1654,14 @@ public class DefaultConfiguration extends AbstractConfiguration {
@ -1795,6 +1874,13 @@ public class DefaultConfiguration extends AbstractConfiguration {
@Override
public final Clock clock() {
return clock;

View File

@ -45,6 +45,7 @@ import java.util.function.Function;
import javax.sql.DataSource;
// ...
import org.jooq.CacheProvider;
import org.jooq.CharsetProvider;
import org.jooq.CommitProvider;
@ -216,6 +217,11 @@ public class MockConfiguration extends AbstractConfiguration {
@Override
public UnwrapperProvider unwrapperProvider() {
return delegate.unwrapperProvider();
@ -393,6 +399,12 @@ public class MockConfiguration extends AbstractConfiguration {
@Override
public Configuration set(Unwrapper newUnwrapper) {
delegate.set(newUnwrapper);
@ -555,6 +567,12 @@ public class MockConfiguration extends AbstractConfiguration {
@Override
public Configuration derive(Unwrapper newUnwrapper) {
return new MockConfiguration(delegate.derive(newUnwrapper), provider);