edu.princeton.wordnet.ejb
Class TypedLinksQueryCommand

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

 class TypedLinksQueryCommand
extends DBQueryCommand

Query command for synsets linked through a given relation type

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
TypedLinksQueryCommand(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 thisSynset)
          Set source synset parameter in prepared statement
 void setFromWord(long thisWordId)
          Set source word parameter in prepared statement
 void setLinkType(int thisType)
          Set source type 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

TypedLinksQueryCommand

public TypedLinksQueryCommand(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 thisSynset)
                   throws java.sql.SQLException
Set source synset parameter in prepared statement

Parameters:
thisSynset - is the source 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 source word id (for lexical links)
Throws:
java.sql.SQLException

setLinkType

public void setLinkType(int thisType)
                 throws java.sql.SQLException
Set source type parameter in prepared statement

Parameters:
thisType - is the target synset type
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