org.gersteinlab.tyna.webapp.data
Class Category

java.lang.Object
  extended by org.gersteinlab.tyna.webapp.data.Category
All Implemented Interfaces:
java.io.Serializable

public class Category
extends java.lang.Object
implements java.io.Serializable

        This class contains the information of a category of the nodes.
        

Version:
1.0 (October 3, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected  java.sql.Timestamp created
          Time of category creation.
protected  java.lang.Integer creatorId
          ID of the category creator.
protected  java.lang.String creatorName
          Name of the category creator.
protected  java.lang.String description
          Category description.
protected  java.lang.Integer id
          Category ID.
protected  java.lang.Boolean isPublic
          Is the category public.
protected  java.lang.String name
          Category name.
 
Constructor Summary
Category()
          Default constructor: creates an empty object.
Category(java.lang.Integer id, java.lang.String name, java.lang.String description, java.lang.Integer creatorId, java.lang.String creatorName, java.sql.Timestamp created, java.lang.Boolean isPublic)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.sql.Timestamp getCreated()
          Get the time of category creation.
 java.lang.Integer getCreatorId()
          Get the ID of the category creator.
 java.lang.String getCreatorName()
          Get the name of the category creator.
 java.lang.String getDescription()
          Get the category description.
 java.lang.Integer getId()
          Get the category ID.
 java.lang.Boolean getIsPublic()
          Check if the category is public.
 java.lang.String getName()
          Get the category name.
 void setCreated(java.sql.Timestamp created)
          Set the time of category creation.
 void setCreatorId(java.lang.Integer creatorId)
          Set the ID of th category creator.
 void setCreatorName(java.lang.String creatorName)
          Set the name of th category creator.
 void setDescription(java.lang.String description)
          Set the category description.
 void setId(java.lang.Integer id)
          Set the category ID.
 void setIsPublic(java.lang.Boolean isPublic)
          Set if the category is public.
 void setName(java.lang.String name)
          Set the category name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
Category ID.


name

protected java.lang.String name
Category name.


description

protected java.lang.String description
Category description.


creatorId

protected java.lang.Integer creatorId
ID of the category creator.


creatorName

protected java.lang.String creatorName
Name of the category creator.


created

protected java.sql.Timestamp created
Time of category creation.


isPublic

protected java.lang.Boolean isPublic
Is the category public.

Constructor Detail

Category

public Category()
Default constructor: creates an empty object.


Category

public Category(java.lang.Integer id,
                java.lang.String name,
                java.lang.String description,
                java.lang.Integer creatorId,
                java.lang.String creatorName,
                java.sql.Timestamp created,
                java.lang.Boolean isPublic)
Creates a new object that stores the supplied information.

Parameters:
id - Category ID
name - Category name
description - Category description
creatorId - ID of the category creator
creatorName - Name of the category creator
created - Time of category creation
isPublic - Is the category public
Method Detail

getId

public java.lang.Integer getId()
Get the category ID.

Returns:
The category ID.

setId

public void setId(java.lang.Integer id)
Set the category ID.

Parameters:
id - The category ID.

getName

public java.lang.String getName()
Get the category name.

Returns:
The category name.

setName

public void setName(java.lang.String name)
Set the category name.

Parameters:
name - The category name.

getDescription

public java.lang.String getDescription()
Get the category description.

Returns:
The category description.

setDescription

public void setDescription(java.lang.String description)
Set the category description.

Parameters:
description - The category description.

getCreatorId

public java.lang.Integer getCreatorId()
Get the ID of the category creator.

Returns:
The ID of the category creator.

setCreatorId

public void setCreatorId(java.lang.Integer creatorId)
Set the ID of th category creator.

Parameters:
creatorId - The ID of the category creator.

getCreatorName

public java.lang.String getCreatorName()
Get the name of the category creator.

Returns:
The name of the category creator.

setCreatorName

public void setCreatorName(java.lang.String creatorName)
Set the name of th category creator.

Parameters:
creatorName - The name of the category creator.

getCreated

public java.sql.Timestamp getCreated()
Get the time of category creation.

Returns:
The time of category creation.

setCreated

public void setCreated(java.sql.Timestamp created)
Set the time of category creation.

Parameters:
created - The time of category creation.

getIsPublic

public java.lang.Boolean getIsPublic()
Check if the category is public.

Returns:
Is the category public.

setIsPublic

public void setIsPublic(java.lang.Boolean isPublic)
Set if the category is public.

Parameters:
isPublic - Is the category public.