com.opnworks.timesheet.domain
Class CostCenter

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

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

Author:
Hibernate CodeGenerator
See Also:
Serialized Form

Constructor Summary
CostCenter()
          default constructor
CostCenter(java.lang.String code)
          minimal constructor
CostCenter(java.lang.String name, java.lang.String code, java.lang.String description)
          full constructor
 
Method Summary
 boolean equals(java.lang.Object other)
          Description of the Method
 java.lang.String getCode()
          Gets the Code attribute of the CostCenter object
 java.lang.String getDescription()
          Gets the Description attribute of the CostCenter object
 java.lang.Long getId()
          Gets the Id attribute of the CostCenter object
 java.lang.String getName()
          Gets the Name attribute of the CostCenter object
 java.sql.Timestamp getTimestamp()
          Gets the Timestamp attribute of the CostCenter object
 int getVersion()
          Gets the Version attribute of the CostCenter object
 int hashCode()
          Description of the Method
 void setCode(java.lang.String code)
          Sets the Code attribute of the CostCenter object
 void setDescription(java.lang.String description)
          Sets the Description attribute of the CostCenter object
 void setId(java.lang.Long id)
          Sets the Id attribute of the CostCenter object
 void setName(java.lang.String name)
          Sets the Name attribute of the CostCenter object
 void setTimestamp(java.sql.Timestamp timestamp)
          Sets the Timestamp attribute of the CostCenter object
 void setVersion(int version)
          Sets the Version attribute of the CostCenter object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CostCenter

public CostCenter(java.lang.String name,
                  java.lang.String code,
                  java.lang.String description)
full constructor

Parameters:
name - Description of Parameter
code - Description of Parameter
description - Description of Parameter

CostCenter

public CostCenter()
default constructor


CostCenter

public CostCenter(java.lang.String code)
minimal constructor

Parameters:
code - Description of Parameter
Method Detail

setId

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

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

setName

public void setName(java.lang.String name)
Sets the Name attribute of the CostCenter object

Parameters:
name - The new Name value

setCode

public void setCode(java.lang.String code)
Sets the Code attribute of the CostCenter object

Parameters:
code - The new Code value

setDescription

public void setDescription(java.lang.String description)
Sets the Description attribute of the CostCenter object

Parameters:
description - The new Description value

setTimestamp

public void setTimestamp(java.sql.Timestamp timestamp)
Sets the Timestamp attribute of the CostCenter object

Parameters:
timestamp - The new Timestamp value

setVersion

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

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

getId

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

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

getName

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

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

getCode

public java.lang.String getCode()
Gets the Code attribute of the CostCenter object

Returns:
The Code value

getDescription

public java.lang.String getDescription()
Gets the Description attribute of the CostCenter object

Returns:
The Description value

getTimestamp

public java.sql.Timestamp getTimestamp()
Gets the Timestamp attribute of the CostCenter object

Returns:
The Timestamp value

getVersion

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

Specified by:
getVersion in interface IPersistent
Returns:
The Version 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