public void addPartitionColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.partitionColumns.add(column); }
public void addPartitionColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.partitionColumns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
public void addColumn(SQLColumnDefinition column) { column.setParent(this); this.columns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
public SQLRecordDataType clone() { SQLRecordDataType x = new SQLRecordDataType(); cloneTo(x); for (SQLColumnDefinition c : columns) { SQLColumnDefinition c2 = c.clone(); c2.setParent(x); x.columns.add(c2); } return x; }
public void cloneTo(MySqlSubPartitionByList x) { super.cloneTo(x); if (expr != null) { x.setExpr(expr.clone()); } for (SQLColumnDefinition column : columns) { SQLColumnDefinition c2 = column.clone(); c2.setParent(x); x.columns.add(c2); } }
private boolean apply(SQLAlterTableAddColumn item) { int startIndex = tableElementList.size(); if (item.isFirst()) { startIndex = 0; } int afterIndex = columnIndexOf(item.getAfterColumn()); if (afterIndex != -1) { startIndex = afterIndex + 1; } int beforeIndex = columnIndexOf(item.getFirstColumn()); if (beforeIndex != -1) { startIndex = beforeIndex; } for (int i = 0; i < item.getColumns().size(); i++) { SQLColumnDefinition column = item.getColumns().get(i); tableElementList.add(i + startIndex, column); column.setParent(this); } return true; }
public boolean apply(MySqlAlterTableModifyColumn item) { SQLColumnDefinition column = item.getNewColumnDefinition().clone(); SQLName columnName = column.getName(); int columnIndex = columnIndexOf(columnName); if (columnIndex == -1) { return false; } int afterIndex = columnIndexOf(item.getAfterColumn()); int beforeIndex = columnIndexOf(item.getFirstColumn()); int insertIndex = -1; if (beforeIndex != -1) { insertIndex = beforeIndex; } else if (afterIndex != -1) { insertIndex = afterIndex + 1; } column.setParent(this); if (insertIndex == -1 || insertIndex == columnIndex) { tableElementList.set(columnIndex, column); return true; } else { if (insertIndex > columnIndex) { tableElementList.add(insertIndex, column); tableElementList.remove(columnIndex); } else { tableElementList.remove(columnIndex); tableElementList.add(insertIndex, column); } } return true; }
column.setParent(this); if (insertIndex == -1 || insertIndex == columnIndex) { tableElementList.set(columnIndex, column);
public void addPartitionColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.partitionColumns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
public void addPartitionColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.partitionColumns.add(column); }
public void addColumn(SQLColumnDefinition column) { if (column != null) { column.setParent(this); } this.columns.add(column); }
column.setParent(createView); createView.addColumn(column);
column.setParent(createView); createView.addColumn(column);
public SQLRecordDataType clone() { SQLRecordDataType x = new SQLRecordDataType(); cloneTo(x); for (SQLColumnDefinition c : columns) { SQLColumnDefinition c2 = c.clone(); c2.setParent(x); x.columns.add(c2); } return x; }
public void cloneTo(MySqlSubPartitionByList x) { super.cloneTo(x); if (expr != null) { x.setExpr(expr.clone()); } for (SQLColumnDefinition column : columns) { SQLColumnDefinition c2 = column.clone(); c2.setParent(x); x.columns.add(c2); } }