com.pnpconsult.zeiterfassung.model
Class AbstractUserEntry

java.lang.Object
  extended bycom.pnpconsult.zeiterfassung.model.DescriptiveObject
      extended bycom.pnpconsult.zeiterfassung.model.TimestampedObject
          extended bycom.pnpconsult.zeiterfassung.model.AbstractBaseEntry
              extended bycom.pnpconsult.zeiterfassung.model.AbstractUserEntry
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
BackupUserEntry, UserEntry

public abstract class AbstractUserEntry
extends AbstractBaseEntry

Version:
$Id: AbstractUserEntry.java,v 1.10 2004/07/21 22:13:11 powerpete Exp $
Author:
M. Petersen
See Also:
Serialized Form

Constructor Summary
AbstractUserEntry()
           
 
Method Summary
protected  Description buildDescription()
          Returns the description constructed from the partner, involved,targetDate and information fields.
 int compareTo(java.lang.Object o)
          Compares two AbstractUserEntrys, so that they appear in the following order: User name Date Project Activity Target date Information Hours ...
 float computeHourlyRate()
           
 Activity getActivity()
           
 java.lang.String getBillDescription()
          Description for the bill table.
 float getBillingFactor()
           
 java.util.Date getDate()
           
 java.lang.String getFormattedDate()
           
 java.lang.String getInformation()
           
 java.lang.String getInvolved()
           
 java.lang.String getPartner()
           
 float getRate()
           
 java.lang.String getUserDescription()
          Description for the user table.
 void setActivity(Activity activity)
           
 void setBillingFactor(float billingFactor)
           
 void setDate(java.util.Date date)
           
 void setInformation(java.lang.String information)
           
 void setInvolved(java.lang.String involved)
           
 void setPartner(java.lang.String partner)
           
 
Methods inherited from class com.pnpconsult.zeiterfassung.model.AbstractBaseEntry
equals, getHours, getId, getProject, getTargetDate, getUser, hashCode, setHours, setId, setProject, setTargetDate, setUser
 
Methods inherited from class com.pnpconsult.zeiterfassung.model.TimestampedObject
getDateCreated, getDateModified, setDateCreated, setDateModified
 
Methods inherited from class com.pnpconsult.zeiterfassung.model.DescriptiveObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractUserEntry

public AbstractUserEntry()
Method Detail

getActivity

public Activity getActivity()
Returns:
Returns the activity.

setActivity

public void setActivity(Activity activity)
Parameters:
activity - The activity to set.

getBillingFactor

public float getBillingFactor()
Returns:
Returns the billingFactor.

setBillingFactor

public void setBillingFactor(float billingFactor)
Parameters:
billingFactor - The billingFactor to set.

getDate

public java.util.Date getDate()
Returns:
Returns the date.

getFormattedDate

public java.lang.String getFormattedDate()

setDate

public void setDate(java.util.Date date)
Parameters:
date - The date to set.

getInvolved

public java.lang.String getInvolved()
Returns:
Returns the involved.

setInvolved

public void setInvolved(java.lang.String involved)
Parameters:
involved - The involved to set.

getPartner

public java.lang.String getPartner()
Returns:
Returns the partner.

setPartner

public void setPartner(java.lang.String partner)
Parameters:
partner - The partner to set.

buildDescription

protected Description buildDescription()
Returns the description constructed from the partner, involved,targetDate and information fields.

Overrides:
buildDescription in class DescriptiveObject
Returns:
The description.

getInformation

public java.lang.String getInformation()
Returns:
Returns the information.

setInformation

public void setInformation(java.lang.String information)
Parameters:
information - The information to set.

computeHourlyRate

public float computeHourlyRate()

getRate

public float getRate()
Specified by:
getRate in class AbstractBaseEntry

compareTo

public int compareTo(java.lang.Object o)
Compares two AbstractUserEntrys, so that they appear in the following order:
  1. User name
  2. Date
  3. Project
  4. Activity
  5. Target date
  6. Information
  7. Hours
  8. ...

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class DescriptiveObject
See Also:
Comparable.compareTo(java.lang.Object)

getBillDescription

public java.lang.String getBillDescription()
Description copied from class: AbstractBaseEntry
Description for the bill table.

Specified by:
getBillDescription in class AbstractBaseEntry
Returns:
The description for the bill table.

getUserDescription

public java.lang.String getUserDescription()
Description copied from class: AbstractBaseEntry
Description for the user table.

Specified by:
getUserDescription in class AbstractBaseEntry
Returns:
The description for the user table.


Copyright © 2003-2004 PNP Unternehmensberatung. All Rights Reserved.