edu.princeton.wordnet.ejb
Class LexDomainEnumQueryCommand

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

 class LexDomainEnumQueryCommand
extends DBQueryCommand

Query for lexdomain enumeration

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
LexDomainEnumQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 int getId()
          Get the lexdomain id from the result set
 int getPos()
          Get the part-of-speech code value from the result set
 java.lang.String getPosLexDomainName()
          Get the lexdomain name (with pos prefix) from the result set
static void init()
          Init data (resources, ...)
 
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

LexDomainEnumQueryCommand

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

init

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


getId

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

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

getPosLexDomainName

public java.lang.String getPosLexDomainName()
                                     throws java.sql.SQLException
Get the lexdomain name (with pos prefix) from the result set

Returns:
the lexdomain name (with pos prefix) 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