Lvg Java
2006p Version

gov.nih.nlm.nls.lvg.Db
Class DbAcronym

java.lang.Object
  extended by gov.nih.nlm.nls.lvg.Db.DbAcronym

public class DbAcronym
extends java.lang.Object

This class provides high level interfaces to Acronym table in LVG database.

History:

Version:
V-2006p
Author:
NLM NLS Development Team
See Also:
AcronymRecord, Desgin Document

Constructor Summary
DbAcronym()
           
 
Method Summary
static java.util.Vector GetAcronyms(java.lang.String inStr, java.sql.Connection conn)
          Get all acronym records for an expansion (no punctuation lower case) from LVG database.
static java.util.Vector GetExpansions(java.lang.String inStr, java.sql.Connection conn)
          Get all acronym records for an acronym (no punctuation lower case) from LVG database.
static boolean IsAcronym(java.lang.String inStr, java.sql.Connection conn)
          Check if the input string is an acronym in LVG database
static void main(java.lang.String[] args)
          Test driver for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbAcronym

public DbAcronym()
Method Detail

IsAcronym

public static boolean IsAcronym(java.lang.String inStr,
                                java.sql.Connection conn)
                         throws java.sql.SQLException
Check if the input string is an acronym in LVG database

Parameters:
inStr - string to be checked (no punctuation lower case)
conn - database connection
Returns:
true or false to represent the inStr is or is not an acronym in LVG database
Throws:
java.sql.SQLException - if there is a database error happens

GetAcronyms

public static java.util.Vector GetAcronyms(java.lang.String inStr,
                                           java.sql.Connection conn)
                                    throws java.sql.SQLException
Get all acronym records for an expansion (no punctuation lower case) from LVG database. The result is sorted by ignoring cases and using alphabetic order.

Parameters:
inStr - expansion of an acronym (no punctuation lower case)
conn - database connection
Returns:
all acronym records with expansion is same as inStr
Throws:
java.sql.SQLException - if there is a database error happens

GetExpansions

public static java.util.Vector GetExpansions(java.lang.String inStr,
                                             java.sql.Connection conn)
                                      throws java.sql.SQLException
Get all acronym records for an acronym (no punctuation lower case) from LVG database. The result is sorted by ignoring cases and using alphabetic order.

Parameters:
inStr - acronym of an expension (no punctuation lower case)
conn - database connection
Returns:
all acronym records with acronym is same as inStr
Throws:
java.sql.SQLException - if there is a database error happens

main

public static void main(java.lang.String[] args)
Test driver for this class.


Lvg Java
2006p Version

Submit a bug or feature

Copyright © 2006p National Library of Medicine