2004.04.29


com.jdc.app
Class Company

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.app.Company

public class Company
extends Object

An object that represents a company. The Company class is used primarily to uniquely identify data stored in the application database.

Version:
1.0
Author:
Jay Damon

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Company()
          Constructs a new Company object.
 
Method Summary
 int getId()
          Returns the company identifier.
 String getName()
          Returns the company name.
 void setId(int id)
          Sets the company identifier.
 void setName(String name)
          Sets the company name.
 String toString()
          Returns the company name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Company

public Company()
Constructs a new Company object.

Method Detail

getId

public int getId()
Returns the company identifier.

Returns:
int The company identifier.

getName

public String getName()
Returns the company name.

Returns:
String The company name.

setId

public void setId(int id)
Sets the company identifier.


setName

public void setName(String name)
Sets the company name.


toString

public String toString()
Returns the company name.

Overrides:
toString in class Object
Returns:
String The company name.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.