edu.princeton.wordnet.ejb
Class VnRoleQueryCommand

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

public class VnRoleQueryCommand
extends DBQueryCommand

Query command for VerbNet roles

Author:
Bernard Bou

Constructor Summary
VnRoleQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 long getRoleId()
          Get the role id from the result set
 int getRoleSetId()
          Get the role set id from the result set
 java.lang.String getRoleType()
          Get the role type from the result set
 java.lang.String getSelectionRestriction()
          Get the role selectional restriction from the result set
 boolean getSynsetSpecific()
          Get synset-specific flag from the result set
 void setIds(long thisWordId, long thisSynsetId)
          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

VnRoleQueryCommand

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

setIds

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

Parameters:
thisWordId - is the target wordid
thisSynsetId - is the target synsetid
Throws:
java.sql.SQLException

getRoleId

public long getRoleId()
               throws java.sql.SQLException
Get the role id from the result set

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

getRoleSetId

public int getRoleSetId()
                 throws java.sql.SQLException
Get the role set id from the result set

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

getRoleType

public java.lang.String getRoleType()
                             throws java.sql.SQLException
Get the role type from the result set

Returns:
the role type from the result set
Throws:
java.sql.SQLException

getSelectionRestriction

public java.lang.String getSelectionRestriction()
                                         throws java.sql.SQLException
Get the role selectional restriction from the result set

Returns:
the role selectional restriction from the result set
Throws:
java.sql.SQLException

getSynsetSpecific

public boolean getSynsetSpecific()
                          throws java.sql.SQLException
Get synset-specific flag from the result set

Returns:
the synset-specific flag from the result set
Throws:
java.sql.SQLException