com.opnworks.timesheet.domain
Class Invoice

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

public class Invoice
extends java.lang.Object
implements IPersistent, INamedObject

Author:
Hibernate CodeGenerator
See Also:
Serialized Form

Constructor Summary
Invoice()
          default constructor
 
Method Summary
 boolean equals(java.lang.Object other)
          Description of the Method
 IOrganization getCustomer()
          Gets the Customer attribute of the Invoice object
 java.util.Calendar getEndDate()
          Gets the EndDate attribute of the Invoice object
 java.lang.Long getId()
          Gets the Id attribute of the Invoice object
 java.lang.String getName()
          Gets the Name attribute of the Invoice object
 java.lang.String getNumber()
           
 java.util.Calendar getStartDate()
          Gets the StartDate attribute of the Invoice object
 int getState()
          Gets the State attribute of the Invoice object
 java.lang.String getStateAsString()
           
 int getVersion()
          Gets the Version attribute of the Invoice object
 int hashCode()
          Description of the Method
 java.util.Map lineItemsPerProject()
          Description of the Method
 void setCustomer(IOrganization customer)
          Sets the Customer attribute of the Invoice object
 void setEndDate(java.util.Calendar calendar)
          Sets the EndDate attribute of the Invoice object
 void setId(java.lang.Long id)
          Sets the Id attribute of the Invoice object
 void setNumber(java.lang.String string)
           
 void setStartDate(java.util.Calendar calendar)
          Sets the StartDate attribute of the Invoice object
 void setState(int state)
          Sets the State attribute of the Invoice object
 void setVersion(int version)
          Sets the Version attribute of the Invoice object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invoice

public Invoice()
default constructor

Method Detail

setId

public void setId(java.lang.Long id)
Sets the Id attribute of the Invoice object

Specified by:
setId in interface IPersistent
Parameters:
id - The new Id value

setCustomer

public void setCustomer(IOrganization customer)
Sets the Customer attribute of the Invoice object

Parameters:
customer - The new Customer value

setState

public void setState(int state)
Sets the State attribute of the Invoice object

Parameters:
state - The new State value

setStartDate

public void setStartDate(java.util.Calendar calendar)
Sets the StartDate attribute of the Invoice object

Parameters:
calendar - The new StartDate value

setEndDate

public void setEndDate(java.util.Calendar calendar)
Sets the EndDate attribute of the Invoice object

Parameters:
calendar - The new EndDate value

setVersion

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

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

setNumber

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

getId

public java.lang.Long getId()
Gets the Id attribute of the Invoice object

Specified by:
getId in interface IPersistent
Returns:
The Id value

getCustomer

public IOrganization getCustomer()
Gets the Customer attribute of the Invoice object

Returns:
The Customer value

getState

public int getState()
Gets the State attribute of the Invoice object

Returns:
The State value

getStartDate

public java.util.Calendar getStartDate()
Gets the StartDate attribute of the Invoice object

Returns:
The StartDate value

getEndDate

public java.util.Calendar getEndDate()
Gets the EndDate attribute of the Invoice object

Returns:
The EndDate value

getVersion

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

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

getNumber

public java.lang.String getNumber()
Returns:

getStateAsString

public java.lang.String getStateAsString()
Returns:

getName

public java.lang.String getName()
Gets the Name attribute of the Invoice object

Specified by:
getName in interface INamedObject
Returns:
The Name value

toString

public java.lang.String toString()
Description of the Method

Returns:
Description of the Returned 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

lineItemsPerProject

public java.util.Map lineItemsPerProject()
                                  throws TimesheetException
Description of the Method

Returns:
Description of the Returned Value
Throws:
TimesheetException - Description of Exception