net.sf.extjwnl.princeton.data
Class AbstractPrincetonDatabaseDictionaryElementFactory

java.lang.Object
  extended by net.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
      extended by net.sf.extjwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory
All Implemented Interfaces:
DatabaseDictionaryElementFactory, Owned
Direct Known Subclasses:
PrincetonWN17DatabaseDictionaryElementFactory

public abstract class AbstractPrincetonDatabaseDictionaryElementFactory
extends AbstractPrincetonDictionaryElementFactory
implements DatabaseDictionaryElementFactory

Base class for database element factories.

Author:
John Didion , Aliaksandr Autayeu

Field Summary
 
Fields inherited from class net.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
dictionary
 
Constructor Summary
AbstractPrincetonDatabaseDictionaryElementFactory(Dictionary dictionary)
           
 
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 synsets, ResultSet words, ResultSet pointers, ResultSet verbFrames)
          Create a Synset from a row in the database.
 
Methods inherited from class net.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
createWord, getDictionary, setDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.extjwnl.util.factory.Owned
getDictionary, setDictionary
 

Constructor Detail

AbstractPrincetonDatabaseDictionaryElementFactory

public AbstractPrincetonDatabaseDictionaryElementFactory(Dictionary dictionary)
Method Detail

createIndexWord

public IndexWord createIndexWord(POS pos,
                                 String lemma,
                                 ResultSet rs)
                          throws SQLException,
                                 JWNLException
Description copied from interface: DatabaseDictionaryElementFactory
Create an IndexWord from a row in the database.

Specified by:
createIndexWord in interface DatabaseDictionaryElementFactory
Parameters:
pos - part of speech
lemma - lemma
rs - result set
Returns:
index word
Throws:
SQLException - SQLException
JWNLException - JWNLException

createSynset

public Synset createSynset(POS pos,
                           long offset,
                           ResultSet synsets,
                           ResultSet words,
                           ResultSet pointers,
                           ResultSet verbFrames)
                    throws SQLException,
                           JWNLException
Description copied from interface: DatabaseDictionaryElementFactory
Create a Synset from a row in the database.

Specified by:
createSynset in interface DatabaseDictionaryElementFactory
Parameters:
pos - part of speech
offset - synset offset
synsets - synset result set
words - words result set
pointers - pointers result set
verbFrames - verb frames result set
Returns:
synset
Throws:
SQLException - SQLException
JWNLException - JWNLException

createExc

public Exc createExc(POS pos,
                     String derivation,
                     ResultSet rs)
              throws SQLException,
                     JWNLException
Description copied from interface: DatabaseDictionaryElementFactory
Create an Exc from a row in the database.

Specified by:
createExc in interface DatabaseDictionaryElementFactory
Parameters:
pos - the part of speech
derivation - derivation
rs - result set
Returns:
exception
Throws:
SQLException - SQLException
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.