001: /*
002: * Copyright (c) 1998 - 2005 Versant Corporation
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * Versant Corporation - initial API and implementation
010: */
011: package com.versant.core.jdbc.sql.diff;
012:
013: /**
014: * @keep-all
015: * This bean is used to see how deep to check a diff.
016: */
017: public class ControlParams {
018: boolean columnsOnly = false;// not user prop
019: boolean checkLength = true;
020: boolean checkType = true;
021: boolean checkScale = true;
022: boolean checkNulls = true;
023: boolean checkPK = true;
024: boolean checkIndex = true;
025: boolean checkConstraint = true;
026: boolean checkExtraColumns = true;
027:
028: public boolean isCheckLength() {
029: return checkLength;
030: }
031:
032: public void setCheckLength(boolean checkLength) {
033: this .checkLength = checkLength;
034: }
035:
036: public boolean isCheckType() {
037: return checkType;
038: }
039:
040: public void setCheckType(boolean checkType) {
041: this .checkType = checkType;
042: }
043:
044: public boolean isCheckScale() {
045: return checkScale;
046: }
047:
048: public void setCheckScale(boolean checkScale) {
049: this .checkScale = checkScale;
050: }
051:
052: public boolean isCheckNulls() {
053: return checkNulls;
054: }
055:
056: public void setCheckNulls(boolean checkNulls) {
057: this .checkNulls = checkNulls;
058: }
059:
060: public boolean isCheckIndex() {
061: return checkIndex;
062: }
063:
064: public void setCheckIndex(boolean checkIndex) {
065: this .checkIndex = checkIndex;
066: }
067:
068: public boolean isCheckConstraint() {
069: return checkConstraint;
070: }
071:
072: public void setCheckConstraint(boolean checkConstraint) {
073: this .checkConstraint = checkConstraint;
074: }
075:
076: public boolean isCheckPK() {
077: return checkPK;
078: }
079:
080: public void setCheckPK(boolean checkPK) {
081: this .checkPK = checkPK;
082: }
083:
084: public boolean isCheckExtraColumns() {
085: return checkExtraColumns;
086: }
087:
088: public void setCheckExtraColumns(boolean checkExtraColumns) {
089: this .checkExtraColumns = checkExtraColumns;
090: }
091:
092: /**
093: * this method does not start with is, because we do not want users to set it.(its only for dave)
094: * @return
095: */
096: public boolean checkColumnsOnly() {
097: return columnsOnly;
098: }
099:
100: public void setColumnsOnly(boolean columnsOnly) {
101: this.columnsOnly = columnsOnly;
102: }
103: }
|