public class DbSynonym
extends java.lang.Object
History:
SynonymRecord
,
Desgin DocumentConstructor and Description |
---|
DbSynonym() |
Modifier and Type | Method and Description |
---|---|
static java.sql.PreparedStatement |
GetPreparedStatementByOption(java.lang.String inStr,
java.sql.Connection conn,
int srcOption) |
static java.util.Vector<SynonymRecord> |
GetSynonyms(java.lang.String inStr,
java.sql.Connection conn)
Get all synonym records for a specified term from LVG database.
|
static java.util.Vector<SynonymRecord> |
GetSynonymsByOption(java.lang.String inStr,
java.sql.Connection conn,
int srcOption)
Get all synonym records for a specified term from LVG database.
|
static void |
main(java.lang.String[] args)
Test driver for this class.
|
public static java.util.Vector<SynonymRecord> GetSynonymsByOption(java.lang.String inStr, java.sql.Connection conn, int srcOption) throws java.sql.SQLException
inStr
- key form (no punctuation lower case)conn
- database connectionsrcOption
- source type optionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<SynonymRecord> GetSynonyms(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- key form (no punctuation lower case)conn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.sql.PreparedStatement GetPreparedStatementByOption(java.lang.String inStr, java.sql.Connection conn, int srcOption) throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
args
- arguments