/** * Remove the given index from the list. * * @param index the index to remove */ public void removeIndex(Index index) { ArrayList<Index> indexes = getIndexes(); if (indexes != null) { remove(indexes, index); if (index.getIndexType().isPrimaryKey()) { for (Column col : index.getColumns()) { col.setPrimaryKey(false); } } } }
/** * Remove the given trigger from the list. * * @param trigger the trigger to remove */ public void removeTrigger(TriggerObject trigger) { remove(triggers, trigger); }
/** * Remove a sequence from the table. Sequences are used as identity columns. * * @param session the session * @param sequence the sequence to remove */ public void removeSequence(Sequence sequence) { remove(sequences, sequence); }
/** * Remove the given constraint from the list. * * @param constraint the constraint to remove */ public void removeConstraint(Constraint constraint) { remove(constraints, constraint); }
/** * Remove the given view from the list. * * @param view the view to remove */ public void removeView(TableView view) { remove(views, view); }