edu.princeton.wordnet.ejb
Class WordQueryCommand

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

 class WordQueryCommand
extends DBQueryCommand

Word query command

Author:
Bernard Bou

Field Summary
private static java.lang.String theQuery
          theQuery is the SQL statement
 
Fields inherited from class edu.princeton.wordnet.ejb.DBQueryCommand
theResultSet, theStatement
 
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
(package private) static void init()
          Init data (resources, ...)
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theQuery

private static java.lang.String theQuery
theQuery is the SQL statement

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

init

static void init()
Init data (resources, ...)


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