예제 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case DatabasePackage.COLUMN__NULLABLE:
       setNullable(NULLABLE_EDEFAULT);
       return;
     case DatabasePackage.COLUMN__DEFAULT_VALUE:
       setDefaultValue(DEFAULT_VALUE_EDEFAULT);
       return;
     case DatabasePackage.COLUMN__INDEX_ELEMENTS:
       getIndexElements().clear();
       return;
     case DatabasePackage.COLUMN__PRIMARY_KEY:
       setPrimaryKey((PrimaryKey) null);
       return;
     case DatabasePackage.COLUMN__FOREIGN_KEY_ELEMENTS:
       getForeignKeyElements().clear();
       return;
     case DatabasePackage.COLUMN__TYPE:
       setType((Type) null);
       return;
     case DatabasePackage.COLUMN__SEQUENCE:
       setSequence((Sequence) null);
       return;
     case DatabasePackage.COLUMN__OWNER:
       setOwner((AbstractTable) null);
       return;
     case DatabasePackage.COLUMN__AUTOINCREMENT:
       setAutoincrement(AUTOINCREMENT_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
예제 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case DatabasePackage.COLUMN__NULLABLE:
       setNullable((Boolean) newValue);
       return;
     case DatabasePackage.COLUMN__DEFAULT_VALUE:
       setDefaultValue((String) newValue);
       return;
     case DatabasePackage.COLUMN__INDEX_ELEMENTS:
       getIndexElements().clear();
       getIndexElements().addAll((Collection<? extends IndexElement>) newValue);
       return;
     case DatabasePackage.COLUMN__PRIMARY_KEY:
       setPrimaryKey((PrimaryKey) newValue);
       return;
     case DatabasePackage.COLUMN__FOREIGN_KEY_ELEMENTS:
       getForeignKeyElements().clear();
       getForeignKeyElements().addAll((Collection<? extends ForeignKeyElement>) newValue);
       return;
     case DatabasePackage.COLUMN__TYPE:
       setType((Type) newValue);
       return;
     case DatabasePackage.COLUMN__SEQUENCE:
       setSequence((Sequence) newValue);
       return;
     case DatabasePackage.COLUMN__OWNER:
       setOwner((AbstractTable) newValue);
       return;
     case DatabasePackage.COLUMN__AUTOINCREMENT:
       setAutoincrement((Boolean) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }