it.unimo.dbgroup.momis.om
Class BaseWnLemmaSynset

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

public abstract class BaseWnLemmaSynset
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 WnLemmaSynset

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
           
private  WnLemma aWnLemma
           
private  WnSynset aWnSynset
           
private static java.util.List fieldNames
           
private  int lemma_number
          The value for the lemma_number field
private static WnLemmaSynsetPeer peer
          The Peer class
private  int sense_number
          The value for the sense_number 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
private  org.apache.torque.om.NumberKey wn_lemma_synset_id
          The value for the wn_lemma_synset_id field
private  org.apache.torque.om.NumberKey wn_synset_id
          The value for the wn_synset_id field
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
BaseWnLemmaSynset()
           
 
Method Summary
 WnLemmaSynset copy()
          Makes a copy of this object.
protected  WnLemmaSynset copyInto(WnLemmaSynset 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.
 int getLemmaNumber()
          Get the LemmaNumber
 WnLemmaSynsetPeer 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 getSenseNumber()
          Get the SenseNumber
 WnExtender getWnExtender()
           
 org.apache.torque.om.NumberKey getWnExtenderId()
          Get the WnExtenderId
 WnLemma getWnLemma()
           
 org.apache.torque.om.NumberKey getWnLemmaId()
          Get the WnLemmaId
 org.apache.torque.om.NumberKey getWnLemmaSynsetId()
          Get the WnLemmaSynsetId
 WnSynset getWnSynset()
           
 org.apache.torque.om.NumberKey getWnSynsetId()
          Get the WnSynsetId
 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 setLemmaNumber(int v)
          Set the value of LemmaNumber
 void setPrimaryKey(org.apache.torque.om.ObjectKey wn_lemma_synset_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setSenseNumber(int v)
          Set the value of SenseNumber
 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 setWnLemma(WnLemma v)
          Declares an association between this object and a WnLemma object
 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.
 void setWnLemmaKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setWnLemmaSynsetId(org.apache.torque.om.NumberKey v)
          Set the value of WnLemmaSynsetId
 void setWnLemmaSynsetId(java.lang.String v)
          Set the value of WnLemmaSynsetId as a string.
 void setWnSynset(WnSynset v)
          Declares an association between this object and a WnSynset object
 void setWnSynsetId(org.apache.torque.om.NumberKey v)
          Set the value of WnSynsetId
 void setWnSynsetId(java.lang.String v)
          Set the value of WnSynsetId as a string.
 void setWnSynsetKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 
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 WnLemmaSynsetPeer peer
The Peer class


wn_lemma_synset_id

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


wn_synset_id

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


wn_lemma_id

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


lemma_number

private int lemma_number
The value for the lemma_number field


sense_number

private int sense_number
The value for the sense_number 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

aWnLemma

private WnLemma aWnLemma

aWnSynset

private WnSynset aWnSynset

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

BaseWnLemmaSynset

public BaseWnLemmaSynset()
Method Detail

getWnLemmaSynsetId

public org.apache.torque.om.NumberKey getWnLemmaSynsetId()
Get the WnLemmaSynsetId

Returns:
NumberKey

setWnLemmaSynsetId

public void setWnLemmaSynsetId(org.apache.torque.om.NumberKey v)
Set the value of WnLemmaSynsetId


setWnLemmaSynsetId

public void setWnLemmaSynsetId(java.lang.String v)
Set the value of WnLemmaSynsetId as a string.


getWnSynsetId

public org.apache.torque.om.NumberKey getWnSynsetId()
Get the WnSynsetId

Returns:
NumberKey

setWnSynsetId

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

Throws:
org.apache.torque.TorqueException

setWnSynsetId

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

Throws:
org.apache.torque.TorqueException

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

getLemmaNumber

public int getLemmaNumber()
Get the LemmaNumber

Returns:
int

setLemmaNumber

public void setLemmaNumber(int v)
Set the value of LemmaNumber


getSenseNumber

public int getSenseNumber()
Get the SenseNumber

Returns:
int

setSenseNumber

public void setSenseNumber(int v)
Set the value of SenseNumber


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

setWnLemma

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

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

getWnLemma

public WnLemma getWnLemma()
                   throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

setWnLemmaKey

public void setWnLemmaKey(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

setWnSynset

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

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

getWnSynset

public WnSynset getWnSynset()
                     throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

setWnSynsetKey

public void setWnSynsetKey(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

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_synset_id)
Set the PrimaryKey using ObjectKey.

Parameters:
wn_lemma_synset_id - ObjectKey

setPrimaryKey

public void setPrimaryKey(java.lang.String key)
Set the PrimaryKey using a String.


getPrimaryKey

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


copy

public WnLemmaSynset 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 WnLemmaSynset copyInto(WnLemmaSynset copyObj)
                          throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getPeer

public WnLemmaSynsetPeer 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