com.j2biz.blogunity.dao
Class BlogDAO

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

public class BlogDAO
extends AbstractDAO

Since:
0.1
Author:
michelson

Field Summary
 
Fields inherited from class com.j2biz.blogunity.dao.AbstractDAO
eventService
 
Constructor Summary
BlogDAO()
           
 
Method Summary
 Serializable createBlog(Blog blog)
           
 void deleteBlog(Blog blog)
           
 List getAllBlogs()
           
 Blog getBlogByID(long id)
           
 Blog getBlogByID(Long id)
           
 Blog getBlogByUrlName(String urlName)
           
 List getBlogsWithNameLike(String likeBlogname)
           
 List getLastRegisteredBlogs(int count)
           
 void updateBlog(Blog blog)
           
 
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

BlogDAO

public BlogDAO()
Method Detail

getBlogByID

public Blog getBlogByID(long id)
                 throws BlogunityException
Throws:
BlogunityException

getBlogByID

public Blog getBlogByID(Long id)
                 throws BlogunityException
Throws:
BlogunityException

getBlogByUrlName

public Blog getBlogByUrlName(String urlName)
                      throws BlogunityException
Throws:
BlogunityException

createBlog

public Serializable createBlog(Blog blog)
                        throws BlogunityException
Throws:
BlogunityException

deleteBlog

public void deleteBlog(Blog blog)
                throws BlogunityException
Throws:
BlogunityException

updateBlog

public void updateBlog(Blog blog)
                throws BlogunityException
Throws:
BlogunityException

getLastRegisteredBlogs

public List getLastRegisteredBlogs(int count)
                            throws BlogunityException
Throws:
BlogunityException

getAllBlogs

public List getAllBlogs()
                 throws BlogunityException
Throws:
BlogunityException

getBlogsWithNameLike

public List getBlogsWithNameLike(String likeBlogname)
                          throws BlogunityException
Throws:
BlogunityException


Copyright (c)j2biz.com