All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.opitzconsulting.orcasDsl.impl.IndexOrUniqueKeyImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.IndexOrUniqueKey;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

/**
 * 
 * An implementation of the model object 'Index Or Unique Key'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.IndexOrUniqueKeyImpl#getConsName Cons Name}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.IndexOrUniqueKeyImpl#getTablespace Tablespace}
  • *
* * @generated */ public class IndexOrUniqueKeyImpl extends MinimalEObjectImpl.Container implements IndexOrUniqueKey { /** * The default value of the '{@link #getConsName() Cons Name}' attribute. * * * @see #getConsName() * @generated * @ordered */ public static final String CONS_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getConsName() Cons Name}' attribute. * * * @see #getConsName() * @generated * @ordered */ public String consName = CONS_NAME_EDEFAULT; /** * The default value of the '{@link #getTablespace() Tablespace}' attribute. * * * @see #getTablespace() * @generated * @ordered */ public static final String TABLESPACE_EDEFAULT = null; /** * The cached value of the '{@link #getTablespace() Tablespace}' attribute. * * * @see #getTablespace() * @generated * @ordered */ public String tablespace = TABLESPACE_EDEFAULT; /** * * * @generated */ public IndexOrUniqueKeyImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.INDEX_OR_UNIQUE_KEY; } /** * * * @generated */ public String getConsName() { return consName; } /** * * * @generated */ public void setConsName(String newConsName) { String oldConsName = consName; consName = newConsName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.INDEX_OR_UNIQUE_KEY__CONS_NAME, oldConsName, consName)); } /** * * * @generated */ public String getTablespace() { return tablespace; } /** * * * @generated */ public void setTablespace(String newTablespace) { String oldTablespace = tablespace; tablespace = newTablespace; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.INDEX_OR_UNIQUE_KEY__TABLESPACE, oldTablespace, tablespace)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__CONS_NAME: return getConsName(); case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__TABLESPACE: return getTablespace(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__CONS_NAME: setConsName((String)newValue); return; case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__TABLESPACE: setTablespace((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__CONS_NAME: setConsName(CONS_NAME_EDEFAULT); return; case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__TABLESPACE: setTablespace(TABLESPACE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__CONS_NAME: return CONS_NAME_EDEFAULT == null ? consName != null : !CONS_NAME_EDEFAULT.equals(consName); case OrcasDslPackage.INDEX_OR_UNIQUE_KEY__TABLESPACE: return TABLESPACE_EDEFAULT == null ? tablespace != null : !TABLESPACE_EDEFAULT.equals(tablespace); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (consName: "); result.append(consName); result.append(", tablespace: "); result.append(tablespace); result.append(')'); return result.toString(); } } //IndexOrUniqueKeyImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy