private static void fill_locus(GenBankLocusInfo locus, long id)
        {
            Locus           loc      = new Locus(locus, id);
            MySqlCommand    cmmd10   = new MySqlCommand(loc.get_query(), conn);
            MySqlDataReader reader10 = cmmd10.ExecuteReader();

            reader10.Close();
        }
Beispiel #2
0
        public Locus(GenBankLocusInfo locus, long id)
        {
            this.divisoncode    = (int)locus.DivisionCode + 1;
            this.molecule       = (int)locus.MoleculeType + 1;
            this.strand         = (int)locus.Strand + 1;
            this.strandtopology = (int)locus.StrandTopology + 1;

            if (id < 1 || this.divisoncode > 20 || this.divisoncode < 1 || this.molecule > 10 || this.molecule < 1 || this.strand > 4 || this.strand < 1 || this.strandtopology > 3 || this.strandtopology < 1 || locus.SequenceType.Length > 40)
            {
                UpdaterException.check_data_exception(true);
            }

            this.id          = 0;
            this.metadata_id = id;
            this.date        = locus.Date.ToString("yyyy-MM-dd HH:mm:ss");
            this.strand_type = locus.SequenceType;
        }
Beispiel #3
0
        private static void fill_locus(GenBankLocusInfo loc, long id)
        {
            Locus locus = new Locus(loc, id);

            locus.execute_query(conn);
        }