org.infoglue.cms.entities.management
Class CategoryVO

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

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()
          Returns a string buffer representation of this object.
 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
clone, finalize, 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()
Description copied from class: Persistent
Returns a string buffer representation of this object. The idea is that subclasses can grab the string buffer returned by this method and append to it, to save some gratuitous string creation.

Overrides:
toStringBuffer in class Persistent
Returns:
a StringBuffer representation of this object


Copyright © 2005 InfoGlue.org All Rights Reserved.