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 RemoveColumn extends ColumnCommand 33 { 34 static final long serialVersionUID =2845249943586553892L; 35 38 public TableColumn removeColumn(String name) 39 throws ClassNotFoundException , IllegalAccessException , InstantiationException 40 { 41 return specifyColumn(TableColumn.COLUMN, name, Specification.REMOVE_COLUMN); 42 } 43 44 47 public TableColumn removeUniqueColumn(String name) 48 throws ClassNotFoundException , IllegalAccessException , InstantiationException 49 { 50 TableColumn col = specifyColumn(TableColumn.UNIQUE, name, Specification.REMOVE_COLUMN); 51 return col; 52 } 53 54 57 public TableColumn removePrimaryKeyColumn(String name) 58 throws ClassNotFoundException , IllegalAccessException , InstantiationException 59 { 60 TableColumn col = specifyColumn(TableColumn.PRIMARY_KEY, name, Specification.REMOVE_COLUMN); 61 return col; 62 } 63 64 67 public TableColumn removeForeignKeyColumn(String name) 68 throws ClassNotFoundException , IllegalAccessException , InstantiationException 69 { 70 TableColumn col = specifyColumn(TableColumn.FOREIGN_KEY, name, Specification.REMOVE_COLUMN); 71 return col; 72 } 73 74 77 public TableColumn removeCheckColumn(String name) 78 throws ClassNotFoundException , IllegalAccessException , InstantiationException 79 { 80 TableColumn col = specifyColumn(TableColumn.CHECK, name, Specification.REMOVE_COLUMN); 81 return col; 82 } 83 } 84 85 94 | Popular Tags |