| |
|
| java.lang.Object org.blojsom.blog.database.DatabaseCategory
DatabaseCategory | public class DatabaseCategory implements Category,Serializable(Code) | | DatabaseCategory
author: David Czarnecki since: blojsom 3.0 version: $Id: DatabaseCategory.java,v 1.5 2007/01/17 02:35:16 czarneckid Exp $ |
DatabaseCategory | public DatabaseCategory()(Code) | | Create a new instance of the database category
|
getBlogId | public Integer getBlogId()(Code) | | Get the blog ID
Blog ID |
getDescription | public String getDescription()(Code) | | Retrieves the description of this category
The description of the category |
getEncodedName | public String getEncodedName()(Code) | | Return the category name encoded for a link
Category name encoded as UTF-8 with preserved "/" and "+" characters |
getId | public Integer getId()(Code) | | Get the category ID
Category ID |
getMetaData | public Map getMetaData()(Code) | | Retrieves the meta-data associated with this category
The properties associated with the category as meta-data, or null if no metadata exists |
getName | public String getName()(Code) | | Return the category name
Category name |
getParentCategory | public Category getParentCategory()(Code) | | Returns the parent category of this category. Defaults to "/"
Category containing the parent category |
getParentCategoryId | public Integer getParentCategoryId()(Code) | | Get the blog parent category ID
Parent category ID |
setBlogId | public void setBlogId(Integer blogId)(Code) | | Set the blog ID
Parameters: blogId - Blog ID |
setDescription | public void setDescription(String description)(Code) | | Sets the description of this category
Parameters: desc - The new description of the category |
setId | public void setId(Integer id)(Code) | | Set the category ID
Parameters: id - Category ID |
setMetaData | public void setMetaData(Map metaData)(Code) | | Set the meta-data associated with this category
Parameters: metaData - The map to be associated with the category as meta-data |
setName | public void setName(String name)(Code) | | Set a new name for this category
Parameters: name - Category name |
setParentCategory | public void setParentCategory(Category parentCategory)(Code) | | Sets the parent category of this category
Parameters: cateogry - Category that represents the parent category |
setParentCategoryId | public void setParentCategoryId(Integer parentCategoryId)(Code) | | Se the parent category ID
Parameters: parentCategoryId - Parent category ID |
|
|
|