Package net.sourceforge.squirrel_sql.plugins.oracle.constraint

Examples of net.sourceforge.squirrel_sql.plugins.oracle.constraint.ConstraintSourceBuilder


    }

    public void load(ISession session, PreparedStatement stmt) {
      // always wrap on word boundaries
      textArea.setWrapStyleWord(true);
      ConstraintSourceBuilder csb = new ConstraintSourceBuilder(session);

      ResultSet rs = null;
      try {
        rs = stmt.executeQuery();

        if (rs.next()) {
          ConstraintInfo ci = new ConstraintInfo(
              rs.getString(1),
              rs.getString(2),
              ConstraintInfo.ConstraintType
                .valueOf(rs.getString(3)),
              rs.getString(4),
              rs.getString(5),
              rs.getString(6),
              rs.getString(7),
              rs.getString(8),
              rs.getString(9));

          csb.buildConstraintSource(ci);
         
          if (csb.getConstraintSource() != null) {
            textArea.setText(csb.getConstraintSource());
          } else {
            textArea.setText("Source NOT available");
          }
        }
      } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.oracle.constraint.ConstraintSourceBuilder

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.