Package net.sourceforge.squirrel_sql.plugins.mssql.sql.constraint

Examples of net.sourceforge.squirrel_sql.plugins.mssql.sql.constraint.CheckConstraint


          constraints.addConstraint(def);
        }
        else if (constraintType.startsWith("CHECK"))
        {
          CheckConstraint check = new CheckConstraint();
          String col = constraintType.substring(16).trim(); // chop off "CHECK on column ";

          check.setConstraintName(constraintName);
          check.addConstraintColumn(col);
          check.setCheckExpression(constraintKeys);

          constraints.addConstraint(check);
        }
        else if (constraintType.startsWith("FOREIGN KEY"))
        {
View Full Code Here


      assertEquals(1, list.size());
    }

    @Test
    public final void testGetCheckConstraints() {
      CheckConstraint constraint = new CheckConstraint();
      constraintsUnderTest.addConstraint(constraint);
      List<CheckConstraint> list = constraintsUnderTest.getCheckConstraints();
      assertEquals(1, list.size());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.mssql.sql.constraint.CheckConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.