it.unimo.dbgroup.momis.om
Class BaseWnExtender

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

public abstract class BaseWnExtender
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 WnExtender

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.
protected  java.util.List collWnLemmas
          Collection to store aggregation of collWnLemmas
protected  java.util.List collWnLemmaSynsets
          Collection to store aggregation of collWnLemmaSynsets
protected  java.util.List collWnRelationships
          Collection to store aggregation of collWnRelationships
protected  java.util.List collWnSynsets
          Collection to store aggregation of collWnSynsets
private  java.lang.String description
          The value for the description field
private static java.util.List fieldNames
           
private  org.apache.torque.util.Criteria lastWnLemmasCriteria
          The criteria used to select the current contents of collWnLemmas
private  org.apache.torque.util.Criteria lastWnLemmaSynsetsCriteria
          The criteria used to select the current contents of collWnLemmaSynsets
private  org.apache.torque.util.Criteria lastWnRelationshipsCriteria
          The criteria used to select the current contents of collWnRelationships
private  org.apache.torque.util.Criteria lastWnSynsetsCriteria
          The criteria used to select the current contents of collWnSynsets
private  java.lang.String name
          The value for the name field
private static WnExtenderPeer peer
          The Peer class
private  org.apache.torque.om.NumberKey wn_extender_id
          The value for the wn_extender_id field
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
BaseWnExtender()
           
 
Method Summary
 void addWnLemma(WnLemma l)
          Method called to associate a WnLemma object to this object through the WnLemma foreign key attribute
 void addWnLemmaSynset(WnLemmaSynset l)
          Method called to associate a WnLemmaSynset object to this object through the WnLemmaSynset foreign key attribute
 void addWnRelationship(WnRelationship l)
          Method called to associate a WnRelationship object to this object through the WnRelationship foreign key attribute
 void addWnSynset(WnSynset l)
          Method called to associate a WnSynset object to this object through the WnSynset foreign key attribute
 WnExtender copy()
          Makes a copy of this object.
protected  WnExtender copyInto(WnExtender 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.
 java.lang.String getDescription()
          Get the Description
static java.util.List getFieldNames()
          Generate a list of field names.
 java.lang.String getName()
          Get the Name
 WnExtenderPeer 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.
 org.apache.torque.om.NumberKey getWnExtenderId()
          Get the WnExtenderId
 java.util.List getWnLemmas()
          If this collection has already been initialized, returns the collection.
 java.util.List getWnLemmas(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 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 getWnLemmaSynsetsJoinWnLemma(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.
 java.util.List getWnRelationships()
          If this collection has already been initialized, returns the collection.
 java.util.List getWnRelationships(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 getWnRelationshipsJoinWnRelationshipType(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 getWnRelationshipsJoinWnSynsetRelatedByWnSourceSynsetId(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 getWnRelationshipsJoinWnSynsetRelatedByWnTargetSynsetId(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.util.List getWnSynsets()
          If this collection has already been initialized, returns the collection.
 java.util.List getWnSynsets(org.apache.torque.util.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  void initWnLemmas()
          Temporary storage of collWnLemmas to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
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.
protected  void initWnRelationships()
          Temporary storage of collWnRelationships to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initWnSynsets()
          Temporary storage of collWnSynsets 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 setDescription(java.lang.String v)
          Set the value of Description
 void setName(java.lang.String v)
          Set the value of Name
 void setPrimaryKey(org.apache.torque.om.ObjectKey wn_extender_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 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.
 
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 WnExtenderPeer peer
The Peer class


wn_extender_id

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


name

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


description

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


collWnSynsets

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


lastWnSynsetsCriteria

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


collWnLemmas

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


lastWnLemmasCriteria

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


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


collWnRelationships

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


lastWnRelationshipsCriteria

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


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

BaseWnExtender

public BaseWnExtender()
Method Detail

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

getName

public java.lang.String getName()
Get the Name

Returns:
String

setName

public void setName(java.lang.String v)
Set the value of Name


getDescription

public java.lang.String getDescription()
Get the Description

Returns:
String

setDescription

public void setDescription(java.lang.String v)
Set the value of Description


initWnSynsets

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


addWnSynset

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

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

getWnSynsets

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

Throws:
org.apache.torque.TorqueException

getWnSynsets

public java.util.List getWnSynsets(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 WnExtender has previously been saved, it will retrieve related WnSynsets from storage. If this WnExtender 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

initWnLemmas

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


addWnLemma

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

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

getWnLemmas

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

Throws:
org.apache.torque.TorqueException

getWnLemmas

public java.util.List getWnLemmas(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 WnExtender has previously been saved, it will retrieve related WnLemmas from storage. If this WnExtender 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

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 WnExtender has previously been saved, it will retrieve related WnLemmaSynsets from storage. If this WnExtender 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

getWnLemmaSynsetsJoinWnLemma

protected java.util.List getWnLemmaSynsetsJoinWnLemma(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 WnExtender is new, it will return an empty collection; or if this WnExtender 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 WnExtender.

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 WnExtender is new, it will return an empty collection; or if this WnExtender 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 WnExtender.

Throws:
org.apache.torque.TorqueException

initWnRelationships

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


addWnRelationship

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

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

getWnRelationships

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

Throws:
org.apache.torque.TorqueException

getWnRelationships

public java.util.List getWnRelationships(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 WnExtender has previously been saved, it will retrieve related WnRelationships from storage. If this WnExtender 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

getWnRelationshipsJoinWnSynsetRelatedByWnSourceSynsetId

protected java.util.List getWnRelationshipsJoinWnSynsetRelatedByWnSourceSynsetId(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 WnExtender is new, it will return an empty collection; or if this WnExtender has previously been saved, it will retrieve related WnRelationships 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 WnExtender.

Throws:
org.apache.torque.TorqueException

getWnRelationshipsJoinWnSynsetRelatedByWnTargetSynsetId

protected java.util.List getWnRelationshipsJoinWnSynsetRelatedByWnTargetSynsetId(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 WnExtender is new, it will return an empty collection; or if this WnExtender has previously been saved, it will retrieve related WnRelationships 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 WnExtender.

Throws:
org.apache.torque.TorqueException

getWnRelationshipsJoinWnRelationshipType

protected java.util.List getWnRelationshipsJoinWnRelationshipType(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 WnExtender is new, it will return an empty collection; or if this WnExtender has previously been saved, it will retrieve related WnRelationships 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 WnExtender.

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_extender_id)
                   throws org.apache.torque.TorqueException
Set the PrimaryKey using ObjectKey.

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

getPeer

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