net.sf.extjwnl.data
Interface DatabaseDictionaryElementFactory

All Superinterfaces:
Owned
All Known Implementing Classes:
AbstractPrincetonDatabaseDictionaryElementFactory, PrincetonWN17DatabaseDictionaryElementFactory

public interface DatabaseDictionaryElementFactory
extends Owned

Factory interface for creating WordNet objects from a database.

Author:
Brett Walenz , John Didion , Aliaksandr Autayeu

Method Summary
 Exc createExc(POS pos, String derivation, ResultSet rs)
          Create an Exc from a row in the database.
 IndexWord createIndexWord(POS pos, String lemma, ResultSet rs)
          Create an IndexWord from a row in the database.
 Synset createSynset(POS pos, long offset, ResultSet synset, ResultSet words, ResultSet pointers, ResultSet verbFrames)
          Create a Synset from a row in the database.
 
Methods inherited from interface net.sf.extjwnl.util.factory.Owned
getDictionary, setDictionary
 

Method Detail

createIndexWord

IndexWord createIndexWord(POS pos,
                          String lemma,
                          ResultSet rs)
                          throws SQLException,
                                 JWNLException
Create an IndexWord from a row in the database.

Parameters:
pos - part of speech
lemma - lemma
rs - result set
Returns:
index word
Throws:
SQLException - SQLException
JWNLException - JWNLException

createSynset

Synset createSynset(POS pos,
                    long offset,
                    ResultSet synset,
                    ResultSet words,
                    ResultSet pointers,
                    ResultSet verbFrames)
                    throws SQLException,
                           JWNLException
Create a Synset from a row in the database.

Parameters:
pos - part of speech
offset - synset offset
synset - synset result set
words - words result set
pointers - pointers result set
verbFrames - verb frames result set
Returns:
synset
Throws:
SQLException - SQLException
JWNLException - JWNLException

createExc

Exc createExc(POS pos,
              String derivation,
              ResultSet rs)
              throws SQLException,
                     JWNLException
Create an Exc from a row in the database.

Parameters:
pos - the part of speech
derivation - derivation
rs - result set
Returns:
exception
Throws:
SQLException - SQLException
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.