dbObjectId-class           package:RMySQL           R Documentation

_C_l_a_s_s _d_b_O_b_j_e_c_t_I_d

_D_e_s_c_r_i_p_t_i_o_n:

     A helper (mixin) class to provide external references in an
     R/S-Plus portable way.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     A virtual Class: No objects may be created from it.

_S_l_o_t_s:

     '_I_d': Object of class '"integer"'  this is an integer vector
          holding an opaque reference into a C struct (may or may not
          be a C pointer, may or may not have length one).

_M_e_t_h_o_d_s:

     _c_o_e_r_c_e 'signature(from = "dbObjectId", to = "integer")': ... 

     _c_o_e_r_c_e 'signature(from = "dbObjectId", to = "numeric")': ... 

     _c_o_e_r_c_e 'signature(from = "dbObjectId", to = "character")': ... 

     _f_o_r_m_a_t 'signature(x = "dbObjectId")': ... 

     _p_r_i_n_t 'signature(x = "dbObjectId")': ... 

     _s_h_o_w 'signature(object = "dbObjectId")': ... 

_N_o_t_e:

     A cleaner mechanism would use external references, but
     historically this class has existed mainly for R/S-Plus
     portability.

_E_x_a_m_p_l_e_s:

     ## Not run: 
       pg <- dbDriver("PostgreSQL")
       con <- dbConnect(pg, "user", "password")
       is(pg, "dbObjectId")   ## True
       is(con, "dbObjectId")  ## True
       isIdCurrent(con)       ## True
       q("yes")
       \$ R 
       isIdCurrent(con)       ## False
     ## End(Not run)

