it.unimo.dbgroup.momis.om
Class BaseWnRelationship

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

public abstract class BaseWnRelationship
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 WnRelationship

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  WnRelationshipType aWnRelationshipType
           
private  WnSynset aWnSynsetRelatedByWnSourceSynsetId
           
private  WnSynset aWnSynsetRelatedByWnTargetSynsetId
           
private static java.util.List fieldNames
           
private static WnRelationshipPeer peer
          The Peer class
private  org.apache.torque.om.NumberKey wn_extender_id
          The value for the wn_extender_id field
private  org.apache.torque.om.NumberKey wn_relationship_id
          The value for the wn_relationship_id field
private  org.apache.torque.om.NumberKey wn_relationship_type_id
          The value for the wn_relationship_type_id field
private  int wn_source_lemma_number
          The value for the wn_source_lemma_number field
private  org.apache.torque.om.NumberKey wn_source_synset_id
          The value for the wn_source_synset_id field
private  int wn_target_lemma_number
          The value for the wn_target_lemma_number field
private  org.apache.torque.om.NumberKey wn_target_synset_id
          The value for the wn_target_synset_id field
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
BaseWnRelationship()
           
 
Method Summary
 WnRelationship copy()
          Makes a copy of this object.
protected  WnRelationship copyInto(WnRelationship 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.
 WnRelationshipPeer 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.
 WnExtender getWnExtender()
           
 org.apache.torque.om.NumberKey getWnExtenderId()
          Get the WnExtenderId
 org.apache.torque.om.NumberKey getWnRelationshipId()
          Get the WnRelationshipId
 WnRelationshipType getWnRelationshipType()
           
 org.apache.torque.om.NumberKey getWnRelationshipTypeId()
          Get the WnRelationshipTypeId
 int getWnSourceLemmaNumber()
          Get the WnSourceLemmaNumber
 org.apache.torque.om.NumberKey getWnSourceSynsetId()
          Get the WnSourceSynsetId
 WnSynset getWnSynsetRelatedByWnSourceSynsetId()
           
 WnSynset getWnSynsetRelatedByWnTargetSynsetId()
           
 int getWnTargetLemmaNumber()
          Get the WnTargetLemmaNumber
 org.apache.torque.om.NumberKey getWnTargetSynsetId()
          Get the WnTargetSynsetId
 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 setPrimaryKey(org.apache.torque.om.ObjectKey wn_relationship_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 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 setWnRelationshipId(org.apache.torque.om.NumberKey v)
          Set the value of WnRelationshipId
 void setWnRelationshipId(java.lang.String v)
          Set the value of WnRelationshipId as a string.
 void setWnRelationshipType(WnRelationshipType v)
          Declares an association between this object and a WnRelationshipType object
 void setWnRelationshipTypeId(org.apache.torque.om.NumberKey v)
          Set the value of WnRelationshipTypeId
 void setWnRelationshipTypeId(java.lang.String v)
          Set the value of WnRelationshipTypeId as a string.
 void setWnRelationshipTypeKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setWnSourceLemmaNumber(int v)
          Set the value of WnSourceLemmaNumber
 void setWnSourceSynsetId(org.apache.torque.om.NumberKey v)
          Set the value of WnSourceSynsetId
 void setWnSourceSynsetId(java.lang.String v)
          Set the value of WnSourceSynsetId as a string.
 void setWnSynsetRelatedByWnSourceSynsetId(WnSynset v)
          Declares an association between this object and a WnSynset object
 void setWnSynsetRelatedByWnSourceSynsetIdKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setWnSynsetRelatedByWnTargetSynsetId(WnSynset v)
          Declares an association between this object and a WnSynset object
 void setWnSynsetRelatedByWnTargetSynsetIdKey(org.apache.torque.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setWnTargetLemmaNumber(int v)
          Set the value of WnTargetLemmaNumber
 void setWnTargetSynsetId(org.apache.torque.om.NumberKey v)
          Set the value of WnTargetSynsetId
 void setWnTargetSynsetId(java.lang.String v)
          Set the value of WnTargetSynsetId 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 WnRelationshipPeer peer
The Peer class


wn_relationship_id

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


wn_source_synset_id

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


wn_target_synset_id

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


wn_source_lemma_number

private int wn_source_lemma_number
The value for the wn_source_lemma_number field


wn_target_lemma_number

private int wn_target_lemma_number
The value for the wn_target_lemma_number field


wn_relationship_type_id

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


wn_extender_id

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


aWnSynsetRelatedByWnSourceSynsetId

private WnSynset aWnSynsetRelatedByWnSourceSynsetId

aWnSynsetRelatedByWnTargetSynsetId

private WnSynset aWnSynsetRelatedByWnTargetSynsetId

aWnRelationshipType

private WnRelationshipType aWnRelationshipType

aWnExtender

private WnExtender aWnExtender

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

BaseWnRelationship

public BaseWnRelationship()
Method Detail

getWnRelationshipId

public org.apache.torque.om.NumberKey getWnRelationshipId()
Get the WnRelationshipId

Returns:
NumberKey

setWnRelationshipId

public void setWnRelationshipId(org.apache.torque.om.NumberKey v)
Set the value of WnRelationshipId


setWnRelationshipId

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


getWnSourceSynsetId

public org.apache.torque.om.NumberKey getWnSourceSynsetId()
Get the WnSourceSynsetId

Returns:
NumberKey

setWnSourceSynsetId

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

Throws:
org.apache.torque.TorqueException

setWnSourceSynsetId

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

Throws:
org.apache.torque.TorqueException

getWnTargetSynsetId

public org.apache.torque.om.NumberKey getWnTargetSynsetId()
Get the WnTargetSynsetId

Returns:
NumberKey

setWnTargetSynsetId

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

Throws:
org.apache.torque.TorqueException

setWnTargetSynsetId

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

Throws:
org.apache.torque.TorqueException

getWnSourceLemmaNumber

public int getWnSourceLemmaNumber()
Get the WnSourceLemmaNumber

Returns:
int

setWnSourceLemmaNumber

public void setWnSourceLemmaNumber(int v)
Set the value of WnSourceLemmaNumber


getWnTargetLemmaNumber

public int getWnTargetLemmaNumber()
Get the WnTargetLemmaNumber

Returns:
int

setWnTargetLemmaNumber

public void setWnTargetLemmaNumber(int v)
Set the value of WnTargetLemmaNumber


getWnRelationshipTypeId

public org.apache.torque.om.NumberKey getWnRelationshipTypeId()
Get the WnRelationshipTypeId

Returns:
NumberKey

setWnRelationshipTypeId

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

Throws:
org.apache.torque.TorqueException

setWnRelationshipTypeId

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

Throws:
org.apache.torque.TorqueException

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

setWnSynsetRelatedByWnSourceSynsetId

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

getWnSynsetRelatedByWnSourceSynsetId

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

setWnSynsetRelatedByWnSourceSynsetIdKey

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

setWnSynsetRelatedByWnTargetSynsetId

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

getWnSynsetRelatedByWnTargetSynsetId

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

setWnSynsetRelatedByWnTargetSynsetIdKey

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

setWnRelationshipType

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

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

getWnRelationshipType

public WnRelationshipType getWnRelationshipType()
                                         throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

setWnRelationshipTypeKey

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

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

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

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

getPeer

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