edu.princeton.wordnet.ejb
Class XWnQueryCommand

java.lang.Object
  extended by edu.princeton.wordnet.ejb.DBQueryCommand
      extended by edu.princeton.wordnet.ejb.XWnQueryCommand

public class XWnQueryCommand
extends DBQueryCommand

XWordNet query command

Author:
Bernard Bou

Constructor Summary
XWnQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 int getCategoryId()
          Get synset category id
 java.lang.String getDefinition()
          Get synset definition
 java.lang.String getPos()
          Get synset part-of-speech
 java.lang.String getSample()
          Get sample data
 long getSynsetId()
          Get the synset id from the result set
 java.lang.String getText()
          Get the text from the result set
 long getWordId()
          Get the word id from the result set
 void setLemma(java.lang.String thisLemma)
          Set synset parameter in prepared SQL statement
 
Methods inherited from class edu.princeton.wordnet.ejb.DBQueryCommand
execute, next, release
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWnQueryCommand

public XWnQueryCommand(java.sql.Connection thisConnection)
                throws javax.naming.NamingException,
                       java.sql.SQLException
Constructor

Parameters:
thisConnection - is the database connection
Throws:
javax.naming.NamingException
java.sql.SQLException
Method Detail

setLemma

public void setLemma(java.lang.String thisLemma)
              throws java.sql.SQLException
Set synset parameter in prepared SQL statement

Parameters:
thisLemma - is the target word
Throws:
java.sql.SQLException

getWordId

public long getWordId()
               throws java.sql.SQLException
Get the word id from the result set

Returns:
the word id from the result set
Throws:
java.sql.SQLException

getSynsetId

public long getSynsetId()
                 throws java.sql.SQLException
Get the synset id from the result set

Returns:
the synset id from the result set
Throws:
java.sql.SQLException

getPos

public java.lang.String getPos()
                        throws java.sql.SQLException
Get synset part-of-speech

Returns:
part-of-speech
Throws:
java.sql.SQLException

getCategoryId

public int getCategoryId()
                  throws java.sql.SQLException
Get synset category id

Returns:
synset category id
Throws:
java.sql.SQLException

getDefinition

public java.lang.String getDefinition()
                               throws java.sql.SQLException
Get synset definition

Returns:
definition
Throws:
java.sql.SQLException

getSample

public java.lang.String getSample()
                           throws java.sql.SQLException
Get sample data

Returns:
samples as a semicolon-separated string
Throws:
java.sql.SQLException

getText

public java.lang.String getText()
                         throws java.sql.SQLException
Get the text from the result set

Returns:
the text from the result set
Throws:
java.sql.SQLException