Examples of addColumn()


Examples of org.objectweb.speedo.metadata.SpeedoField.addColumn()

            SpeedoColumn sc = new SpeedoColumn();
            sc.name = n.getNodeValue();
            if (st != null) {
                sc.table = st;
            }
            f.addColumn(sc);
            logger.log(BasicLevel.DEBUG, "specify column " + sc.name
                    + " to the field " + f.name + ": " + f.columns);
        }
        if (debug) {
            logger.log(BasicLevel.DEBUG, "New field: "
View Full Code Here

Examples of org.objectweb.speedo.metadata.SpeedoInheritedField.addColumn()

                    SpeedoInheritedField sif =
                        sc.inheritance.newSpeedoInheritedField((SpeedoField)inhsf);
                    for (SpeedoColumn scol : sif.inheritedField.columns) {
            SpeedoColumn nscol = (SpeedoColumn) scol.clone();
            nscol.table = sc.mainTable;
            sif.addColumn(nscol);
          }
        }
        inhsc = inhsc.getSuper();
      }
      break;
View Full Code Here

Examples of org.owasp.webscarab.ui.swing.ConversationTableModel.addColumn()

        this.associationOPUrlAction = new AssociationOPUrlAction(this.opUrlTextField);
        this.openIdPopupMenu.add(this.associationOPUrlAction);

        ConversationTableModel openIdTableModel = new ConversationTableModel(
                this.openIdModel.getOpenIDConversationModel());
        openIdTableModel.addColumn(new ColumnDataModel<ConversationID>("OpenID Type", String.class) {
            @Override
            public Object getValue(ConversationID key) {
                return OpenIdPanel.this.openIdModel.getReadableOpenIDMessageType(key);
            }
        });
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.columns.TableColumnGroup.addColumn()

      currentColumnGroup.addColumn(new TableColumn(border, length, false));
    }
    else
    {
      final TableColumnGroup currentColumnGroup = new TableColumnGroup(BoxDefinition.EMPTY.getBorder());
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
      currentTable.columnModel.addColumnGroup(currentColumnGroup);
    }
  }

  protected void finishTableColumnGroupBox(final TableColumnGroupNode box)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.TypedMetaTableModel.addColumn()

    for (final Selection selection : selections)
    {
      LogicalColumn logicalColumn = selection.getLogicalColumn();
      String id = logicalColumn.getId();
      DataType dataType = logicalColumn.getDataType();
      tableModel.addColumn(id, mapDataType(dataType));
    }
    return new PmdMetaTableModel(tableModel, selections);
  }

  private Class<?> mapDataType(final DataType dataType)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.TypedTableModel.addColumn()

    {
      final TypedTableModel tableModel = new TypedTableModel();
      final int columnCount = model.getColumnCount();
      for (int col = 0; col < columnCount; col++)
      {
        tableModel.addColumn(model.getColumnName(col), model.getColumnClass(col));
      }

      final int rowCount = model.getRowCount();
      for (int r = 0; r < rowCount; r++)
      {
View Full Code Here

Examples of org.restsql.core.TableMetaData.addColumn()

          default: // Unknown
        }
      }

      // Add column to the table
      table.addColumn(column);
      column.setTableRole(table.getTableRole());

      // Add column to special column lists
      allReadColumns.add(column);
      switch (table.getTableRole()) {
View Full Code Here

Examples of org.rhq.core.db.DatabaseType.addColumn()

        PreparedStatement preparedStatement = null;
        try {
            DatabaseType db = DatabaseTypeFactory.getDatabaseType(connection);
            boolean columnExists = db.checkColumnExists(connection, "RHQ_STORAGE_NODE", "VERSION");
            if (!columnExists) {
                db.addColumn(connection, "RHQ_STORAGE_NODE", "VERSION", "VARCHAR2", "255");
                preparedStatement = connection.prepareStatement("UPDATE RHQ_STORAGE_NODE SET VERSION = ?");
                preparedStatement.setString(1, "PRE-" + version);
                preparedStatement.executeUpdate();
                db.closeStatement(preparedStatement);
                // set column not null after it's been set
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.NewsColumnViewModel.addColumn()

              @Override
              public void run() {
                if (model.contains(column))
                  model.removeColumn(column);
                else
                  model.addColumn(column);

                updateColumnsPreferences(globalPreferences, entityPreferences, model, DefaultPreferences.BM_NEWS_COLUMNS);
              }

              @Override
View Full Code Here

Examples of org.teiid.metadata.ForeignKey.addColumn()

 
  public static ForeignKey createForeignKey(String name, Table group, List<Column> elements, KeyRecord primaryKey) {
    ForeignKey key = new ForeignKey();
    key.setName(name);
    for (Column column : elements) {
      key.addColumn(column);
    }
    key.setPrimaryKey(primaryKey);
    group.getForeignKeys().add(key);
    return key;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.