edu.princeton.wordnet.ejb
Class WordQueryCommand

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

public class WordQueryCommand
extends DBQueryCommand

Word query command

Author:
Bernard Bou

Constructor Summary
WordQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 int getId()
          Get the word id from the result set
 java.lang.String getLemma()
          Get the word lemma from the result set
 void setLemma(java.lang.String thisLemma)
          Set source lemma parameter in prepared 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

WordQueryCommand

public WordQueryCommand(java.sql.Connection thisConnection)
                 throws java.sql.SQLException
Constructor

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

setLemma

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

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

getId

public int getId()
          throws java.sql.SQLException
Get the word id from the result set

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

getLemma

public java.lang.String getLemma()
                          throws java.sql.SQLException
Get the word lemma from the result set

Returns:
the lemma string value from the result set
Throws:
java.sql.SQLException