01: /*
02: * Copyright 2006-2007, Unitils.org
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.unitils.dbmaintainer.structure;
17:
18: import org.unitils.dbmaintainer.util.DatabaseTask;
19:
20: /**
21: * Defines the contract for implementations that disable all foreign key and not-null constraints on an database.
22: * The implementation guarantees that, when the method disableConstraints() is is called once after each database update.
23: *
24: * @author Filip Neven
25: * @author Bart Vermeiren
26: * @author Tim Ducheyne
27: */
28: public interface ConstraintsDisabler extends DatabaseTask {
29:
30: /**
31: * Generates statements to disable the constraints of the associated database. This method does only guarantee that
32: * constraints are fully disabled after the method enableConstraintsOnConnection has been called on the <code>Connection</code> object that is used.
33: */
34: void disableConstraints();
35:
36: }
|