public class DbAntonym
extends java.lang.Object
History:
AntonymRecord,
Desgin Document | Constructor and Description |
|---|
DbAntonym() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Vector<AntonymRecord> |
GetAntonyms(java.lang.String inStr,
java.sql.Connection conn)
Get all antonym records for a specified term from LVG database.
|
static java.util.Vector<AntonymRecord> |
GetAntonymsByOption(java.lang.String inStr,
java.sql.Connection conn,
int negOption,
int srcOption,
int typeOption)
Get all antonym records for a specified term from LVG database.
|
static java.util.Vector<AntonymRecord> |
GetAntonymSubstitutionByOption(java.lang.String inStr,
java.sql.Connection conn,
int srcOption)
Get all antonym records for a specified term from LVG database.
|
static java.sql.PreparedStatement |
GetPreparedStatementByOption(java.lang.String inStr,
java.sql.Connection conn,
int negOption,
int srcOption,
int typeOption) |
static void |
main(java.lang.String[] args)
Test driver for this class.
|
public static java.util.Vector<AntonymRecord> GetAntonymsByOption(java.lang.String inStr, java.sql.Connection conn, int negOption, int srcOption, int typeOption) throws java.sql.SQLException
inStr - key form (no punctuation lower case)conn - database connectionnegOption - negation optionsrcOption - source optiontypeOption - type optionjava.sql.SQLException - if there is a database error happenspublic static java.util.Vector<AntonymRecord> GetAntonymSubstitutionByOption(java.lang.String inStr, java.sql.Connection conn, int srcOption) throws java.sql.SQLException
inStr - key form (no punctuation lower case)conn - database connectionsrcOption - antonym source optionjava.sql.SQLException - if there is a database error happenspublic static java.util.Vector<AntonymRecord> GetAntonyms(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 negOption,
int srcOption,
int typeOption)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void main(java.lang.String[] args)
args - arguments