/** * * * * $Id: BatchSizeImpl.java,v 1.3 2010/02/04 11:03:42 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.hbannotation.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.teneo.hibernate.hbannotation.BatchSize; import org.eclipse.emf.teneo.hibernate.hbannotation.HbannotationPackage; /** * An implementation of the model object ' Batch Size'. *

* The following features are implemented: *

*

* * @generated */ public class BatchSizeImpl extends HbAnnotationImpl implements BatchSize { /** * The default value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected static final int SIZE_EDEFAULT = 0; /** * The cached value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected int size = SIZE_EDEFAULT; /** * * * @generated */ protected BatchSizeImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return HbannotationPackage.Literals.BATCH_SIZE; } /** * * * @generated */ public int getSize() { return size; } /** * * * @generated */ public void setSize(int newSize) { int oldSize = size; size = newSize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, HbannotationPackage.BATCH_SIZE__SIZE, oldSize, size)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case HbannotationPackage.BATCH_SIZE__SIZE: return getSize(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case HbannotationPackage.BATCH_SIZE__SIZE: setSize((Integer) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case HbannotationPackage.BATCH_SIZE__SIZE: setSize(SIZE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case HbannotationPackage.BATCH_SIZE__SIZE: return size != SIZE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (size: "); result.append(size); result.append(')'); return result.toString(); } } // BatchSizeImpl