Ejemplo n.º 1
0
        RsltCurs
        (
            DrvConn conn,
            AdvanStmt stmt,
            AdvanRSMD rsmd,
            long stmt_id,
            String cursor,
            int preFetch,
            bool do_preLoad) : base(conn, stmt, rsmd, stmt_id, preFetch)

        {
            this.cursor = cursor;
            tr_id       = "Curs[" + inst_id + "]";

            /*
            ** Pre-load row cache if requested.
            */
            if (do_preLoad && preLoad())
            {
                /*
                ** Close the statement when end-of-data detected.
                **
                ** Note that we don't call our closeCursor() method
                ** since it expects to handle the connection lock
                ** state.  Our caller is handling the lock state
                ** during initialization.
                */
                try { base.closeCursor(); }
                catch (SqlEx) {}
            }
            return;
        }         // RsltCurs
Ejemplo n.º 2
0
        RsltSlct
        (
            DrvConn conn,
            AdvanStmt stmt,
            AdvanRSMD rsmd,
            long stmt_id,
            int preFetch,
            bool do_preLoad) : base(conn, stmt, rsmd, stmt_id, preFetch)
        {
            tr_id = "Slct[" + inst_id + "]";

            /*
            ** Pre-load row cache if requested.
            */
            if (do_preLoad && preLoad())
            {
                /*
                ** Close the statement when end-of-data detected.
                **
                ** Note that our caller only locks the connection,
                ** and expects the connection to be unlocked when
                ** data stream is done.  Our closeCursor() method
                ** will unlock the connection as needed.
                */
                try { closeCursor(); }
                catch (SqlEx) {}
            }

            return;
        }         // RsltSlct
Ejemplo n.º 3
0
 RsltUpd
 (
     DrvConn conn,
     AdvanStmt stmt,
     AdvanRSMD rsmd,
     long stmt_id,
     String cursor
 ) : base(conn, stmt, rsmd, stmt_id, cursor, 1, false)
 {
     /*
     ** Updatable cursors only permit a single row per fetch,
     ** so pre-fetching and pre-loading is disabled.
     */
     tr_id = "Upd[" + inst_id + "]";
     disablePreFetch();
     return;
 } // RsltUpd