use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class OrderingTermImpl method setExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
if (newExpression != expression) {
NotificationChain msgs = null;
if (expression != null)
msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.ORDERING_TERM__EXPRESSION, null, msgs);
if (newExpression != null)
msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.ORDERING_TERM__EXPRESSION, null, msgs);
msgs = basicSetExpression(newExpression, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.ORDERING_TERM__EXPRESSION, newExpression, newExpression));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class PrimaryConstraintImpl method setConflictClause.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setConflictClause(ConflictClause newConflictClause) {
if (newConflictClause != conflictClause) {
NotificationChain msgs = null;
if (conflictClause != null)
msgs = ((InternalEObject) conflictClause).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.PRIMARY_CONSTRAINT__CONFLICT_CLAUSE, null, msgs);
if (newConflictClause != null)
msgs = ((InternalEObject) newConflictClause).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.PRIMARY_CONSTRAINT__CONFLICT_CLAUSE, null, msgs);
msgs = basicSetConflictClause(newConflictClause, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.PRIMARY_CONSTRAINT__CONFLICT_CLAUSE, newConflictClause, newConflictClause));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class SelectCoreImpl method setLeft.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLeft(SelectCoreExpression newLeft) {
if (newLeft != left) {
NotificationChain msgs = null;
if (left != null)
msgs = ((InternalEObject) left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_CORE__LEFT, null, msgs);
if (newLeft != null)
msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_CORE__LEFT, null, msgs);
msgs = basicSetLeft(newLeft, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_CORE__LEFT, newLeft, newLeft));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class DefaultConstraintImpl method setDefaultValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDefaultValue(DefaultValue newDefaultValue) {
if (newDefaultValue != defaultValue) {
NotificationChain msgs = null;
if (defaultValue != null)
msgs = ((InternalEObject) defaultValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DEFAULT_CONSTRAINT__DEFAULT_VALUE, null, msgs);
if (newDefaultValue != null)
msgs = ((InternalEObject) newDefaultValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DEFAULT_CONSTRAINT__DEFAULT_VALUE, null, msgs);
msgs = basicSetDefaultValue(newDefaultValue, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.DEFAULT_CONSTRAINT__DEFAULT_VALUE, newDefaultValue, newDefaultValue));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class DeleteStatementImpl method setExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
if (newExpression != expression) {
NotificationChain msgs = null;
if (expression != null)
msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DELETE_STATEMENT__EXPRESSION, null, msgs);
if (newExpression != null)
msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DELETE_STATEMENT__EXPRESSION, null, msgs);
msgs = basicSetExpression(newExpression, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.DELETE_STATEMENT__EXPRESSION, newExpression, newExpression));
}
Aggregations