org.salespointframework.core.data
Class Category

java.lang.Object
  extended by org.salespointframework.core.data.Category
All Implemented Interfaces:
java.lang.Comparable

public class Category
extends java.lang.Object
implements java.lang.Comparable

represents a category of a CatalogItem or whatever else. this class is persistable.

Since:
4.0
Author:
Thomas Kissinger

Field Summary
protected  java.lang.String categoryName
          name of category
protected  long id
          id used for persistence
 
Constructor Summary
Category(java.lang.String name)
          default constructor
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCategoryName()
          get categoryName
 void setCategoryName(java.lang.String name)
          set categoryName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id
id used for persistence


categoryName

protected java.lang.String categoryName
name of category

Constructor Detail

Category

public Category(java.lang.String name)
default constructor

Parameters:
name - categoryName
Method Detail

getCategoryName

public java.lang.String getCategoryName()
get categoryName

Returns:

setCategoryName

public void setCategoryName(java.lang.String name)
set categoryName

Parameters:
name -

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable