public class DbInflectionUtil
extends java.lang.Object
History:
InflectionRecord
,
Desgin Document Constructor and Description |
---|
DbInflectionUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static InflectionRecord |
GetOneInflectionRecord(java.sql.ResultSet rs)
Get one inflectional record from Lexicon inflectional table
|
(package private) static InflectionRecord |
GetRecordByIfTerm(java.lang.String ifTerm,
java.sql.Connection conn)
Get all inflection records for an inflected term.
|
(package private) static InflectionRecord |
GetRecordByPreparedStatement(java.sql.PreparedStatement ps)
Get the last inflection records from Inflection
tables from LVG database for an specific SQL query.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecords(java.lang.String query,
java.sql.Connection conn,
boolean isUniqueEui)
Get all inflection records from Inflection table
from LVG database for an specific SQL query.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsBeginWithIfTerm(java.lang.String ifTermBegin,
java.sql.Connection conn,
boolean isUniqueEui)
Get all inflection records for an inflected term begin with a specified
string pattern.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsByIfTerm(java.lang.String ifTerm,
java.sql.Connection conn,
boolean isUniqueEui)
Get all inflection records for an inflected term.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsByIfTermCat(java.lang.String ifTerm,
int cat,
java.sql.Connection conn)
Get all inflection records for an inflected term and category.
|
static java.util.Vector<InflectionRecord> |
GetRecordsByIfTermCatInfl(java.lang.String ifTerm,
int cat,
long infl,
java.sql.Connection conn,
boolean isUniqueEui)
Get all inflection records for an inflected term.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsByIfTermInfl(java.lang.String ifTerm,
long infl,
java.sql.Connection conn)
Get all inflection records for an inflected term and inflection.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsByIfTermInfl(java.lang.String ifTerm,
long infl,
java.sql.Connection conn,
boolean isUniqueEui)
Get all inflection records for an inflected term and inflection.
|
(package private) static java.util.Vector<InflectionRecord> |
GetRecordsByPreparedStatement(java.sql.PreparedStatement ps,
boolean isUniqueEui)
Get all inflection records from Inflection table
from LVG database for an specific SQL query, using prepare statement.
|
public static java.util.Vector<InflectionRecord> GetRecordsByIfTermCatInfl(java.lang.String ifTerm, int cat, long infl, java.sql.Connection conn, boolean isUniqueEui) throws java.sql.SQLException
ifTerm
- inflected termcat
- specified categories for outputinfl
- specified inflections for outputconn
- database connectionisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsByIfTermCat(java.lang.String ifTerm, int cat, java.sql.Connection conn) throws java.sql.SQLException
ifTerm
- inflected termcat
- specified categories for outputconn
- database connectionjava.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsByIfTermInfl(java.lang.String ifTerm, long infl, java.sql.Connection conn) throws java.sql.SQLException
ifTerm
- inflected terminfl
- specified inflections for outputconn
- database connectionjava.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsByIfTermInfl(java.lang.String ifTerm, long infl, java.sql.Connection conn, boolean isUniqueEui) throws java.sql.SQLException
ifTerm
- inflected terminfl
- specified inflections for outputconn
- database connectionisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic InflectionRecord GetRecordByIfTerm(java.lang.String ifTerm, java.sql.Connection conn) throws java.sql.SQLException
ifTerm
- inflected termconn
- database connectionjava.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsByIfTerm(java.lang.String ifTerm, java.sql.Connection conn, boolean isUniqueEui) throws java.sql.SQLException
ifTerm
- inflected termconn
- database connectionisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsBeginWithIfTerm(java.lang.String ifTermBegin, java.sql.Connection conn, boolean isUniqueEui) throws java.sql.SQLException
ifTermBegin
- beginning string pattern of the inflected termconn
- database connectionisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic InflectionRecord GetRecordByPreparedStatement(java.sql.PreparedStatement ps) throws java.sql.SQLException
ps
- prepared statement of SQL queryjava.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecords(java.lang.String query, java.sql.Connection conn, boolean isUniqueEui) throws java.sql.SQLException
query
- SQL queryconn
- database connectionisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic java.util.Vector<InflectionRecord> GetRecordsByPreparedStatement(java.sql.PreparedStatement ps, boolean isUniqueEui) throws java.sql.SQLException
ps
- prepared statement of SQL queryisUniqueEui
- a boolean flag to specified the output to an unique
EUI. If true, only the first record of records with same EUI is added
to output.java.sql.SQLException
- if there is a database error happensstatic InflectionRecord GetOneInflectionRecord(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- ResultSetjava.sql.SQLException
- if there is a database error happens