KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdbc > sql > diff > ControlParams


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdbc.sql.diff;
13
14 /**
15  * @keep-all
16  * This bean is used to see how deep to check a diff.
17  */

18 public class ControlParams {
19     boolean columnsOnly = false;// not user prop
20
boolean checkLength = true;
21     boolean checkType = true;
22     boolean checkScale = true;
23     boolean checkNulls = true;
24     boolean checkPK = true;
25     boolean checkIndex = true;
26     boolean checkConstraint = true;
27     boolean checkExtraColumns = true;
28
29     public boolean isCheckLength() {
30         return checkLength;
31     }
32
33     public void setCheckLength(boolean checkLength) {
34         this.checkLength = checkLength;
35     }
36
37     public boolean isCheckType() {
38         return checkType;
39     }
40
41     public void setCheckType(boolean checkType) {
42         this.checkType = checkType;
43     }
44
45     public boolean isCheckScale() {
46         return checkScale;
47     }
48
49     public void setCheckScale(boolean checkScale) {
50         this.checkScale = checkScale;
51     }
52
53     public boolean isCheckNulls() {
54         return checkNulls;
55     }
56
57     public void setCheckNulls(boolean checkNulls) {
58         this.checkNulls = checkNulls;
59     }
60
61     public boolean isCheckIndex() {
62         return checkIndex;
63     }
64
65     public void setCheckIndex(boolean checkIndex) {
66         this.checkIndex = checkIndex;
67     }
68
69     public boolean isCheckConstraint() {
70         return checkConstraint;
71     }
72
73     public void setCheckConstraint(boolean checkConstraint) {
74         this.checkConstraint = checkConstraint;
75     }
76
77     public boolean isCheckPK() {
78         return checkPK;
79     }
80
81     public void setCheckPK(boolean checkPK) {
82         this.checkPK = checkPK;
83     }
84
85     public boolean isCheckExtraColumns() {
86         return checkExtraColumns;
87     }
88
89     public void setCheckExtraColumns(boolean checkExtraColumns) {
90         this.checkExtraColumns = checkExtraColumns;
91     }
92
93     /**
94      * this method does not start with is, because we do not want users to set it.(its only for dave)
95      * @return
96      */

97     public boolean checkColumnsOnly() {
98         return columnsOnly;
99     }
100
101     public void setColumnsOnly(boolean columnsOnly) {
102         this.columnsOnly = columnsOnly;
103     }
104 }
105
106
Popular Tags