Lvg Java
2006p Version

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

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

public class DbInflection
extends java.lang.Object

This class provides high level interfaces to Inflection and CitationLowerCase tables in LVG database.

History:

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

Constructor Summary
DbInflection()
           
 
Method Summary
static java.util.Vector GetCatInfl(java.lang.String inStr, java.sql.Connection conn)
          Get categories and inflections from all inflection records for an inflected term from LVG database.
static java.util.Vector GetCatInflBegin(java.lang.String inStr, java.sql.Connection conn)
          Get all inflection records for an inflected term begins with a specific string with specified category and inflection from LVG database.
static long GetInflByCat(java.lang.String inStr, int cat, java.sql.Connection conn)
          Get inflections for a specific inflected term and category from LVG database.
static java.util.Vector GetInflections(java.lang.String inStr, long inCat, long inInfl, java.sql.Connection conn)
          Get inflection from all inflection records for an inflected term from LVG database.
static boolean IsExistInflectedTerm(java.lang.String ifTerm, java.sql.Connection conn)
          Check if a specified term is an inflected term in LVG database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInflection

public DbInflection()
Method Detail

GetInflByCat

public static long GetInflByCat(java.lang.String inStr,
                                int cat,
                                java.sql.Connection conn)
                         throws java.sql.SQLException
Get inflections for a specific inflected term and category from LVG database.

Parameters:
inStr - inflected term
cat - category for the term
conn - database connection
Returns:
an inflection in a long integer format
Throws:
java.sql.SQLException - if there is a database error happens

GetCatInflBegin

public static java.util.Vector GetCatInflBegin(java.lang.String inStr,
                                               java.sql.Connection conn)
                                        throws java.sql.SQLException
Get all inflection records for an inflected term begins with a specific string with specified category and inflection from LVG database.

Parameters:
inStr - the beginning string pattern for an inflected term
conn - database connection
Returns:
all inflection records for an inflected term begins with a specific string with specified category and inflection
Throws:
java.sql.SQLException - if there is a database error happens

GetCatInfl

public static java.util.Vector GetCatInfl(java.lang.String inStr,
                                          java.sql.Connection conn)
                                   throws java.sql.SQLException
Get categories and inflections from all inflection records for an inflected term from LVG database.

Parameters:
inStr - inflected term
conn - database connection
Returns:
all inflection records for an inflected term
Throws:
java.sql.SQLException - if there is a database error happens

GetInflections

public static java.util.Vector GetInflections(java.lang.String inStr,
                                              long inCat,
                                              long inInfl,
                                              java.sql.Connection conn)
                                       throws java.sql.SQLException
Get inflection from all inflection records for an inflected term from LVG database.

Parameters:
inStr - input inflected term
inCat - input category
inInfl - input inflection
conn - database connection
Returns:
all inflection records for an inflected term
Throws:
java.sql.SQLException - if there is a database error happens

IsExistInflectedTerm

public static boolean IsExistInflectedTerm(java.lang.String ifTerm,
                                           java.sql.Connection conn)
                                    throws java.sql.SQLException
Check if a specified term is an inflected term in LVG database

Parameters:
ifTerm - an inflectional term to be checked
conn - database connection
Returns:
true or false if the specified inflectional term does or does not exist in LVG database, Inflection table
Throws:
java.sql.SQLException - if there is a database error happens

Lvg Java
2006p Version

Submit a bug or feature

Copyright © 2006p National Library of Medicine