it.unimo.dbgroup.momis.om
Class WnReverseIndexPeer

java.lang.Object
  extended byorg.apache.torque.util.BasePeer
      extended byit.unimo.dbgroup.momis.om.BaseWnReverseIndexPeer
          extended byit.unimo.dbgroup.momis.om.WnReverseIndexPeer
All Implemented Interfaces:
java.io.Serializable

public class WnReverseIndexPeer
extends BaseWnReverseIndexPeer

The skeleton for this class was autogenerated by Torque on: [Mon Sep 30 11:06:07 CEST 2002] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.

See Also:
Serialized Form

Nested Class Summary
(package private) static class WnReverseIndexPeer.MyLRUMapForWnReverseIndex
           
 
Field Summary
 
Fields inherited from class it.unimo.dbgroup.momis.om.BaseWnReverseIndexPeer
CLASS_DEFAULT, CLASSNAME_DEFAULT, DATABASE_NAME, numColumns, TABLE_NAME, TERM, WN_REVERSE_INDEX_ID, WN_SYNSET_ID_LIST
 
Fields inherited from class org.apache.torque.util.BasePeer
category, DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY
 
Constructor Summary
WnReverseIndexPeer()
           
 
Method Summary
static void buildWnReverseIndex()
           
static WnReverseIndex createEntry(java.lang.String term, org.apache.torque.om.NumberKey synId, int glossLength, java.util.Vector positions)
          Creates a new tuple in WN_REVERSE_INSEX
static boolean findSynsetId(java.lang.String term, org.apache.torque.om.NumberKey id)
          Verifies if the current synset is conatined in the list associated to the given term
static WnReverseIndex findTerm(java.lang.String term)
           
static void getAllSynsetId(java.lang.String term, java.util.HashMap map, java.util.HashMap occMap, java.util.HashMap termMap)
           
static void getAverageListSize()
          Method that computes the average number of synset ids related to a generic term.
static void getMaxMin()
          Method that computes the MAX length of actual glosses in the db and the MIN length of actual glosses in the db with duplicate.
static void getMaxMinFreq()
          Method that computes the MAX length of actual glosses in the db and the MIN length of actual glosses in the db with duplicate
static void getTermVariance(java.util.HashMap hist, float media)
           
static void insertNewGloss(WnSynset currSynset)
          Update the Reverse Index: this task will insert in the index the terms of a new created synset' gloss
static void updateWnReverseIndex(WnSynset currSynset, java.lang.String oldGloss)
          Update the Reverse Index: this task will take some seconds This method is invocated each time the user modify a gloss of a "new created" synset in the LemmaBrowser.
static void updateWnReverseIndexWithNewSense(WnSynset currSynset)
          Update the Reverse Index: this task will take some seconds This method is invocated each time the user add a new sense from SenseBrowser window
 
Methods inherited from class it.unimo.dbgroup.momis.om.BaseWnReverseIndexPeer
addSelectColumns, buildCriteria, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelectVillageRecords, doSelectVillageRecords, doUpdate, doUpdate, doUpdate, doUpdate, getMapBuilder, getOMClass, getTableMap, populateObject, populateObjects, resultSet2Objects, retrieveByPK, retrieveByPK, retrieveByPKs, retrieveByPKs, row2Object
 
Methods inherited from class org.apache.torque.util.BasePeer
beginTransaction, commitTransaction, createPreparedStatement, createQueryString, deleteAll, deleteAll, doPSSelect, doPSSelect, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema, rollBackTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WnReverseIndexPeer

public WnReverseIndexPeer()
Method Detail

getMaxMin

public static void getMaxMin()
                      throws java.lang.Exception
Method that computes the MAX length of actual glosses in the db and the MIN length of actual glosses in the db with duplicate. Called in Test.java

Throws:
java.lang.Exception

updateWnReverseIndex

public static void updateWnReverseIndex(WnSynset currSynset,
                                        java.lang.String oldGloss)
                                 throws java.lang.Exception
Update the Reverse Index: this task will take some seconds This method is invocated each time the user modify a gloss of a "new created" synset in the LemmaBrowser.

Throws:
java.lang.Exception

findTerm

public static WnReverseIndex findTerm(java.lang.String term)
                               throws java.lang.Exception
Returns:
rv: WnReverseIndex object corresponding to term
Throws:
java.lang.Exception

getAllSynsetId

public static void getAllSynsetId(java.lang.String term,
                                  java.util.HashMap map,
                                  java.util.HashMap occMap,
                                  java.util.HashMap termMap)
                           throws java.lang.Exception
Throws:
java.lang.Exception

findSynsetId

public static boolean findSynsetId(java.lang.String term,
                                   org.apache.torque.om.NumberKey id)
                            throws java.lang.Exception
Verifies if the current synset is conatined in the list associated to the given term

Throws:
java.lang.Exception

createEntry

public static WnReverseIndex createEntry(java.lang.String term,
                                         org.apache.torque.om.NumberKey synId,
                                         int glossLength,
                                         java.util.Vector positions)
                                  throws java.lang.Exception
Creates a new tuple in WN_REVERSE_INSEX

Throws:
java.lang.Exception

buildWnReverseIndex

public static void buildWnReverseIndex()
                                throws java.lang.Exception
Throws:
java.lang.Exception

updateWnReverseIndexWithNewSense

public static void updateWnReverseIndexWithNewSense(WnSynset currSynset)
                                             throws java.lang.Exception
Update the Reverse Index: this task will take some seconds This method is invocated each time the user add a new sense from SenseBrowser window

Throws:
java.lang.Exception

getTermVariance

public static void getTermVariance(java.util.HashMap hist,
                                   float media)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getAverageListSize

public static void getAverageListSize()
                               throws java.lang.Exception
Method that computes the average number of synset ids related to a generic term. Called in Test.java

Throws:
java.lang.Exception

getMaxMinFreq

public static void getMaxMinFreq()
                          throws java.lang.Exception
Method that computes the MAX length of actual glosses in the db and the MIN length of actual glosses in the db with duplicate

Throws:
java.lang.Exception

insertNewGloss

public static void insertNewGloss(WnSynset currSynset)
                           throws java.lang.Exception
Update the Reverse Index: this task will insert in the index the terms of a new created synset' gloss

Throws:
java.lang.Exception


Universita' di Modena e Reggio Emilia