it.unimo.dbgroup.momis.om
Class BaseWnLemma

java.lang.Object
  extended byorg.apache.torque.om.BaseObject
      extended byit.unimo.dbgroup.momis.om.BaseWnLemma
All Implemented Interfaces:
org.apache.torque.om.Persistent, java.io.Serializable
Direct Known Subclasses:
WnLemma

public abstract class BaseWnLemma
extends org.apache.torque.om.BaseObject

This class was autogenerated by Torque on: [Wed Jan 21 15:57:22 CET 2004] You should not use this class directly. It should not even be extended all references should be to WnLemma

See Also:
Serialized Form

Field Summary
private  boolean alreadyInSave
          flag to prevent endless save loop, if this object is referenced by another object which falls in this transaction.
private  WnExtender aWnExtender
           
protected  java.util.List collWnLemmaSynsets
          Collection to store aggregation of collWnLemmaSynsets
private static java.util.List fieldNames
           
private  org.apache.torque.util.Criteria lastWnLemmaSynsetsCriteria
          The criteria used to select the current contents of collWnLemmaSynsets
private  java.lang.String lemma
          The value for the lemma field
private static WnLemmaPeer peer
          The Peer class
private  int sense_cnt
          The value for the sense_cnt field
private  int syntactic_category
          The value for the syntactic_category field
private  org.apache.torque.om.NumberKey wn_extender_id
          The value for the wn_extender_id field
private  org.apache.torque.om.NumberKey wn_lemma_id
          The value for the wn_lemma_id field
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
BaseWnLemma()
           
 
Method Summary
 void addWnLemmaSynset(WnLemmaSynset l)
          Method called to associate a WnLemmaSynset object to this object through the WnLemmaSynset foreign key attribute
 WnLemma copy()
          Makes a copy of this object.
protected  WnLemma copyInto(WnLemma copyObj)
           
 java.lang.Object getByName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPeerName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPosition(int pos)
          Retrieves a field from the object by Position as specified in the xml schema.
static java.util.List getFieldNames()
          Generate a list of field names.
 java.lang.String getLemma()
          Get the Lemma
 WnLemmaPeer getPeer()
          returns a peer instance associated with this om.
 org.apache.torque.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 int getSenseCnt()
          Get the SenseCnt
 int getSyntacticCategory()
          Get the SyntacticCategory
 WnExtender getWnExtender()
           
 org.apache.torque.om.NumberKey getWnExtenderId()
          Get the WnExtenderId
 org.apache.torque.om.NumberKey getWnLemmaId()
          Get the WnLemmaId
 java.util.List getWnLemmaSynsets()
          If this collection has already been initialized, returns the collection.
 java.util.List getWnLemmaSynsets(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.List getWnLemmaSynsetsJoinWnExtender(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.List getWnLemmaSynsetsJoinWnSynset(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  void initWnLemmaSynsets()
          Temporary storage of collWnLemmaSynsets to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
 void save()
          Stores the object in the database.
 void save(org.apache.torque.pool.DBConnection dbCon)
          Stores the object in the database.
 void save(java.lang.String dbName)
          Stores the object in the database.
 void setLemma(java.lang.String v)
          Set the value of Lemma
 void setPrimaryKey(org.apache.torque.om.ObjectKey wn_lemma_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setSenseCnt(int v)
          Set the value of SenseCnt
 void setSyntacticCategory(int v)
          Set the value of SyntacticCategory
 void setWnExtender(WnExtender v)
          Declares an association between this object and a WnExtender object
 void setWnExtenderId(org.apache.torque.om.NumberKey v)
          Set the value of WnExtenderId
 void setWnExtenderId(java.lang.String v)
          Set the value of WnExtenderId as a string.
 void setWnExtenderKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setWnLemmaId(org.apache.torque.om.NumberKey v)
          Set the value of WnLemmaId
 void setWnLemmaId(java.lang.String v)
          Set the value of WnLemmaId as a string.
 
Methods inherited from class org.apache.torque.om.BaseObject
equals, equals, getCategory, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, log, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peer

private static final WnLemmaPeer peer
The Peer class


wn_lemma_id

private org.apache.torque.om.NumberKey wn_lemma_id
The value for the wn_lemma_id field


lemma

private java.lang.String lemma
The value for the lemma field


syntactic_category

private int syntactic_category
The value for the syntactic_category field


sense_cnt

private int sense_cnt
The value for the sense_cnt field


wn_extender_id

private org.apache.torque.om.NumberKey wn_extender_id
The value for the wn_extender_id field


aWnExtender

private WnExtender aWnExtender

collWnLemmaSynsets

protected java.util.List collWnLemmaSynsets
Collection to store aggregation of collWnLemmaSynsets


lastWnLemmaSynsetsCriteria

private org.apache.torque.util.Criteria lastWnLemmaSynsetsCriteria
The criteria used to select the current contents of collWnLemmaSynsets


fieldNames

private static java.util.List fieldNames

alreadyInSave

private boolean alreadyInSave
flag to prevent endless save loop, if this object is referenced by another object which falls in this transaction.

Constructor Detail

BaseWnLemma

public BaseWnLemma()
Method Detail

getWnLemmaId

public org.apache.torque.om.NumberKey getWnLemmaId()
Get the WnLemmaId

Returns:
NumberKey

setWnLemmaId

public void setWnLemmaId(org.apache.torque.om.NumberKey v)
                  throws org.apache.torque.TorqueException
Set the value of WnLemmaId

Throws:
org.apache.torque.TorqueException

setWnLemmaId

public void setWnLemmaId(java.lang.String v)
                  throws org.apache.torque.TorqueException
Set the value of WnLemmaId as a string.

Throws:
org.apache.torque.TorqueException

getLemma

public java.lang.String getLemma()
Get the Lemma

Returns:
String

setLemma

public void setLemma(java.lang.String v)
Set the value of Lemma


getSyntacticCategory

public int getSyntacticCategory()
Get the SyntacticCategory

Returns:
int

setSyntacticCategory

public void setSyntacticCategory(int v)
Set the value of SyntacticCategory


getSenseCnt

public int getSenseCnt()
Get the SenseCnt

Returns:
int

setSenseCnt

public void setSenseCnt(int v)
Set the value of SenseCnt


getWnExtenderId

public org.apache.torque.om.NumberKey getWnExtenderId()
Get the WnExtenderId

Returns:
NumberKey

setWnExtenderId

public void setWnExtenderId(org.apache.torque.om.NumberKey v)
                     throws org.apache.torque.TorqueException
Set the value of WnExtenderId

Throws:
org.apache.torque.TorqueException

setWnExtenderId

public void setWnExtenderId(java.lang.String v)
                     throws org.apache.torque.TorqueException
Set the value of WnExtenderId as a string.

Throws:
org.apache.torque.TorqueException

setWnExtender

public void setWnExtender(WnExtender v)
                   throws org.apache.torque.TorqueException
Declares an association between this object and a WnExtender object

Parameters:
v - WnExtender
Throws:
org.apache.torque.TorqueException

getWnExtender

public WnExtender getWnExtender()
                         throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

setWnExtenderKey

public void setWnExtenderKey(org.apache.torque.om.ObjectKey key)
                      throws org.apache.torque.TorqueException
Provides convenient way to set a relationship based on a ObjectKey. e.g. bar.setFooKey(foo.getPrimaryKey())

Throws:
org.apache.torque.TorqueException

initWnLemmaSynsets

protected void initWnLemmaSynsets()
Temporary storage of collWnLemmaSynsets to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.


addWnLemmaSynset

public void addWnLemmaSynset(WnLemmaSynset l)
                      throws org.apache.torque.TorqueException
Method called to associate a WnLemmaSynset object to this object through the WnLemmaSynset foreign key attribute

Parameters:
l - WnLemmaSynset
Throws:
org.apache.torque.TorqueException

getWnLemmaSynsets

public java.util.List getWnLemmaSynsets()
                                 throws org.apache.torque.TorqueException
If this collection has already been initialized, returns the collection. Otherwise returns the results of getWnLemmaSynsets(new Criteria())

Throws:
org.apache.torque.TorqueException

getWnLemmaSynsets

public java.util.List getWnLemmaSynsets(org.apache.torque.util.Criteria criteria)
                                 throws org.apache.torque.TorqueException
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this WnLemma has previously been saved, it will retrieve related WnLemmaSynsets from storage. If this WnLemma is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.

Throws:
org.apache.torque.TorqueException

getWnLemmaSynsetsJoinWnExtender

protected java.util.List getWnLemmaSynsetsJoinWnExtender(org.apache.torque.util.Criteria criteria)
                                                  throws org.apache.torque.TorqueException
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this WnLemma is new, it will return an empty collection; or if this WnLemma has previously been saved, it will retrieve related WnLemmaSynsets from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in WnLemma.

Throws:
org.apache.torque.TorqueException

getWnLemmaSynsetsJoinWnSynset

protected java.util.List getWnLemmaSynsetsJoinWnSynset(org.apache.torque.util.Criteria criteria)
                                                throws org.apache.torque.TorqueException
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this WnLemma is new, it will return an empty collection; or if this WnLemma has previously been saved, it will retrieve related WnLemmaSynsets from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in WnLemma.

Throws:
org.apache.torque.TorqueException

getFieldNames

public static java.util.List getFieldNames()
Generate a list of field names.


getByName

public java.lang.Object getByName(java.lang.String name)
Retrieves a field from the object by name passed in as a String.


getByPeerName

public java.lang.Object getByPeerName(java.lang.String name)
Retrieves a field from the object by name passed in as a String. The String must be one of the static Strings defined in this Class' Peer.


getByPosition

public java.lang.Object getByPosition(int pos)
Retrieves a field from the object by Position as specified in the xml schema. Zero-based.


save

public void save()
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.

Throws:
java.lang.Exception

save

public void save(java.lang.String dbName)
          throws org.apache.torque.TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. Note: this code is here because the method body is auto-generated conditionally and therefore needs to be in this file instead of in the super class, BaseObject.

Throws:
org.apache.torque.TorqueException

save

public void save(org.apache.torque.pool.DBConnection dbCon)
          throws org.apache.torque.TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method is meant to be used as part of a transaction, otherwise use the save() method and the connection details will be handled internally

Throws:
org.apache.torque.TorqueException

setPrimaryKey

public void setPrimaryKey(org.apache.torque.om.ObjectKey wn_lemma_id)
                   throws org.apache.torque.TorqueException
Set the PrimaryKey using ObjectKey.

Parameters:
wn_lemma_id - ObjectKey
Throws:
org.apache.torque.TorqueException

setPrimaryKey

public void setPrimaryKey(java.lang.String key)
                   throws org.apache.torque.TorqueException
Set the PrimaryKey using a String.

Throws:
org.apache.torque.TorqueException

getPrimaryKey

public org.apache.torque.om.ObjectKey getPrimaryKey()
returns an id that differentiates this object from others of its class.


copy

public WnLemma copy()
             throws org.apache.torque.TorqueException
Makes a copy of this object. It creates a new object filling in the simple attributes. It then fills all the association collections and sets the related objects to isNew=true.

Throws:
org.apache.torque.TorqueException

copyInto

protected WnLemma copyInto(WnLemma copyObj)
                    throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getPeer

public WnLemmaPeer getPeer()
returns a peer instance associated with this om. Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior.



Universita' di Modena e Reggio Emilia