it.unimo.dbgroup.momis.om
Class WnSynsetPeer

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

public class WnSynsetPeer
extends BaseWnSynsetPeer

The skeleton for this class was autogenerated by Torque on: [Sat Aug 10 16:37:02 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

Field Summary
 
Fields inherited from class it.unimo.dbgroup.momis.om.BaseWnSynsetPeer
BYTE_OFFSET, CLASS_DEFAULT, CLASSNAME_DEFAULT, DATABASE_NAME, GLOSS, numColumns, SYNTACTIC_CATEGORY, TABLE_NAME, WN_EXTENDER_ID, WN_SYNSET_ID, WORD_CNT
 
Fields inherited from class org.apache.torque.util.BasePeer
category, DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY
 
Constructor Summary
WnSynsetPeer()
           
 
Method Summary
static WnSynset createNewSynset(int ss_type, java.lang.String gloss, int wordCnt)
           
static WnSynset decWordCnt(org.apache.torque.om.NumberKey synsetId)
           
static WnSynset incWordCnt(org.apache.torque.om.NumberKey synsetId)
           
static WnSynset insertNewSynset(int ss_type, java.lang.String gloss)
           
static boolean isExistent(org.apache.torque.om.NumberKey synsetId)
          Confirm the existence of a given WnSynset in the db
static WnSynset modifyGloss(WnSynset synset, java.lang.String newGloss)
           
static java.util.List retrieveByGlossCategory(java.lang.String gloss, int category)
          Retrieve the WnSynset by ByteOffset and SyntacticCategory
static org.apache.torque.om.NumberKey retrieveByOffsetCategory(int offset, int category)
          Retrieve the WnSynsetId by ByteOffset and SyntacticCategory
static WnSynset retrieveBySynsetId(org.apache.torque.om.NumberKey synsetId)
          Retrieve the WnSynset by WnSynsetId
static WnSynset retrieveBySynsetIdCategory(org.apache.torque.om.NumberKey synsetId, int pos)
          Retrieve the WnSynset by WnSynsetId and Syntactic Category
 
Methods inherited from class it.unimo.dbgroup.momis.om.BaseWnSynsetPeer
addSelectColumns, buildCriteria, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelectJoinWnExtender, 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

WnSynsetPeer

public WnSynsetPeer()
Method Detail

retrieveByGlossCategory

public static java.util.List retrieveByGlossCategory(java.lang.String gloss,
                                                     int category)
                                              throws java.lang.Exception
Retrieve the WnSynset by ByteOffset and SyntacticCategory

Throws:
java.lang.Exception

retrieveByOffsetCategory

public static org.apache.torque.om.NumberKey retrieveByOffsetCategory(int offset,
                                                                      int category)
                                                               throws java.lang.Exception
Retrieve the WnSynsetId by ByteOffset and SyntacticCategory

Throws:
java.lang.Exception

retrieveBySynsetId

public static WnSynset retrieveBySynsetId(org.apache.torque.om.NumberKey synsetId)
                                   throws java.lang.Exception
Retrieve the WnSynset by WnSynsetId

Throws:
java.lang.Exception

retrieveBySynsetIdCategory

public static WnSynset retrieveBySynsetIdCategory(org.apache.torque.om.NumberKey synsetId,
                                                  int pos)
                                           throws java.lang.Exception
Retrieve the WnSynset by WnSynsetId and Syntactic Category

Throws:
java.lang.Exception

isExistent

public static boolean isExistent(org.apache.torque.om.NumberKey synsetId)
                          throws java.lang.Exception
Confirm the existence of a given WnSynset in the db

Throws:
java.lang.Exception

createNewSynset

public static WnSynset createNewSynset(int ss_type,
                                       java.lang.String gloss,
                                       int wordCnt)
                                throws java.lang.Exception
Throws:
java.lang.Exception

insertNewSynset

public static WnSynset insertNewSynset(int ss_type,
                                       java.lang.String gloss)
                                throws java.lang.Exception
Throws:
java.lang.Exception

incWordCnt

public static WnSynset incWordCnt(org.apache.torque.om.NumberKey synsetId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

decWordCnt

public static WnSynset decWordCnt(org.apache.torque.om.NumberKey synsetId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

modifyGloss

public static WnSynset modifyGloss(WnSynset synset,
                                   java.lang.String newGloss)
                            throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException


Universita' di Modena e Reggio Emilia