示例#1
0
        /// <summary>
        /// Read log object given the object id
        /// </summary>
        /// <param name="objectId"></param>
        /// <returns></returns>

        public static UserObject Read( // read object
            int objectId)              // id of item to read
        {
            string sql =
                "select obj_id, obj_typ_id, ownr_id, obj_nm, obj_desc_txt, " +
                "fldr_typ_id, fldr_nm, acs_lvl_id, obj_itm_cnt, obj_cntnt, crt_dt, upd_dt " +
                "from mbs_owner.mbs_log where obj_id=:0";

            DbCommandMx drd = new DbCommandMx();

            drd.Prepare(sql, OracleDbType.Int32);
            drd.ExecuteReader(objectId);

            UserObject uo = UserObjectDao.FetchUserObject(drd);

            drd.Dispose();
            return(uo);
        }