/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case MediatorsPackage.SQL_RESULT_MAPPING__PROPERTY_NAME:
       setPropertyName((String) newValue);
       return;
     case MediatorsPackage.SQL_RESULT_MAPPING__COLUMN_ID:
       setColumnId((String) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case MediatorsPackage.SQL_RESULT_MAPPING__PROPERTY_NAME:
       setPropertyName(PROPERTY_NAME_EDEFAULT);
       return;
     case MediatorsPackage.SQL_RESULT_MAPPING__COLUMN_ID:
       setColumnId(COLUMN_ID_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
  /** {@inheritDoc} */
  protected void doLoad(Element self) throws Exception {
    // Property name.
    if (self.hasAttribute("name")) {
      setPropertyName(self.getAttribute("name"));
    } else {
      throw new Exception("Expected result name attribute.");
    }

    // Column.
    if (self.hasAttribute("column")) {
      setColumnId(self.getAttribute("column"));
    } else {
      throw new Exception("Expected result column attribute.");
    }
    super.doLoad(self);
  }