Package uk.org.ogsadai.converters.databaseschema

Examples of uk.org.ogsadai.converters.databaseschema.ColumnMetaData


      }
    } else if (value instanceof TableMetaData) {
      setText(((TableMetaData) value).getName());

    } else if (value instanceof ColumnMetaData) {
      ColumnMetaData column = (ColumnMetaData) value;
      setText(column.getName());
    }
    return this;
  }
View Full Code Here


      }
    }
    if (parent instanceof TableMetaData) {
      TableMetaData table = (TableMetaData) parent;
      for (int i = 0; i < table.getColumnCount(); i++) {
        ColumnMetaData column = table.getColumn(i + 1);
        if (column == child)
          return i;
      }
    }
View Full Code Here

            public void mouseClicked(MouseEvent e) {
                TreePath treePath = ogsadaiTree.getPathForLocation(e.getX(), e.getY());

                if (e.getClickCount() == 2 && treePath != null) {
                    if (treePath.getLastPathComponent() instanceof ColumnMetaData) {
                        ColumnMetaData column = (ColumnMetaData) treePath.getLastPathComponent();
                        String columnName = column.getName();
                        String tableName = column.getTable().getName();
                        String resourceName = ((OgsaDaiResource) treePath.getParentPath()
                                .getParentPath().getLastPathComponent()).getResourceLabel();
                        sqlEditor.updateSql(resourceName, tableName, columnName);
                    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.converters.databaseschema.ColumnMetaData

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.