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

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

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

import de.opitzconsulting.orcasDsl.CharType;
import de.opitzconsulting.orcasDsl.ColumnDomain;
import de.opitzconsulting.orcasDsl.ColumnIdentity;
import de.opitzconsulting.orcasDsl.DataType;
import de.opitzconsulting.orcasDsl.GenerateCc;
import de.opitzconsulting.orcasDsl.GenerateFk;
import de.opitzconsulting.orcasDsl.GenerateIndex;
import de.opitzconsulting.orcasDsl.GeneratePk;
import de.opitzconsulting.orcasDsl.GenerateUk;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;

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

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

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

/**
 * 
 * An implementation of the model object 'Column Domain'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getName Name}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getGeneratePk Generate Pk}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getGenerateUk Generate Uk}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getGenerateIndex Generate Index}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getGenerateCc Generate Cc}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getGenerateFk Generate Fk}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getData_type Data type}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getPrecision Precision}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getScale Scale}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getByteorchar Byteorchar}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#isUnsigned Unsigned}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getDefault_value Default value}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#getIdentity Identity}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.ColumnDomainImpl#isNotnull Notnull}
  • *
* * @generated */ public class ColumnDomainImpl extends ModelElementImpl implements ColumnDomain { /** * The default value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ public static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ public String name = NAME_EDEFAULT; /** * The cached value of the '{@link #getGeneratePk() Generate Pk}' containment reference. * * * @see #getGeneratePk() * @generated * @ordered */ public GeneratePk generatePk; /** * The cached value of the '{@link #getGenerateUk() Generate Uk}' containment reference. * * * @see #getGenerateUk() * @generated * @ordered */ public GenerateUk generateUk; /** * The cached value of the '{@link #getGenerateIndex() Generate Index}' containment reference. * * * @see #getGenerateIndex() * @generated * @ordered */ public GenerateIndex generateIndex; /** * The cached value of the '{@link #getGenerateCc() Generate Cc}' containment reference. * * * @see #getGenerateCc() * @generated * @ordered */ public GenerateCc generateCc; /** * The cached value of the '{@link #getGenerateFk() Generate Fk}' containment reference. * * * @see #getGenerateFk() * @generated * @ordered */ public GenerateFk generateFk; /** * The default value of the '{@link #getData_type() Data type}' attribute. * * * @see #getData_type() * @generated * @ordered */ public static final DataType DATA_TYPE_EDEFAULT = null; /** * The cached value of the '{@link #getData_type() Data type}' attribute. * * * @see #getData_type() * @generated * @ordered */ public DataType data_type = DATA_TYPE_EDEFAULT; /** * The default value of the '{@link #getPrecision() Precision}' attribute. * * * @see #getPrecision() * @generated * @ordered */ public static final int PRECISION_EDEFAULT = 0; /** * The cached value of the '{@link #getPrecision() Precision}' attribute. * * * @see #getPrecision() * @generated * @ordered */ public int precision = PRECISION_EDEFAULT; /** * The default value of the '{@link #getScale() Scale}' attribute. * * * @see #getScale() * @generated * @ordered */ public static final int SCALE_EDEFAULT = 0; /** * The cached value of the '{@link #getScale() Scale}' attribute. * * * @see #getScale() * @generated * @ordered */ public int scale = SCALE_EDEFAULT; /** * The default value of the '{@link #getByteorchar() Byteorchar}' attribute. * * * @see #getByteorchar() * @generated * @ordered */ public static final CharType BYTEORCHAR_EDEFAULT = null; /** * The cached value of the '{@link #getByteorchar() Byteorchar}' attribute. * * * @see #getByteorchar() * @generated * @ordered */ public CharType byteorchar = BYTEORCHAR_EDEFAULT; /** * The default value of the '{@link #isUnsigned() Unsigned}' attribute. * * * @see #isUnsigned() * @generated * @ordered */ public static final boolean UNSIGNED_EDEFAULT = false; /** * The cached value of the '{@link #isUnsigned() Unsigned}' attribute. * * * @see #isUnsigned() * @generated * @ordered */ public boolean unsigned = UNSIGNED_EDEFAULT; /** * The default value of the '{@link #getDefault_value() Default value}' attribute. * * * @see #getDefault_value() * @generated * @ordered */ public static final String DEFAULT_VALUE_EDEFAULT = null; /** * The cached value of the '{@link #getDefault_value() Default value}' attribute. * * * @see #getDefault_value() * @generated * @ordered */ public String default_value = DEFAULT_VALUE_EDEFAULT; /** * The cached value of the '{@link #getIdentity() Identity}' containment reference. * * * @see #getIdentity() * @generated * @ordered */ public ColumnIdentity identity; /** * The default value of the '{@link #isNotnull() Notnull}' attribute. * * * @see #isNotnull() * @generated * @ordered */ public static final boolean NOTNULL_EDEFAULT = false; /** * The cached value of the '{@link #isNotnull() Notnull}' attribute. * * * @see #isNotnull() * @generated * @ordered */ public boolean notnull = NOTNULL_EDEFAULT; /** * * * @generated */ public ColumnDomainImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.COLUMN_DOMAIN; } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__NAME, oldName, name)); } /** * * * @generated */ public GeneratePk getGeneratePk() { return generatePk; } /** * * * @generated */ public NotificationChain basicSetGeneratePk(GeneratePk newGeneratePk, NotificationChain msgs) { GeneratePk oldGeneratePk = generatePk; generatePk = newGeneratePk; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK, oldGeneratePk, newGeneratePk); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setGeneratePk(GeneratePk newGeneratePk) { if (newGeneratePk != generatePk) { NotificationChain msgs = null; if (generatePk != null) msgs = ((InternalEObject)generatePk).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK, null, msgs); if (newGeneratePk != null) msgs = ((InternalEObject)newGeneratePk).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK, null, msgs); msgs = basicSetGeneratePk(newGeneratePk, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK, newGeneratePk, newGeneratePk)); } /** * * * @generated */ public GenerateUk getGenerateUk() { return generateUk; } /** * * * @generated */ public NotificationChain basicSetGenerateUk(GenerateUk newGenerateUk, NotificationChain msgs) { GenerateUk oldGenerateUk = generateUk; generateUk = newGenerateUk; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK, oldGenerateUk, newGenerateUk); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setGenerateUk(GenerateUk newGenerateUk) { if (newGenerateUk != generateUk) { NotificationChain msgs = null; if (generateUk != null) msgs = ((InternalEObject)generateUk).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK, null, msgs); if (newGenerateUk != null) msgs = ((InternalEObject)newGenerateUk).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK, null, msgs); msgs = basicSetGenerateUk(newGenerateUk, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK, newGenerateUk, newGenerateUk)); } /** * * * @generated */ public GenerateIndex getGenerateIndex() { return generateIndex; } /** * * * @generated */ public NotificationChain basicSetGenerateIndex(GenerateIndex newGenerateIndex, NotificationChain msgs) { GenerateIndex oldGenerateIndex = generateIndex; generateIndex = newGenerateIndex; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX, oldGenerateIndex, newGenerateIndex); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setGenerateIndex(GenerateIndex newGenerateIndex) { if (newGenerateIndex != generateIndex) { NotificationChain msgs = null; if (generateIndex != null) msgs = ((InternalEObject)generateIndex).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX, null, msgs); if (newGenerateIndex != null) msgs = ((InternalEObject)newGenerateIndex).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX, null, msgs); msgs = basicSetGenerateIndex(newGenerateIndex, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX, newGenerateIndex, newGenerateIndex)); } /** * * * @generated */ public GenerateCc getGenerateCc() { return generateCc; } /** * * * @generated */ public NotificationChain basicSetGenerateCc(GenerateCc newGenerateCc, NotificationChain msgs) { GenerateCc oldGenerateCc = generateCc; generateCc = newGenerateCc; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC, oldGenerateCc, newGenerateCc); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setGenerateCc(GenerateCc newGenerateCc) { if (newGenerateCc != generateCc) { NotificationChain msgs = null; if (generateCc != null) msgs = ((InternalEObject)generateCc).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC, null, msgs); if (newGenerateCc != null) msgs = ((InternalEObject)newGenerateCc).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC, null, msgs); msgs = basicSetGenerateCc(newGenerateCc, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC, newGenerateCc, newGenerateCc)); } /** * * * @generated */ public GenerateFk getGenerateFk() { return generateFk; } /** * * * @generated */ public NotificationChain basicSetGenerateFk(GenerateFk newGenerateFk, NotificationChain msgs) { GenerateFk oldGenerateFk = generateFk; generateFk = newGenerateFk; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK, oldGenerateFk, newGenerateFk); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setGenerateFk(GenerateFk newGenerateFk) { if (newGenerateFk != generateFk) { NotificationChain msgs = null; if (generateFk != null) msgs = ((InternalEObject)generateFk).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK, null, msgs); if (newGenerateFk != null) msgs = ((InternalEObject)newGenerateFk).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK, null, msgs); msgs = basicSetGenerateFk(newGenerateFk, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK, newGenerateFk, newGenerateFk)); } /** * * * @generated */ public DataType getData_type() { return data_type; } /** * * * @generated */ public void setData_type(DataType newData_type) { DataType oldData_type = data_type; data_type = newData_type == null ? DATA_TYPE_EDEFAULT : newData_type; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__DATA_TYPE, oldData_type, data_type)); } /** * * * @generated */ public int getPrecision() { return precision; } /** * * * @generated */ public void setPrecision(int newPrecision) { int oldPrecision = precision; precision = newPrecision; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__PRECISION, oldPrecision, precision)); } /** * * * @generated */ public int getScale() { return scale; } /** * * * @generated */ public void setScale(int newScale) { int oldScale = scale; scale = newScale; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__SCALE, oldScale, scale)); } /** * * * @generated */ public CharType getByteorchar() { return byteorchar; } /** * * * @generated */ public void setByteorchar(CharType newByteorchar) { CharType oldByteorchar = byteorchar; byteorchar = newByteorchar == null ? BYTEORCHAR_EDEFAULT : newByteorchar; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__BYTEORCHAR, oldByteorchar, byteorchar)); } /** * * * @generated */ public boolean isUnsigned() { return unsigned; } /** * * * @generated */ public void setUnsigned(boolean newUnsigned) { boolean oldUnsigned = unsigned; unsigned = newUnsigned; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__UNSIGNED, oldUnsigned, unsigned)); } /** * * * @generated */ public String getDefault_value() { return default_value; } /** * * * @generated */ public void setDefault_value(String newDefault_value) { String oldDefault_value = default_value; default_value = newDefault_value; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__DEFAULT_VALUE, oldDefault_value, default_value)); } /** * * * @generated */ public ColumnIdentity getIdentity() { return identity; } /** * * * @generated */ public NotificationChain basicSetIdentity(ColumnIdentity newIdentity, NotificationChain msgs) { ColumnIdentity oldIdentity = identity; identity = newIdentity; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__IDENTITY, oldIdentity, newIdentity); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setIdentity(ColumnIdentity newIdentity) { if (newIdentity != identity) { NotificationChain msgs = null; if (identity != null) msgs = ((InternalEObject)identity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__IDENTITY, null, msgs); if (newIdentity != null) msgs = ((InternalEObject)newIdentity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.COLUMN_DOMAIN__IDENTITY, null, msgs); msgs = basicSetIdentity(newIdentity, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__IDENTITY, newIdentity, newIdentity)); } /** * * * @generated */ public boolean isNotnull() { return notnull; } /** * * * @generated */ public void setNotnull(boolean newNotnull) { boolean oldNotnull = notnull; notnull = newNotnull; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COLUMN_DOMAIN__NOTNULL, oldNotnull, notnull)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK: return basicSetGeneratePk(null, msgs); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK: return basicSetGenerateUk(null, msgs); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX: return basicSetGenerateIndex(null, msgs); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC: return basicSetGenerateCc(null, msgs); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK: return basicSetGenerateFk(null, msgs); case OrcasDslPackage.COLUMN_DOMAIN__IDENTITY: return basicSetIdentity(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.COLUMN_DOMAIN__NAME: return getName(); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK: return getGeneratePk(); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK: return getGenerateUk(); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX: return getGenerateIndex(); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC: return getGenerateCc(); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK: return getGenerateFk(); case OrcasDslPackage.COLUMN_DOMAIN__DATA_TYPE: return getData_type(); case OrcasDslPackage.COLUMN_DOMAIN__PRECISION: return getPrecision(); case OrcasDslPackage.COLUMN_DOMAIN__SCALE: return getScale(); case OrcasDslPackage.COLUMN_DOMAIN__BYTEORCHAR: return getByteorchar(); case OrcasDslPackage.COLUMN_DOMAIN__UNSIGNED: return isUnsigned(); case OrcasDslPackage.COLUMN_DOMAIN__DEFAULT_VALUE: return getDefault_value(); case OrcasDslPackage.COLUMN_DOMAIN__IDENTITY: return getIdentity(); case OrcasDslPackage.COLUMN_DOMAIN__NOTNULL: return isNotnull(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.COLUMN_DOMAIN__NAME: setName((String)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK: setGeneratePk((GeneratePk)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK: setGenerateUk((GenerateUk)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX: setGenerateIndex((GenerateIndex)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC: setGenerateCc((GenerateCc)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK: setGenerateFk((GenerateFk)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__DATA_TYPE: setData_type((DataType)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__PRECISION: setPrecision((Integer)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__SCALE: setScale((Integer)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__BYTEORCHAR: setByteorchar((CharType)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__UNSIGNED: setUnsigned((Boolean)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__DEFAULT_VALUE: setDefault_value((String)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__IDENTITY: setIdentity((ColumnIdentity)newValue); return; case OrcasDslPackage.COLUMN_DOMAIN__NOTNULL: setNotnull((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.COLUMN_DOMAIN__NAME: setName(NAME_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK: setGeneratePk((GeneratePk)null); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK: setGenerateUk((GenerateUk)null); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX: setGenerateIndex((GenerateIndex)null); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC: setGenerateCc((GenerateCc)null); return; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK: setGenerateFk((GenerateFk)null); return; case OrcasDslPackage.COLUMN_DOMAIN__DATA_TYPE: setData_type(DATA_TYPE_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__PRECISION: setPrecision(PRECISION_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__SCALE: setScale(SCALE_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__BYTEORCHAR: setByteorchar(BYTEORCHAR_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__UNSIGNED: setUnsigned(UNSIGNED_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__DEFAULT_VALUE: setDefault_value(DEFAULT_VALUE_EDEFAULT); return; case OrcasDslPackage.COLUMN_DOMAIN__IDENTITY: setIdentity((ColumnIdentity)null); return; case OrcasDslPackage.COLUMN_DOMAIN__NOTNULL: setNotnull(NOTNULL_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.COLUMN_DOMAIN__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_PK: return generatePk != null; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_UK: return generateUk != null; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_INDEX: return generateIndex != null; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_CC: return generateCc != null; case OrcasDslPackage.COLUMN_DOMAIN__GENERATE_FK: return generateFk != null; case OrcasDslPackage.COLUMN_DOMAIN__DATA_TYPE: return data_type != DATA_TYPE_EDEFAULT; case OrcasDslPackage.COLUMN_DOMAIN__PRECISION: return precision != PRECISION_EDEFAULT; case OrcasDslPackage.COLUMN_DOMAIN__SCALE: return scale != SCALE_EDEFAULT; case OrcasDslPackage.COLUMN_DOMAIN__BYTEORCHAR: return byteorchar != BYTEORCHAR_EDEFAULT; case OrcasDslPackage.COLUMN_DOMAIN__UNSIGNED: return unsigned != UNSIGNED_EDEFAULT; case OrcasDslPackage.COLUMN_DOMAIN__DEFAULT_VALUE: return DEFAULT_VALUE_EDEFAULT == null ? default_value != null : !DEFAULT_VALUE_EDEFAULT.equals(default_value); case OrcasDslPackage.COLUMN_DOMAIN__IDENTITY: return identity != null; case OrcasDslPackage.COLUMN_DOMAIN__NOTNULL: return notnull != NOTNULL_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(", data_type: "); result.append(data_type); result.append(", precision: "); result.append(precision); result.append(", scale: "); result.append(scale); result.append(", byteorchar: "); result.append(byteorchar); result.append(", unsigned: "); result.append(unsigned); result.append(", default_value: "); result.append(default_value); result.append(", notnull: "); result.append(notnull); result.append(')'); return result.toString(); } } //ColumnDomainImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy