107108109110111112113114115116117
table.addIndex(i); } fillIndex(i, field);*/ } table.addColumn(column); } else { List<Field> keys = ClassInfo.getClassInfo(type).keys; for (int i = 0; i < columns.length; i++) { Field f = keys.get(i);
118119120121122123124125126127128
Column column = createColumn(clazz, f, columns[i]); if(notNull) column.setRequired(true); table.addColumn(column); } } } /* indexes */
128129130131132133134135136137138
if ((_previousColumn != null) && (_nextColumn != null)) { int idx = table.getColumnIndex(_previousColumn) + 1; table.addColumn(idx, newColumn); } else { table.addColumn(newColumn); }
132133134135136137138139140
table.addColumn(idx, newColumn); } else { table.addColumn(newColumn); } } }
10391040104110421043104410451046104710481049
table.setType(targetTable.getType()); for (int idx = 0; idx < targetTable.getColumnCount(); idx++) { try { table.addColumn((Column)targetTable.getColumn(idx).clone()); } catch (CloneNotSupportedException ex) { throw new DdlUtilsException(ex); }
10961097109810991100110111021103110411051106