de.nava.informa.impl.hibernate
Class Category
java.lang.Object
de.nava.informa.impl.hibernate.Category
- All Implemented Interfaces:
- CategoryIF, WithChildrenMIF<CategoryIF>, WithIdMIF, WithTitleMIF, Serializable
public class Category
- extends Object
- implements CategoryIF
Hibernate implementation of the CategoryIF interface.
- Author:
- Niko Schmuck (niko@nava.de)
- See Also:
- Serialized Form
Category
public Category()
Category
public Category(String title)
getId
public long getId()
- Specified by:
getId in interface WithIdMIF
- Returns:
- integer representation of identity.
setId
public void setId(long id)
- Specified by:
setId in interface WithIdMIF
- Parameters:
id - the identifier of the object to be set.
getTitle
public String getTitle()
- Specified by:
getTitle in interface WithTitleMIF
- Returns:
- the title of the object
setTitle
public void setTitle(String title)
- Specified by:
setTitle in interface WithTitleMIF
- Parameters:
title - the title of the object to be set
getDomain
public String getDomain()
- Specified by:
getDomain in interface CategoryIF
setDomain
public void setDomain(String domain)
- Specified by:
setDomain in interface CategoryIF
getParent
public CategoryIF getParent()
- Specified by:
getParent in interface CategoryIF
setParent
public void setParent(CategoryIF parent)
- Specified by:
setParent in interface CategoryIF
getChildren
public Collection<CategoryIF> getChildren()
- Specified by:
getChildren in interface WithChildrenMIF<CategoryIF>
- Returns:
- the collection of children of the object
setChildren
public void setChildren(Collection<CategoryIF> children)
addChild
public void addChild(CategoryIF child)
- Specified by:
addChild in interface CategoryIF
removeChild
public void removeChild(CategoryIF child)
- Specified by:
removeChild in interface CategoryIF
equals
public boolean equals(Object o)
- Equal when domain and title are equal.
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.