Search in sources :

Example 6 with SelectStatement

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

the class InsertStatementImpl method basicSetSelectStatement.

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

Example 7 with SelectStatement

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

the class SelectStatementExpressionImpl method basicSetSelect.

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

Aggregations

SelectStatement (com.robotoworks.mechanoid.db.sqliteModel.SelectStatement)7 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)4 SelectCoreExpression (com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression)3 SingleSourceSelectStatement (com.robotoworks.mechanoid.db.sqliteModel.SingleSourceSelectStatement)2 ColumnSource (com.robotoworks.mechanoid.db.sqliteModel.ColumnSource)1 DDLStatement (com.robotoworks.mechanoid.db.sqliteModel.DDLStatement)1 SelectCore (com.robotoworks.mechanoid.db.sqliteModel.SelectCore)1 SelectExpression (com.robotoworks.mechanoid.db.sqliteModel.SelectExpression)1 SelectList (com.robotoworks.mechanoid.db.sqliteModel.SelectList)1 SelectSource (com.robotoworks.mechanoid.db.sqliteModel.SelectSource)1 SingleSourceTable (com.robotoworks.mechanoid.db.sqliteModel.SingleSourceTable)1 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)1 ArrayList (java.util.ArrayList)1 EObject (org.eclipse.emf.ecore.EObject)1 IScope (org.eclipse.xtext.scoping.IScope)1 Function1 (org.eclipse.xtext.xbase.lib.Functions.Function1)1