protected void getModificationResult( SQLObject e, EStructuralFeature feature, Object oldValue, Object newValue, boolean quoteIdentifiers, boolean qualifyNames, boolean fullSyntax, SybaseDdlScript script) { if (!(e instanceof SybaseASABaseViewTable)) { return; } if (feature.getFeatureID() == SybaseasabasesqlmodelPackage.SYBASE_ASA_BASE_VIEW_TABLE__DESCRIPTION) { SybaseASADdlBuilder builder = (SybaseASADdlBuilder) SybaseASADdlBuilder.getInstance(); String description = null; if (e.getDescription() == null || e.getDescription().trim().length() == 0) { description = NULL; } else { description = SQLUtil.quote(e.getDescription(), SINGLE_QUOTE); } String objectName = builder.getName((SybaseASABaseViewTable) e, quoteIdentifiers, qualifyNames); StringBuffer comment = new StringBuffer(""); comment .append(COMMENT) .append(SPACE) .append(ON) .append(SPACE) .append(VIEW) .append(SPACE) .append(objectName); comment.append(SPACE).append(IS).append(SPACE).append(description); script.addAlterOtherStatements(comment.toString()); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public SQLObject getSqlContainer() { if (sqlContainer != null && sqlContainer.eIsProxy()) { InternalEObject oldSqlContainer = (InternalEObject) sqlContainer; sqlContainer = (SQLObject) eResolveProxy(oldSqlContainer); if (sqlContainer != oldSqlContainer) { if (eNotificationRequired()) eNotify( new ENotificationImpl( this, Notification.RESOLVE, SybaseasesqlmodelPackage.SYBASE_ASE_USER__SQL_CONTAINER, oldSqlContainer, sqlContainer)); } } return sqlContainer; }