Constraint duplicate() {
   Constraint localConstraint = new Constraint();
   localConstraint.core = this.core.duplicate();
   localConstraint.name = this.name;
   localConstraint.constType = this.constType;
   localConstraint.isForward = this.isForward;
   localConstraint.check = this.check;
   localConstraint.isNotNull = this.isNotNull;
   localConstraint.notNullColumnIndex = this.notNullColumnIndex;
   localConstraint.rangeVariable = this.rangeVariable;
   return localConstraint;
 }
Exemple #2
0
  Constraint duplicate() {

    Constraint copy = new Constraint();

    copy.core = core.duplicate();
    copy.name = name;
    copy.constType = constType;
    copy.isForward = isForward;

    //
    copy.check = check;
    copy.isNotNull = isNotNull;
    copy.notNullColumnIndex = notNullColumnIndex;
    copy.rangeVariable = rangeVariable;
    copy.schemaObjectNames = schemaObjectNames;

    return copy;
  }