1 19 20 package org.netbeans.lib.ddl.impl; 21 22 import java.util.*; 23 import org.netbeans.lib.ddl.*; 24 import org.netbeans.lib.ddl.impl.*; 25 26 31 32 public class RenameColumn extends ColumnCommand 33 { 34 35 private String newname; 36 37 static final long serialVersionUID =7150074600789999024L; 38 41 public TableColumn renameColumn(String name, String nname) 42 throws ClassNotFoundException , IllegalAccessException , InstantiationException 43 { 44 newname = nname; 45 return specifyColumn(TableColumn.COLUMN, name, Specification.RENAME_COLUMN); 46 } 47 48 51 public Map getCommandProperties() 52 throws DDLException 53 { 54 Map args = super.getCommandProperties(); 55 args.put("column.newname", newname); return args; 57 } 58 } 59 60 69 | Popular Tags |