public class DbAcronym
extends java.lang.Object
History:
AcronymRecord
,
Desgin Document Constructor and Description |
---|
DbAcronym() |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<AcronymRecord> |
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<AcronymRecord> |
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.
|
public static boolean IsAcronym(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- string to be checked (no punctuation lower case)conn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<AcronymRecord> GetAcronyms(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- expansion of an acronym (no punctuation lower case)conn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<AcronymRecord> GetExpansions(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- acronym of an expension (no punctuation lower case)conn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static void main(java.lang.String[] args)
args
- arguments