TC Java
2009 Version

gov.nih.nlm.nls.tc.Db
Class DbMhJdScores

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Db.DbMhJdScores

public class DbMhJdScores
extends java.lang.Object

This class provides high level interfaces to get Mh-Jd scores from MH_JD_SCORES table in TC database.

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
DbMhJdScores()
           
 
Method Summary
static int GetMhCount(java.lang.String mh, java.sql.Connection conn)
          Get total number of JD socres in DC from database MH_JD_SCORES tables by specifying MeSH heading and db connection.
static java.util.Vector<Count1f> GetScoresByMh(java.lang.String mh, java.sql.Connection conn)
          Get JD socres in DC from database MH_JD_SCORES tables by specifying MeSH heading and db connection.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbMhJdScores

public DbMhJdScores()
Method Detail

GetScoresByMh

public static java.util.Vector<Count1f> GetScoresByMh(java.lang.String mh,
                                                      java.sql.Connection conn)
                                               throws java.sql.SQLException
Get JD socres in DC from database MH_JD_SCORES tables by specifying MeSH heading and db connection.

Parameters:
mh - MeSH heading of interested
conn - database connection
Returns:
a collection of JD scores in Count1f (DC) for the specified MeSH heading
Throws:
SqlException - if caught in Sql query
java.sql.SQLException

GetMhCount

public static int GetMhCount(java.lang.String mh,
                             java.sql.Connection conn)
                      throws java.sql.SQLException
Get total number of JD socres in DC from database MH_JD_SCORES tables by specifying MeSH heading and db connection.

Parameters:
mh - MeSH heading of interested
conn - database connection
Returns:
total number of JD socres in DC for the specified MeSH heading
Throws:
SqlException - if caught in Sql query
java.sql.SQLException

main

public static void main(java.lang.String[] args)

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine