net.anotheria.anosite.gen.aswebdata.service.BoxCRUDServiceImpl Maven / Gradle / Ivy
/**
********************************************************************************
*** BoxCRUDServiceImpl.java ***
*** The implementation of the BoxCRUDServiceImpl. ***
*** 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.aswebdata.service;
import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.aswebdata.data.Box;
import net.anotheria.asg.exception.ASGRuntimeException;
public class BoxCRUDServiceImpl implements CRUDService{
// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService
IASWebDataService service;
public BoxCRUDServiceImpl(){
this(ASWebDataServiceFactory.getDefaultInstance());
}
public BoxCRUDServiceImpl(IASWebDataService aService){
service = aService;
}
public Box create(Box box) throws ASGRuntimeException {
return service.createBox(box);
}
public void delete(Box box) throws ASGRuntimeException {
service.deleteBox(box);
}
public Box get(String id) throws ASGRuntimeException {
return service.getBox(id);
}
public Box update(Box box) throws ASGRuntimeException {
return service.updateBox(box);
}
}