public class DbDerivation
extends java.lang.Object
History:
DerivationRecord
,
Desgin DocumentConstructor and Description |
---|
DbDerivation() |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<DerivationRecord> |
GetDerivations(java.lang.String inStr,
java.sql.Connection conn)
Get derivation records for a specific term (lower case) from LVG database.
|
static java.util.Vector<DerivationRecord> |
GetDerivationsByOption(java.lang.String inStr,
java.sql.Connection conn,
int typeFlag,
int negOption)
Get derivation records for a specific term (lower case) from LVG database.
|
static void |
main(java.lang.String[] args)
Test driver for this class.
|
public static java.util.Vector<DerivationRecord> GetDerivationsByOption(java.lang.String inStr, java.sql.Connection conn, int typeFlag, int negOption) throws java.sql.SQLException
inStr
- term for derivations (lower case)conn
- database connectiontypeFlag
- type flag: 0 (Z), 1 (P), 2(S), 3(ZP), 4 (ZS), 5 (PS),
6 (ZPS)negOption
- negation tag: N|Ojava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<DerivationRecord> GetDerivations(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- term for derivations (lower case)conn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static void main(java.lang.String[] args)
args
- arguments