edu.princeton.wordnet.ejb
Class VnFrameQueryCommand

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

public class VnFrameQueryCommand
extends DBQueryCommand

VerbNet Frame query command

Author:
Bernard Bou

Constructor Summary
VnFrameQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 java.lang.String getDescription1()
          Get the frame major description from the result set
 java.lang.String getDescription2()
          Get the frame minor description from the result set
 java.lang.String getExample()
          Get the frame example from the result set
 java.lang.String getFrameClass()
          Get the frame class from the result set
 long getFrameId()
          Get the frame id from the result set
 java.lang.String getNumber()
          Get the frame number from the result set
 int getQuality()
          Get the frame quality from the result set
 java.lang.String getSemantics()
          Get the frame semantics from the result set
 boolean getSynsetSpecific()
          Get synset-specific flag from the result set
 java.lang.String getSyntax()
          Get the frame syntax from the result set
 java.lang.String getXTag()
          Get the frame xtag from the result set
 void setIds(long thisWordId, long thisSynsetId)
          Set synset 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

VnFrameQueryCommand

public VnFrameQueryCommand(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 synset parameter in prepared SQL statement

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

getFrameId

public long getFrameId()
                throws java.sql.SQLException
Get the frame id from the result set

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

getNumber

public java.lang.String getNumber()
                           throws java.sql.SQLException
Get the frame number from the result set

Returns:
the frame number from the result set
Throws:
java.sql.SQLException

getXTag

public java.lang.String getXTag()
                         throws java.sql.SQLException
Get the frame xtag from the result set

Returns:
the frame xtag from the result set
Throws:
java.sql.SQLException

getDescription1

public java.lang.String getDescription1()
                                 throws java.sql.SQLException
Get the frame major description from the result set

Returns:
the frame major description from the result set
Throws:
java.sql.SQLException

getDescription2

public java.lang.String getDescription2()
                                 throws java.sql.SQLException
Get the frame minor description from the result set

Returns:
the frame minor description from the result set
Throws:
java.sql.SQLException

getSyntax

public java.lang.String getSyntax()
                           throws java.sql.SQLException
Get the frame syntax from the result set

Returns:
the frame syntax from the result set
Throws:
java.sql.SQLException

getSemantics

public java.lang.String getSemantics()
                              throws java.sql.SQLException
Get the frame semantics from the result set

Returns:
the frame semantics from the result set
Throws:
java.sql.SQLException

getExample

public java.lang.String getExample()
                            throws java.sql.SQLException
Get the frame example from the result set

Returns:
the frame example from the result set
Throws:
java.sql.SQLException

getQuality

public int getQuality()
               throws java.sql.SQLException
Get the frame quality from the result set

Returns:
the frame quality from the result set
Throws:
java.sql.SQLException

getFrameClass

public java.lang.String getFrameClass()
                               throws java.sql.SQLException
Get the frame class from the result set

Returns:
the frame class 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