public class DbInflection
extends java.lang.Object
History:
InflectionRecord
,
Desgin Document Constructor and Description |
---|
DbInflection() |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<InflectionRecord> |
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<InflectionRecord> |
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<InflectionRecord> |
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
|
public static long GetInflByCat(java.lang.String inStr, int cat, java.sql.Connection conn) throws java.sql.SQLException
inStr
- inflected termcat
- category for the termconn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<InflectionRecord> GetCatInflBegin(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- the beginning string pattern for an inflected termconn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<InflectionRecord> GetCatInfl(java.lang.String inStr, java.sql.Connection conn) throws java.sql.SQLException
inStr
- inflected termconn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static java.util.Vector<InflectionRecord> GetInflections(java.lang.String inStr, long inCat, long inInfl, java.sql.Connection conn) throws java.sql.SQLException
inStr
- input inflected terminCat
- input categoryinInfl
- input inflectionconn
- database connectionjava.sql.SQLException
- if there is a database error happenspublic static boolean IsExistInflectedTerm(java.lang.String ifTerm, java.sql.Connection conn) throws java.sql.SQLException
ifTerm
- an inflectional term to be checkedconn
- database connectionjava.sql.SQLException
- if there is a database error happens