net.anotheria.anosite.gen.assitedata.service.MediaLinkCRUDServiceImpl Maven / Gradle / Ivy
/**
********************************************************************************
*** MediaLinkCRUDServiceImpl.java ***
*** The implementation of the MediaLinkCRUDServiceImpl. ***
*** 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.assitedata.service;
import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.assitedata.data.MediaLink;
import net.anotheria.asg.exception.ASGRuntimeException;
public class MediaLinkCRUDServiceImpl implements CRUDService{
// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService
IASSiteDataService service;
public MediaLinkCRUDServiceImpl(){
this(ASSiteDataServiceFactory.getDefaultInstance());
}
public MediaLinkCRUDServiceImpl(IASSiteDataService aService){
service = aService;
}
public MediaLink create(MediaLink medialink) throws ASGRuntimeException {
return service.createMediaLink(medialink);
}
public void delete(MediaLink medialink) throws ASGRuntimeException {
service.deleteMediaLink(medialink);
}
public MediaLink get(String id) throws ASGRuntimeException {
return service.getMediaLink(id);
}
public MediaLink update(MediaLink medialink) throws ASGRuntimeException {
return service.updateMediaLink(medialink);
}
}