com.j2biz.blogunity.dao
Class CategoryDAO

java.lang.Object
  extended bycom.j2biz.blogunity.dao.AbstractDAO
      extended bycom.j2biz.blogunity.dao.CategoryDAO

public class CategoryDAO
extends AbstractDAO

Since:
0.1
Author:
michelson

Field Summary
 
Fields inherited from class com.j2biz.blogunity.dao.AbstractDAO
eventService
 
Constructor Summary
CategoryDAO()
           
 
Method Summary
 Serializable createCategory(Category category)
           
 void deleteCategory(Category category)
           
 boolean existsGlobalCategoryWithName(String name)
           
 Category getCategoryByID(long catId)
           
 Category getCategoryByID(Long catId)
           
 List getGlobalCategories()
           
 Category getGlobalCategoryByName(String name)
           
 void updateCategory(Category category)
           
 
Methods inherited from class com.j2biz.blogunity.dao.AbstractDAO
create, delete, getByID, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryDAO

public CategoryDAO()
Method Detail

getCategoryByID

public Category getCategoryByID(long catId)
                         throws BlogunityException
Parameters:
catId -
Returns:
Throws:
BlogunityException

getCategoryByID

public Category getCategoryByID(Long catId)
                         throws BlogunityException
Parameters:
catId -
Returns:
Throws:
BlogunityException

getGlobalCategories

public List getGlobalCategories()
                         throws BlogunityException
Returns:
Throws:
BlogunityException

existsGlobalCategoryWithName

public boolean existsGlobalCategoryWithName(String name)
Parameters:
name -
Returns:

getGlobalCategoryByName

public Category getGlobalCategoryByName(String name)
                                 throws BlogunityException
Parameters:
name -
Returns:
Throws:
BlogunityException

createCategory

public Serializable createCategory(Category category)
                            throws BlogunityException
Parameters:
category -
Returns:
Throws:
BlogunityException

deleteCategory

public void deleteCategory(Category category)
                    throws BlogunityException
Parameters:
category -
Throws:
BlogunityException

updateCategory

public void updateCategory(Category category)
                    throws BlogunityException
Parameters:
category -
Throws:
BlogunityException


Copyright (c)j2biz.com