edu.princeton.wordnet.ejb
Class LinksQueryCommand

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

 class LinksQueryCommand
extends DBQueryCommand

Query command for linked synsets

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
LinksQueryCommand(java.sql.Connection thisConnection)
          Constructor
 
Method Summary
 java.lang.String getDefinition()
          Get synset definition
 long getFromSynset()
          Get source synset id
 int getLexDomainId()
          Get synset lexdomain id
 int getLinkType()
          Get link type
 java.lang.String getSample()
          Get sample data
 long getSynsetId()
          Get synset id
(package private) static void init()
          Init data (resources, ...)
 void setFromSynset(long thisSynsetId)
          Set source synset parameter in prepared statement
 void setFromWord(long thisWordId)
          Set source word parameter in prepared statement
 
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

LinksQueryCommand

public LinksQueryCommand(java.sql.Connection thisConnection)
                  throws java.sql.SQLException
Constructor

Parameters:
thisConnection - is the database connection
Throws:
java.sql.SQLException
Method Detail

init

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


setFromSynset

public void setFromSynset(long thisSynsetId)
                   throws java.sql.SQLException
Set source synset parameter in prepared statement

Parameters:
thisSynsetId - is the synset id
Throws:
java.sql.SQLException

setFromWord

public void setFromWord(long thisWordId)
                 throws java.sql.SQLException
Set source word parameter in prepared statement

Parameters:
thisWordId - is the word id
Throws:
java.sql.SQLException

getSynsetId

public long getSynsetId()
                 throws java.sql.SQLException
Get synset id

Returns:
synset id
Throws:
java.sql.SQLException

getDefinition

public java.lang.String getDefinition()
                               throws java.sql.SQLException
Get synset definition

Returns:
definition
Throws:
java.sql.SQLException

getLexDomainId

public int getLexDomainId()
                   throws java.sql.SQLException
Get synset lexdomain id

Returns:
synset lexdomain id
Throws:
java.sql.SQLException

getSample

public java.lang.String getSample()
                           throws java.sql.SQLException
Get sample data

Returns:
samples in a bar-separated string
Throws:
java.sql.SQLException

getLinkType

public int getLinkType()
                throws java.sql.SQLException
Get link type

Returns:
link type
Throws:
java.sql.SQLException

getFromSynset

public long getFromSynset()
                   throws java.sql.SQLException
Get source synset id

Returns:
source synset id
Throws:
java.sql.SQLException