TC Java
2011 Version

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

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

public class DbWordStScores
extends java.lang.Object

This class provides high level interfaces to get Word-St scores from Word_St_Scores table in TC database.

History:

Version:
V-2011
Author:
NLM Lexical Systems Group

Constructor Summary
DbWordStScores()
           
 
Method Summary
static java.util.Vector<Count2f> GetScoresByWord(java.lang.String word, java.sql.Connection conn)
          Get ST socres in WC and DC from database WORD_JD_SCORES tables by specifying word 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

DbWordStScores

public DbWordStScores()
Method Detail

GetScoresByWord

public static java.util.Vector<Count2f> GetScoresByWord(java.lang.String word,
                                                        java.sql.Connection conn)
                                                 throws java.sql.SQLException
Get ST socres in WC and DC from database WORD_JD_SCORES tables by specifying word and db connection.

Parameters:
word - word of interested
conn - database connection
Returns:
a collection of ST scores in Count2f (WC and DC) for the specified word
Throws:
sql - exception if caught in sql query
java.sql.SQLException

main

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

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine