public NativeCursor(NativeCursorInfo cursorInfo, IRequest context)
        {
            if (cursorInfo == null)
            {
                throw new ArgumentNullException("cursorInfo");
            }

            CursorInfo = cursorInfo;
            Context    = context;

            Reset();
        }
示例#2
0
            protected override void ExecuteStatement(ExecutionContext context)
            {
                // TODO: Verify if a native cursor is already opened..

                //if (!context.User.CanSelectFrom(QueryPlan))
                //	throw new SecurityException(String.Format("The user '{0}' has not enough rights to select from the query.", context.User.Name));

                var cursorInfo = new NativeCursorInfo(QueryPlan, ForUpdate);
                var nativeCursor = new NativeCursor(cursorInfo, context.Request);

                context.SetCursor(nativeCursor);
            }