Пример #1
0
 /**
  * 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);
       }
     }
   }
 }
Пример #2
0
 /**
  * Remove the given trigger from the list.
  *
  * @param trigger the trigger to remove
  */
 public void removeTrigger(TriggerObject trigger) {
   remove(triggers, trigger);
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /**
  * Remove the given constraint from the list.
  *
  * @param constraint the constraint to remove
  */
 public void removeConstraint(Constraint constraint) {
   remove(constraints, constraint);
 }
Пример #5
0
 /**
  * Remove the given view from the list.
  *
  * @param view the view to remove
  */
 public void removeView(TableView view) {
   remove(views, view);
 }