edu.princeton.wordnet.ejb
Class SynsetsQueryCommand

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

public class SynsetsQueryCommand
extends DBQueryCommand

Query command for synsets containing a given word

Author:
Bernard

Constructor Summary
SynsetsQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 int getCategoryId()
          Get synset category id
 java.lang.String getDefinition()
          Get synset definition
 java.lang.String getSample()
          Get sample data
 long getSynsetId()
          Get synset id
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynsetsQueryCommand

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

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

setWordId

public void setWordId(long thisWordId)
               throws java.sql.SQLException
Set word parameter in prepared SQL statement

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

getSynsetId

public long getSynsetId()
                 throws java.sql.SQLException
Get synset id

Returns:
synset id
Throws:
java.sql.SQLException

getDefinition

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

Returns:
definition
Throws:
java.sql.SQLException

getCategoryId

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

Returns:
synset category id
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