net.anotheria.anosite.gen.asblogdata.service.CommentCRUDServiceImpl Maven / Gradle / Ivy
/**
********************************************************************************
*** CommentCRUDServiceImpl.java ***
*** The implementation of the CommentCRUDServiceImpl. ***
*** generated by AnoSiteGenerator (ASG), Version: 2.6.3 ***
*** Copyright (C) 2005 - 2010 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.asblogdata.service;
import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.asblogdata.data.Comment;
import net.anotheria.asg.exception.ASGRuntimeException;
public class CommentCRUDServiceImpl implements CRUDService{
// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService
IASBlogDataService service;
public CommentCRUDServiceImpl(){
this(ASBlogDataServiceFactory.getDefaultInstance());
}
public CommentCRUDServiceImpl(IASBlogDataService aService){
service = aService;
}
public Comment create(Comment comment) throws ASGRuntimeException {
return service.createComment(comment);
}
public void delete(Comment comment) throws ASGRuntimeException {
service.deleteComment(comment);
}
public Comment get(String id) throws ASGRuntimeException {
return service.getComment(id);
}
public Comment update(Comment comment) throws ASGRuntimeException {
return service.updateComment(comment);
}
}