class AlterView extends SchemaStatement {

    private TableView view;

    public AlterView(ServerSession session, Schema schema) {
        super(session, schema);
    }

    @Override
    public int getType() {
        return SQLStatement.ALTER_VIEW;
    }

    public void setView(TableView view) {
        this.view = view;
    }

    @Override
    public int update() {<FILL_FUNCTION_BODY>}
}

        session.getUser().checkRight(view, Right.ALL);
        if (schema.tryExclusiveLock(DbObjectType.TABLE_OR_VIEW, session) == null)
            return -1;

        DbException e = view.recompile(session, false);
        if (e != null) {
            throw e;
        }
        return 0;
    
<methods>public void <init>(com.lealone.db.session.ServerSession, com.lealone.db.schema.Schema) <variables>protected final non-sealed com.lealone.db.schema.Schema schema