edu.princeton.wordnet.ejb
Class CategoryEnumQueryCommand

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

public class CategoryEnumQueryCommand
extends DBQueryCommand

Query for category enumeration

Author:
Bernard Bou

Constructor Summary
CategoryEnumQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 int getId()
          Get the category id from the result set
 int getPos()
          Get the part-of-speech code value from the result set
 java.lang.String getPosCategoryName()
          Get the part-of-speech.category value from the result set
 
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

CategoryEnumQueryCommand

public CategoryEnumQueryCommand(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

getId

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

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

getPosCategoryName

public java.lang.String getPosCategoryName()
                                    throws java.sql.SQLException
Get the part-of-speech.category value from the result set

Returns:
the 'part-of-speech.category' value from the result set
Throws:
java.sql.SQLException

getPos

public int getPos()
           throws java.sql.SQLException
Get the part-of-speech code value from the result set

Returns:
the part-of-speech value from the result set (in the range n,v,a,r)
Throws:
java.sql.SQLException