c++/EEDB/Chrom.cpp
//
// static member functions for object retrieval from database
//
static member functions for object retrieval from database
static member functions for object retrieval from database
EEDB::Chrom*  EEDB::Chrom::fetch_by_id(MQDB::Database *db, long int id) {
  Chrom* obj = (Chrom*) MQDB::DBCache::check_cache(db, id, "Chrom");
  if(obj!=NULL) { obj->retain(); return obj; }
  const char *sql = "SELECT * FROM chrom WHERE chrom_id=?";
  obj = (EEDB::Chrom*) MQDB::fetch_single(EEDB::Chrom::create, db, sql, "d", id);
  MQDB::DBCache::add_to_cache(obj);
  return obj;
}
EEDB :: Chrom * EEDB :: Chrom :: fetch_by_id ( MQDB :: Database * db , long int id ) { Chrom * obj = ( Chrom * ) MQDB :: DBCache :: check_cache ( db , id , " " ) ; if ( obj != NULL ) { obj -> retain ( ) ; return obj ; } const char * sql = " " ; obj = ( EEDB :: Chrom * ) MQDB :: fetch_single ( EEDB :: Chrom :: create , db , sql , " " , id ) ; MQDB :: DBCache :: add_to_cache ( obj ) ; return obj ; }
static member functions for object retrieval from database
static member functions for object retrieval from database