com.pnpconsult.zeiterfassung.model
Class AbstractUserEntry
java.lang.Object
com.pnpconsult.zeiterfassung.model.DescriptiveObject
com.pnpconsult.zeiterfassung.model.TimestampedObject
com.pnpconsult.zeiterfassung.model.AbstractBaseEntry
com.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
| 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractUserEntry
public AbstractUserEntry()
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:
- User name
- Date
- Project
- Activity
- Target date
- Information
- Hours
- ...
- 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.