org.tigris.scarab.om
Class Activity

java.lang.Object
  extended byorg.apache.torque.om.BaseObject
      extended byorg.tigris.scarab.om.BaseActivity
          extended byorg.tigris.scarab.om.Activity
All Implemented Interfaces:
org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable

public class Activity
extends BaseActivity
implements org.apache.torque.om.Persistent

This class represents Activity records.

Version:
$Id: Activity.java 10349 2006-11-08 16:59:26Z ronvoe122 $
Author:
John McNally, Jon S. Stevens
See Also:
Serialized Form

Field Summary
protected static java.lang.String GET_ATTACHMENT
           
 
Fields inherited from class org.tigris.scarab.om.BaseActivity
collNotificationStatuss
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
Activity()
           
 
Method Summary
 Activity copy(Issue issue, ActivitySet activitySet)
           
 Attachment getAttachment()
          This method properly handles the case where there may not be any rows selected and returns null in that case.
 java.lang.String getDescription()
          Get the Description
 java.lang.String getDescription(ScarabLocalizationTool l10nTool)
           
 java.lang.String getDisplayName()
          Gives the name of the attribute in the module,or falls back to the global name of the attribute if needed.
 AttributeOption getNewAttributeOption()
          Gets the AttributeOption object associated with the New Value field (i.e., the new value for the attribute after the change.)
 AttributeOption getOldAttributeOption()
          Gets the AttributeOption object associated with the Old Value field (i.e., the old value for the attribute before the change.)
 void save(java.sql.Connection dbCon)
          Stores the object in the database.
 
Methods inherited from class org.tigris.scarab.om.BaseActivity
addNotificationStatus, copy, copyInto, getActivityId, getActivitySet, getActivitySet, getActivityType, getAttachment, getAttachmentId, getAttribute, getAttribute, getAttributeId, getAttributeOptionRelatedByNewOptionId, getAttributeOptionRelatedByNewOptionId, getAttributeOptionRelatedByOldOptionId, getAttributeOptionRelatedByOldOptionId, getByName, getByPeerName, getByPosition, getDepend, getDepend, getDependId, getEndDate, getFieldNames, getIssue, getIssue, getIssueId, getNewNumericValue, getNewOptionId, getNewUserId, getNewValue, getNotificationStatuss, getNotificationStatuss, getNotificationStatuss, getNotificationStatuss, getNotificationStatussJoinActivity, getNotificationStatussJoinScarabUserImpl, getOldNumericValue, getOldOptionId, getOldUserId, getOldValue, getPeer, getPrimaryKey, getQueryKey, getScarabUserRelatedByNewUserId, getScarabUserRelatedByNewUserId, getScarabUserRelatedByOldUserId, getScarabUserRelatedByOldUserId, getTransactionId, initNotificationStatuss, isCacheOnSave, save, save, setActivityId, setActivitySet, setActivitySetKey, setActivityType, setAttachment, setAttachmentId, setAttachmentKey, setAttribute, setAttributeId, setAttributeKey, setAttributeOptionRelatedByNewOptionId, setAttributeOptionRelatedByNewOptionIdKey, setAttributeOptionRelatedByOldOptionId, setAttributeOptionRelatedByOldOptionIdKey, setDepend, setDependId, setDependKey, setDescription, setEndDate, setIssue, setIssueId, setIssueKey, setNewNumericValue, setNewOptionId, setNewUserId, setNewValue, setOldNumericValue, setOldOptionId, setOldUserId, setOldValue, setPrimaryKey, setPrimaryKey, setQueryKey, setScarabUserRelatedByNewUserId, setScarabUserRelatedByNewUserIdKey, setScarabUserRelatedByOldUserId, setScarabUserRelatedByOldUserIdKey, setTransactionId, toString
 
Methods inherited from class org.apache.torque.om.BaseObject
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.torque.om.Persistent
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Field Detail

GET_ATTACHMENT

protected static final java.lang.String GET_ATTACHMENT
See Also:
Constant Field Values
Constructor Detail

Activity

public Activity()
Method Detail

getAttachment

public Attachment getAttachment()
This method properly handles the case where there may not be any rows selected and returns null in that case.

Overrides:
getAttachment in class BaseActivity
Returns:
the associated Attachment object

getOldAttributeOption

public AttributeOption getOldAttributeOption()
                                      throws org.apache.torque.TorqueException
Gets the AttributeOption object associated with the Old Value field (i.e., the old value for the attribute before the change.)

Throws:
org.apache.torque.TorqueException

getNewAttributeOption

public AttributeOption getNewAttributeOption()
                                      throws org.apache.torque.TorqueException
Gets the AttributeOption object associated with the New Value field (i.e., the new value for the attribute after the change.)

Throws:
org.apache.torque.TorqueException

save

public void save(java.sql.Connection dbCon)
          throws org.apache.torque.TorqueException
Description copied from class: BaseActivity
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

Specified by:
save in interface org.apache.torque.om.Persistent
Overrides:
save in class BaseActivity
Parameters:
dbCon -
Throws:
org.apache.torque.TorqueException

getDescription

public java.lang.String getDescription()
Deprecated. Use getDescription(ScarabLocalizationTool l10nTool) instead

Description copied from class: BaseActivity
Get the Description

Overrides:
getDescription in class BaseActivity
Returns:
String

getDescription

public java.lang.String getDescription(ScarabLocalizationTool l10nTool)

getDisplayName

public java.lang.String getDisplayName()
Gives the name of the attribute in the module,or falls back to the global name of the attribute if needed.

Returns:

copy

public Activity copy(Issue issue,
                     ActivitySet activitySet)
              throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException


Copyright © 2000-2004 Tigris.org. All Rights Reserved.