Adds a table column.<p>
335125
private void addModificationDateColumn() {

        addColumn(CmsHistoryMessages.columnModificationDate(), 190, new TextColumn<CmsHistoryResourceBean>() {

            @Override
            public String getValue(CmsHistoryResourceBean historyRes) {

                return historyRes.getModificationDate().getDateText();
            }
        });
    }
100772
public void addElement(Element element) {
        if (table != null) {
            table = null;
            column.setText(null);
        }
        column.addElement(element);
    }
746934
public void addColumn(ByteBuffer name, ByteBuffer value, long timestamp) throws IOException
    {
        addColumn(new BufferCell(metadata.comparator.cellFromByteBuffer(name), value, timestamp));
    }
1051597
private static void insertToColumnList(
            List<ParsedColInfo> columnList, List<ParsedColInfo> newCols) {
        for (ParsedColInfo col : newCols) {
            if (!columnList.contains(col)) {
                columnList.add(col);
            }
        }
    }
542416
private void addColumn(String storeName, String rowKey, String colName) {
        addColumn(storeName, rowKey, colName, null);
    }
752897
public void addSimpleColumn(float left, float right) {
        ColumnDef newCol = new ColumnDef(left, right);
        columnDefs.add(newCol);
    }
727049
public void addColumnInfo(ColumnInfo columnInfo)
    {
        if (this.columnMetadatas == null)
        {
            this.columnMetadatas = new ArrayList<ColumnInfo>();
        }
        if (!columnMetadatas.contains(columnInfo) && !this.getIdColumnName().equals(columnInfo.getColumnName()))
        {
            columnMetadatas.add(columnInfo);
        }
    }
1370027
private void showColumn(TableColumn column) {
		// Ignore changes to the TableColumnModel made by the TableColumnManager

		columnModel.removeColumnModelListener(this);

		// Add the column to the end of the table

		columnModel.addColumn(column);

		// Move the column to its position before it was hidden.
		// (Multiple columns may be hidden so we need to find the first
		// visible column before this column so the column can be moved
		// to the appropriate position)

		int position = allColumns.indexOf(column);
		int from = columnModel.getColumnCount() - 1;
		int to = 0;

		for (int i = position - 1; i > -1; i--) {
			try {
				TableColumn visibleColumn = allColumns.get(i);
				to = columnModel.getColumnIndex(visibleColumn.getHeaderValue()) + 1;
				break;
			} catch (IllegalArgumentException e) {
			}
		}

		columnModel.moveColumn(from, to);

		columnModel.addColumnModelListener(this);
	}
315770
private void addSVScalar() {
        String fieldValue = m_dbObj.getFieldValue(m_fieldName);
        m_dbTran.addScalarValueColumn(m_tableDef, m_dbObj.getObjectID(), m_fieldName, fieldValue);
        addTermColumns(fieldValue);
    }
1327204
private void addNewPropertyButton(final CmsPropertyTable table) {

        Button add = CmsToolBar.createButton(
            FontOpenCms.WAND,
            CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_PROPERTY_NEW_CAPTION_0));
        add.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                final Window window = CmsBasicDialog.prepareWindow();
                window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_PROPERTY_NEW_CAPTION_0));
                window.setContent(new CmsAddPropertyDefinitionDialog(window, table));
                A_CmsUI.get().addWindow(window);
            }
        });
        m_uiContext.addToolbarButton(add);

    }
1019314
private void addTable(TableDef table)
    {
        table.setOwner(this);
        _tableDefs.put(table.getName(), table);
    }
685195
@Deprecated
  public void addColumn(String tableName, HColumnDescriptor column) throws IOException {
    addColumn(TableName.valueOf(tableName), column);
  }
921171
void addValue(String columnName, String value)
    {
        addValue(columnNames.indexOf(columnName), value);
    }
401230
private static void addTable(Connection conn, PageContext pc, String name, Query query, boolean doSimpleTypes, ArrayList<String> usedTables)
	    throws SQLException, PageException {
	Statement stat;
	usedTables.add(name);
	stat = conn.createStatement();
	Key[] keys = CollectionUtil.keys(query);
	int[] types = query.getTypes();
	int[] innerTypes = toInnerTypes(types);
	// CREATE STATEMENT
	String comma = "";
	StringBuilder create = new StringBuilder("CREATE TABLE " + name + " (");
	StringBuilder insert = new StringBuilder("INSERT INTO  " + name + " (");
	StringBuilder values = new StringBuilder("VALUES (");
	for (int i = 0; i < keys.length; i++) {
	    String key = keys[i].getString();
	    String type = (doSimpleTypes) ? "VARCHAR_IGNORECASE" : toUsableType(types[i]);

	    create.append(comma + key);
	    create.append(" ");
	    create.append(type);
	    insert.append(comma + key);
	    values.append(comma + "?");
	    comma = ",";
	}
	create.append(")");
	insert.append(")");
	values.append(")");
	stat.execute(create.toString());
	PreparedStatement prepStat = conn.prepareStatement(insert.toString() + values.toString());

	// INSERT STATEMENT
	// HashMap integerTypes=getIntegerTypes(types);

	int count = query.getRecordcount();
	QueryColumn[] columns = new QueryColumn[keys.length];
	for (int i = 0; i < keys.length; i++) {
	    columns[i] = query.getColumn(keys[i]);
	}
	for (int y = 0; y < count; y++) {
	    for (int i = 0; i < keys.length; i++) {
		int type = innerTypes[i];
		Object value = columns[i].get(y + 1, null);

		// print.out("*** "+type+":"+Caster.toString(value));
		if (doSimpleTypes) {

		    prepStat.setObject(i + 1, Caster.toString(value));
		}
		else {
		    if (value == null) prepStat.setNull(i + 1, types[i]);
		    else if (type == BINARY) prepStat.setBytes(i + 1, Caster.toBinary(value));
		    else if (type == DATE) {
			// print.out(new java.util.Date(new
			// Date(DateCaster.toDateAdvanced(value,pc.getTimeZone()).getTime()).getTime()));

			prepStat.setTimestamp(i + 1, (value.equals("")) ? null : new Timestamp(DateCaster.toDateAdvanced(query.getAt(keys[i], y + 1), pc.getTimeZone()).getTime()));
			// prepStat.setObject(i+1,Caster.toDate(value,null));
			// prepStat.setDate(i+1,(value==null || value.equals(""))?null:new
			// Date(DateCaster.toDateAdvanced(value,pc.getTimeZone()).getTime()));
		    }
		    else if (type == TIME)
			prepStat.setTime(i + 1, (value.equals("")) ? null : new Time(DateCaster.toDateAdvanced(query.getAt(keys[i], y + 1), pc.getTimeZone()).getTime()));
		    else if (type == TIMESTAMP)
			prepStat.setTimestamp(i + 1, (value.equals("")) ? null : new Timestamp(DateCaster.toDateAdvanced(query.getAt(keys[i], y + 1), pc.getTimeZone()).getTime()));
		    else if (type == DOUBLE) prepStat.setDouble(i + 1, (value.equals("")) ? 0 : Caster.toDoubleValue(query.getAt(keys[i], y + 1)));
		    else if (type == INT) prepStat.setLong(i + 1, (value.equals("")) ? 0 : Caster.toLongValue(query.getAt(keys[i], y + 1)));
		    else if (type == STRING) prepStat.setObject(i + 1, Caster.toString(value));
		}

	    }
	    prepStat.execute();
	}

    }
204075
private void addRevertColumn() {

        CmsButtonCell<CmsHistoryResourceBean> replaceCell = new CmsButtonCell<CmsHistoryResourceBean>(
            CmsHistoryMessages.titleRevert(),
            I_CmsButton.ICON_FONT + " " + I_CmsButton.RESET,
            new ActionCell.Delegate<CmsHistoryResourceBean>() {

                @SuppressWarnings("synthetic-access")
                public void execute(CmsHistoryResourceBean historyRes) {

                    m_handler.revert(historyRes);
                }
            },
            new Predicate<CmsHistoryResourceBean>() {

                public boolean apply(CmsHistoryResourceBean bean) {

                    return bean.getVersion().getVersionNumber() != null;

                }
            });
        addColumn(CmsHistoryMessages.columnReplace(), 30, new IdentityColumn<CmsHistoryResourceBean>(replaceCell));
    }
881706
public void newColumns()
    {
        column = new Table(0);
        columns = 1;
        table.newRow();
        table.addCell(column);
        table.cell().top();
    }
435004
public void addColumn(String tableName, String columnName, String columnDef) {
		execSQL("ALTER TABLE " + CoreSQLUtils.quoteWrap(tableName)
				+ " ADD COLUMN " + CoreSQLUtils.quoteWrap(columnName) + " "
				+ columnDef + ";");
	}