net.didion.jwnl.princeton.data
Class PrincetonWN30DatabaseDictionaryElementFactory

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

public class PrincetonWN30DatabaseDictionaryElementFactory
extends AbstractPrincetonDatabaseDictionaryElementFactory

Supports the wordnet 3.0 database, including sense key and usage count information.

Author:
brett

Constructor Summary
PrincetonWN30DatabaseDictionaryElementFactory()
          Initialize the factory.
 
Method Summary
 java.lang.Object create(java.util.Map params)
          Creates a blank factory, takes no parameters.
 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.
 
Methods inherited from class net.didion.jwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory
createExc, createIndexWord
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincetonWN30DatabaseDictionaryElementFactory

public PrincetonWN30DatabaseDictionaryElementFactory()
Initialize the factory.

Method Detail

create

public java.lang.Object create(java.util.Map params)
                        throws JWNLException
Creates a blank factory, takes no parameters.

Throws:
JWNLException

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
Create a synset.

Specified by:
createSynset in interface DatabaseDictionaryElementFactory
Overrides:
createSynset in class AbstractPrincetonDatabaseDictionaryElementFactory
Parameters:
pos - - the part of speech
offset - - the file offset
synset - - the result set
words - - the words composing the synset
pointers - - the pointers
verbFrames - - the verbFrames
Returns:
Synset - the created synset
Throws:
java.sql.SQLException