com.opnworks.timesheet.domain
Class TimesheetLineItem

java.lang.Object
  extended bycom.opnworks.timesheet.domain.TimesheetLineItem
All Implemented Interfaces:
IPersistent, java.io.Serializable

public class TimesheetLineItem
extends java.lang.Object
implements IPersistent

This class is used to represent timesheet line items. It implements the IPersistent interface.

Author:
laurent
See Also:
Serialized Form

Constructor Summary
TimesheetLineItem()
          Default constructor
 
Method Summary
 boolean equals(java.lang.Object other)
          Description of the Method
 ActivityType getActivityType()
           
 java.lang.String getCostCenter()
           
 IOrganization getCustomer()
           
 java.lang.String getDescription()
           
 java.lang.Float[] getHours()
           
 float getHours(int day)
          Return number of hours for line item for day
 java.lang.Long getId()
          Gets the Id attribute of the IPersistent object
 Project getProject()
           
 float getTotal()
           
 int getVersion()
          Gets the Version attribute of the TimesheetLineItem object
 int hashCode()
          Description of the Method
 void setActivityType(ActivityType type)
           
 void setDescription(java.lang.String string)
           
 void setHours(java.lang.Float[] floats)
           
 void setHours(int day, float numberOfHours)
           
 void setId(java.lang.Long id)
          Sets the Id attribute of the IPersistent object
 void setProject(Project project)
           
 void setVersion(int version)
          Sets the Version attribute of the TimesheetLineItem object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimesheetLineItem

public TimesheetLineItem()
Default constructor

Method Detail

setActivityType

public void setActivityType(ActivityType type)
Parameters:
type -

setDescription

public void setDescription(java.lang.String string)
Parameters:
string -

setProject

public void setProject(Project project)
Parameters:
project -

setHours

public void setHours(int day,
                     float numberOfHours)
Parameters:
day - int Index of day
numberOfHours - float Number of hours for day for line item

setId

public void setId(java.lang.Long id)
Description copied from interface: IPersistent
Sets the Id attribute of the IPersistent object

Specified by:
setId in interface IPersistent
Parameters:
id -

setHours

public void setHours(java.lang.Float[] floats)
Parameters:
floats -

setVersion

public void setVersion(int version)
Sets the Version attribute of the TimesheetLineItem object

Specified by:
setVersion in interface IPersistent
Parameters:
version - The new Version value

getActivityType

public ActivityType getActivityType()
Returns:

getCustomer

public IOrganization getCustomer()
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getHours

public java.lang.Float[] getHours()
Returns:

getTotal

public float getTotal()
Returns:

getProject

public Project getProject()
Returns:

getHours

public float getHours(int day)
Return number of hours for line item for day

Parameters:
day - Description of Parameter
Returns:
The Hours value

getId

public java.lang.Long getId()
Description copied from interface: IPersistent
Gets the Id attribute of the IPersistent object

Specified by:
getId in interface IPersistent
Returns:

getCostCenter

public java.lang.String getCostCenter()
Returns:

getVersion

public int getVersion()
Gets the Version attribute of the TimesheetLineItem object

Specified by:
getVersion in interface IPersistent
Returns:
The Version value

equals

public boolean equals(java.lang.Object other)
Description of the Method

Parameters:
other - Description of Parameter
Returns:
Description of the Returned Value

hashCode

public int hashCode()
Description of the Method

Returns:
Description of the Returned Value