net.didion.jwnl.princeton.data
Class AbstractPrincetonDatabaseDictionaryElementFactory

java.lang.Object
  extended by net.didion.jwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory
All Implemented Interfaces:
DatabaseDictionaryElementFactory, Createable
Direct Known Subclasses:
PrincetonWN16DatabaseDictionaryElementFactory, PrincetonWN17DatabaseDictionaryElementFactory, PrincetonWN30DatabaseDictionaryElementFactory

public abstract class AbstractPrincetonDatabaseDictionaryElementFactory
extends java.lang.Object
implements DatabaseDictionaryElementFactory


Constructor Summary
AbstractPrincetonDatabaseDictionaryElementFactory()
           
 
Method Summary
 Exc createExc(POS pos, java.lang.String derivation, java.sql.ResultSet rs)
          Create an Exc from a row in the database.
 IndexWord createIndexWord(POS pos, java.lang.String lemma, java.sql.ResultSet rs)
          Create an IndexWord from a row in the database.
 Synset createSynset(POS pos, long offset, java.sql.ResultSet synset, java.sql.ResultSet words, java.sql.ResultSet pointers, java.sql.ResultSet verbFrames)
          Create a Synset from a row in the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.didion.jwnl.util.factory.Createable
create
 

Constructor Detail

AbstractPrincetonDatabaseDictionaryElementFactory

public AbstractPrincetonDatabaseDictionaryElementFactory()
Method Detail

createIndexWord

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

Specified by:
createIndexWord in interface DatabaseDictionaryElementFactory
Throws:
java.sql.SQLException

createSynset

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

Specified by:
createSynset in interface DatabaseDictionaryElementFactory
Throws:
java.sql.SQLException

createExc

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

Specified by:
createExc in interface DatabaseDictionaryElementFactory
Throws:
java.sql.SQLException