com.j2biz.blogunity.pojo
Class Category

java.lang.Object
  extended bycom.j2biz.blogunity.pojo.Category
All Implemented Interfaces:
Serializable

public class Category
extends Object
implements Serializable

Since:
0.1
Author:
michelson
See Also:
Serialized Form

Field Summary
static int GLOBAL
           
static int LOCAL
           
 
Constructor Summary
Category()
           
Category(String name, int type)
           
Category(String name, String description, int type)
           
 
Method Summary
 void addBlog(Blog blog)
           
 void addEntry(Entry entry)
           
 boolean containsBlog(Blog b)
           
 Set getBlogs()
           
 String getDescription()
           
 Set getEntries()
           
 Long getId()
           
 String getName()
           
 int getType()
           
 void setBlogs(Set blogs)
           
 void setDescription(String description)
           
 void setEntries(Set entries)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL

public static final int GLOBAL
See Also:
Constant Field Values

LOCAL

public static final int LOCAL
See Also:
Constant Field Values
Constructor Detail

Category

public Category()

Category

public Category(String name,
                int type)

Category

public Category(String name,
                String description,
                int type)
Method Detail

getDescription

public String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

getBlogs

public Set getBlogs()
Returns:
Returns the entries.

setBlogs

public void setBlogs(Set blogs)

addBlog

public void addBlog(Blog blog)

getEntries

public Set getEntries()
Returns:
Returns the entries.

setEntries

public void setEntries(Set entries)
Parameters:
entries - The entries to set.

addEntry

public void addEntry(Entry entry)

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

containsBlog

public boolean containsBlog(Blog b)


Copyright (c)j2biz.com