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