Search in sources :

Example 1 with UpdateStatement

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

the class XSqliteModelScopeProvider method scope_UpdateColumnExpression_columnName.

public IScope scope_UpdateColumnExpression_columnName(final UpdateColumnExpression context, final EReference reference) {
    UpdateStatement updateStmt = ModelUtil.<UpdateStatement>getAncestorOfType(context, UpdateStatement.class);
    DDLStatement containingStmt = ModelUtil.<DDLStatement>getAncestorOfType(context, DDLStatement.class);
    TableDefinition _table = updateStmt.getTable();
    ArrayList<EObject> _findColumnDefs = ModelUtil.findColumnDefs(containingStmt, _table);
    return Scopes.scopeFor(_findColumnDefs, IScope.NULLSCOPE);
}
Also used : UpdateStatement(com.robotoworks.mechanoid.db.sqliteModel.UpdateStatement) DDLStatement(com.robotoworks.mechanoid.db.sqliteModel.DDLStatement) EObject(org.eclipse.emf.ecore.EObject) TableDefinition(com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)

Aggregations

DDLStatement (com.robotoworks.mechanoid.db.sqliteModel.DDLStatement)1 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)1 UpdateStatement (com.robotoworks.mechanoid.db.sqliteModel.UpdateStatement)1 EObject (org.eclipse.emf.ecore.EObject)1