Package sino.service

Examples of sino.service.PostServiceException


        ParamUtility.checkState(null, this.postDao, "postDao");

        try {
            this.postDao.persist(post);
        } catch (DaoException e) {
            throw new PostServiceException("Cannot creat post. Dao exception: " + e.getMessage(), e);
        }
    }
View Full Code Here


            Post post = this.postDao.retrieve(id);
            if (post != null) {
                this.postDao.delete(post);
            }
        } catch (DaoException e) {
            throw new PostServiceException("Cannot delete post. Dao exception: " + e.getMessage(), e);
        }
    }
View Full Code Here

        ParamUtility.checkState(null, this.postDao, "postDao");

        try {
            return this.postDao.getAllPostsSortByDate(type, pageNum, pageSize);
        } catch (DaoException e) {
            throw new PostServiceException("Cannot get all posts sort by date. Dao exception: " + e.getMessage(), e);
        }
    }
View Full Code Here

        ParamUtility.checkState(null, this.postDao, "postDao");

        try {
            return this.postDao.retrieve(id);
        } catch (DaoException e) {
            throw new PostServiceException("Cannot get post by id " + id + ". Dao exception: " + e.getMessage(), e);
        }
    }
View Full Code Here

        ParamUtility.checkState(null, this.postDao, "postDao");

        try {
            this.postDao.update(post);
        } catch (DaoException e) {
            throw new PostServiceException("Cannot update post. Dao exception: " + e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of sino.service.PostServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.