Class Category

All Implemented Interfaces:
Serializable, Cloneable

public class Category extends DataBaseObject
The Class Category.
See Also:
  • Field Details

    • CAT_ACTIVE

      protected boolean CAT_ACTIVE
      The cat active.
    • CAT_DESCRIPTION

      protected String CAT_DESCRIPTION
      The cat description.
    • CAT_ID

      protected long CAT_ID
      The cat id.
    • CAT_NAME

      protected String CAT_NAME
      The cat name.
  • Constructor Details

    • Category

      public Category()
      Instantiates a new category.
    • Category

      public Category(long id)
      Instantiates a new category.
      Parameters:
      id - the id
  • Method Details

    • getActive

      public boolean getActive()
      Gets the active.
      Returns:
      the active
    • setActive

      public void setActive(boolean param)
      Sets the active.
      Parameters:
      param - the new active
    • setActive

      public void setActive(String param)
      Sets the active.
      Parameters:
      param - the new active
    • getDescription

      public String getDescription()
      Gets the description.
      Returns:
      the description
    • setDescription

      public void setDescription(String param)
      Sets the description.
      Parameters:
      param - the new description
    • getId

      public long getId()
      Gets the id.
      Returns:
      the id
    • setId

      public void setId(long param)
      Sets the id.
      Parameters:
      param - the new id
    • setId

      public void setId(String param)
      Sets the id.
      Parameters:
      param - the new id
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • setName

      public void setName(String param)
      Sets the name.
      Parameters:
      param - the new name
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Equals.
      Overrides:
      equals in class Object