edu.princeton.wordnet.ejb
Class DBQueryCommand

java.lang.Object
  extended by edu.princeton.wordnet.ejb.DBQueryCommand
Direct Known Subclasses:
CategoryEnumQueryCommand, LinkEnumQueryCommand, SynsetsQueryCommand, TypedSynsetsQueryCommand, VnFrameQueryCommand, VnQueryCommand, VnRoleQueryCommand, WordQueryCommand, XWnQueryCommand, XWnWsdParseLftQueryCommand

public class DBQueryCommand
extends java.lang.Object

Database query command

Author:
Bernard Bou

Method Summary
 void execute()
          Execute query
 boolean next()
          Iterate over result set
 void release()
          Release resources
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public void execute()
             throws java.sql.SQLException
Execute query

Throws:
java.sql.SQLException

next

public boolean next()
             throws java.sql.SQLException
Iterate over result set

Returns:
true if more data is available
Throws:
java.sql.SQLException

release

public void release()
Release resources