Search in sources :

Example 26 with Expression

use of com.robotoworks.mechanoid.db.sqliteModel.Expression in project mechanoid by robotoworks.

the class CaseExpressionImpl method basicSetElseExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetElseExpression(Expression newElseExpression, NotificationChain msgs) {
    Expression oldElseExpression = elseExpression;
    elseExpression = newElseExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CASE_EXPRESSION__ELSE_EXPRESSION, oldElseExpression, newElseExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : CaseExpression(com.robotoworks.mechanoid.db.sqliteModel.CaseExpression) Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 27 with Expression

use of com.robotoworks.mechanoid.db.sqliteModel.Expression in project mechanoid by robotoworks.

the class CaseExpressionImpl method basicSetCaseExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetCaseExpression(Expression newCaseExpression, NotificationChain msgs) {
    Expression oldCaseExpression = caseExpression;
    caseExpression = newCaseExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CASE_EXPRESSION__CASE_EXPRESSION, oldCaseExpression, newCaseExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : CaseExpression(com.robotoworks.mechanoid.db.sqliteModel.CaseExpression) Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 28 with Expression

use of com.robotoworks.mechanoid.db.sqliteModel.Expression in project mechanoid by robotoworks.

the class UpdateStatementImpl method basicSetWhereExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetWhereExpression(Expression newWhereExpression, NotificationChain msgs) {
    Expression oldWhereExpression = whereExpression;
    whereExpression = newWhereExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.UPDATE_STATEMENT__WHERE_EXPRESSION, oldWhereExpression, newWhereExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : UpdateColumnExpression(com.robotoworks.mechanoid.db.sqliteModel.UpdateColumnExpression) Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 29 with Expression

use of com.robotoworks.mechanoid.db.sqliteModel.Expression in project mechanoid by robotoworks.

the class WhereExpressionsImpl method basicSetExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.WHERE_EXPRESSIONS__EXPRESSION, oldExpression, newExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 30 with Expression

use of com.robotoworks.mechanoid.db.sqliteModel.Expression in project mechanoid by robotoworks.

the class NullCheckExpressionImpl method basicSetRight.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) {
    Expression oldRight = right;
    right = newRight;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.NULL_CHECK_EXPRESSION__RIGHT, oldRight, newRight);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) NullCheckExpression(com.robotoworks.mechanoid.db.sqliteModel.NullCheckExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Expression (com.robotoworks.mechanoid.db.sqliteModel.Expression)39 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)38 SelectCoreExpression (com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression)3 CaseExpression (com.robotoworks.mechanoid.db.sqliteModel.CaseExpression)2 CastExpression (com.robotoworks.mechanoid.db.sqliteModel.CastExpression)2 NullCheckExpression (com.robotoworks.mechanoid.db.sqliteModel.NullCheckExpression)2 UpdateColumnExpression (com.robotoworks.mechanoid.db.sqliteModel.UpdateColumnExpression)2 ColumnDef (com.robotoworks.mechanoid.db.sqliteModel.ColumnDef)1 ColumnSource (com.robotoworks.mechanoid.db.sqliteModel.ColumnSource)1 ColumnSourceRef (com.robotoworks.mechanoid.db.sqliteModel.ColumnSourceRef)1 ColumnType (com.robotoworks.mechanoid.db.sqliteModel.ColumnType)1 ExprConcat (com.robotoworks.mechanoid.db.sqliteModel.ExprConcat)1 Function (com.robotoworks.mechanoid.db.sqliteModel.Function)1 NestedExpression (com.robotoworks.mechanoid.db.sqliteModel.NestedExpression)1 ResultColumn (com.robotoworks.mechanoid.db.sqliteModel.ResultColumn)1 SelectExpression (com.robotoworks.mechanoid.db.sqliteModel.SelectExpression)1 SqliteDataType (com.robotoworks.mechanoid.db.sqliteModel.SqliteDataType)1