com.mycompany.expense
Class ReportEntry

java.lang.Object
  extended bycom.mycompany.expense.ReportEntry
All Implemented Interfaces:
java.io.Serializable

public class ReportEntry
extends java.lang.Object
implements java.io.Serializable

This class represents an entry in a Report.

Version:
1.0
Author:
Hans Bergsten, Gefion Software
See Also:
Serialized Form

Field Summary
private  double amount
           
private  java.util.Date date
           
private  int id
           
private  int type
           
 
Constructor Summary
ReportEntry()
          Creates a new, empty instance.
ReportEntry(ReportEntry src)
          Creates an instance that is a copy of the provided instance.
 
Method Summary
 double getAmount()
          Returns the entry amount.
 java.util.Date getDate()
          Returns the entry date.
 int getId()
          Returns the entry ID.
 int getType()
          Returns the entry type.
 void setAmount(double amount)
          Sets the entry amount.
 void setDate(java.util.Date date)
          Sets the entry date.
 void setId(int id)
          Sets the entry ID.
 void setType(int type)
          Sets the entry type.
 java.lang.String toString()
          Returns a String with all entry properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id

date

private java.util.Date date

type

private int type

amount

private double amount
Constructor Detail

ReportEntry

public ReportEntry()
Creates a new, empty instance.


ReportEntry

public ReportEntry(ReportEntry src)
Creates an instance that is a copy of the provided instance.

Method Detail

getId

public int getId()
Returns the entry ID.


setId

public void setId(int id)
Sets the entry ID.


getDate

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


setDate

public void setDate(java.util.Date date)
Sets the entry date.


getType

public int getType()
Returns the entry type.


setType

public void setType(int type)
Sets the entry type.


getAmount

public double getAmount()
Returns the entry amount.


setAmount

public void setAmount(double amount)
Sets the entry amount.


toString

public java.lang.String toString()
Returns a String with all entry properties.