Search in sources :

Example 6 with SelectCoreExpression

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

the class SelectCoreImpl method basicSetRight.

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

Example 7 with SelectCoreExpression

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

the class SelectCoreImpl method basicSetLeft.

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

Example 8 with SelectCoreExpression

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

the class StatementSequenceValidator method _validateStatement.

protected void _validateStatement(final StatementSequenceValidatorResult result, final CreateViewStatement stmt) {
    String _name = stmt.getName();
    boolean _nameExists = this.nameExists(_name);
    if (_nameExists) {
        result.valid = false;
        result.message = "Name conflict, use another name";
        result.feature = SqliteModelPackage.Literals.TABLE_DEFINITION__NAME;
    } else {
        SelectStatement _selectStatement = stmt.getSelectStatement();
        SelectCoreExpression _core = _selectStatement.getCore();
        this.validateTablesInExpression(result, _core);
    }
}
Also used : SelectStatement(com.robotoworks.mechanoid.db.sqliteModel.SelectStatement) SelectCoreExpression(com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression)

Aggregations

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