org.infoglue.cms.entities.management
Class CategoryVO

java.lang.Object
  |
  +--org.infoglue.cms.entities.kernel.Persistent
        |
        +--org.infoglue.cms.entities.management.CategoryVO
All Implemented Interfaces:
BaseEntityVO, java.lang.Comparable, java.io.Serializable

public class CategoryVO
extends Persistent

This is a Category to be used for categorizing Content

Author:
Frank Febbraro (frank@phase2technology.com)
See Also:
Serialized Form

Constructor Summary
CategoryVO()
           
CategoryVO(java.lang.Integer id, java.lang.String name)
           
CategoryVO(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares an object to this one for equality.
 java.lang.Integer getCategoryId()
           
 java.util.List getChildren()
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
           
 java.lang.String getName()
           
 java.lang.Integer getParentId()
           
 boolean isActive()
           
 boolean isRoot()
           
 void setActive(boolean b)
           
 void setCategoryId(java.lang.Integer i)
           
 void setChildren(java.util.List l)
           
 void setDescription(java.lang.String s)
           
 void setName(java.lang.String s)
           
 void setParentId(java.lang.Integer i)
           
 java.lang.StringBuffer toStringBuffer()
           
 ConstraintExceptionBuffer validate()
           
 
Methods inherited from class org.infoglue.cms.entities.kernel.Persistent
append, compareTo, hashCode, isSaved, isUnsaved, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryVO

public CategoryVO()

CategoryVO

public CategoryVO(java.lang.String name)

CategoryVO

public CategoryVO(java.lang.Integer id,
                  java.lang.String name)
Method Detail

getId

public java.lang.Integer getId()

getCategoryId

public java.lang.Integer getCategoryId()

setCategoryId

public void setCategoryId(java.lang.Integer i)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String s)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String s)

isActive

public boolean isActive()

setActive

public void setActive(boolean b)

getParentId

public java.lang.Integer getParentId()

setParentId

public void setParentId(java.lang.Integer i)

getChildren

public java.util.List getChildren()

setChildren

public void setChildren(java.util.List l)

isRoot

public boolean isRoot()

validate

public ConstraintExceptionBuffer validate()
Returns:
ConstraintExceptionBuffer

equals

public boolean equals(java.lang.Object o)
Description copied from class: Persistent
Compares an object to this one for equality.

Overrides:
equals in class Persistent
Parameters:
o - the object to compare
Returns:
true if this == o or o != null and getClass().equals(o.getClass()) and compareTo(o) == 0
See Also:
Persistent.compareTo(java.lang.Object)

toStringBuffer

public java.lang.StringBuffer toStringBuffer()
Overrides:
toStringBuffer in class Persistent