|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.ejb.DBQueryCommand edu.princeton.wordnet.ejb.TypedSynsetsQueryCommand
class TypedSynsetsQueryCommand
Query command for synsets of a given part-of-speech or lexdomain type and containing a given word
Field Summary | |
---|---|
private static java.lang.String |
theLexDomainQuery
theLexDomainQuery is the (lexdomain based) SQL statement |
private static java.lang.String |
thePosQuery
thePosQuery is the (part-of-speech based) SQL statement |
Fields inherited from class edu.princeton.wordnet.ejb.DBQueryCommand |
---|
theResultSet, theStatement |
Constructor Summary | |
---|---|
TypedSynsetsQueryCommand(java.sql.Connection thisConnection,
boolean lexDomainBased)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getDefinition()
Get synset definition |
int |
getLexDomainId()
Get synset lexdomain id |
java.lang.String |
getSample()
Get sample data |
long |
getSynsetId()
Get synset id |
(package private) static void |
init()
Init data (resources, ...) |
void |
setLexDomainType(int thisType)
Set lexdomain type parameter in prepared SQL statement |
void |
setPosType(int thisType)
Set part-of-speech type parameter in prepared SQL statement |
void |
setWordId(long thisWordId)
Set word parameter in prepared SQL statement |
Methods inherited from class edu.princeton.wordnet.ejb.DBQueryCommand |
---|
execute, next, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String thePosQuery
thePosQuery
is the (part-of-speech based) SQL statement
private static java.lang.String theLexDomainQuery
theLexDomainQuery
is the (lexdomain based) SQL statement
Constructor Detail |
---|
public TypedSynsetsQueryCommand(java.sql.Connection thisConnection, boolean lexDomainBased) throws java.sql.SQLException
thisConnection
- is the database connectionlexDomainBased
- is whether the query is lexdomain based
java.sql.SQLException
Method Detail |
---|
static void init()
public void setWordId(long thisWordId) throws java.sql.SQLException
thisWordId
- is the target word
java.sql.SQLException
public void setPosType(int thisType) throws java.sql.SQLException
thisType
- is the target part-of-speech type
java.sql.SQLException
public void setLexDomainType(int thisType) throws java.sql.SQLException
thisType
- is the target lexdomain type
java.sql.SQLException
public long getSynsetId() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getDefinition() throws java.sql.SQLException
java.sql.SQLException
public int getLexDomainId() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSample() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |