All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.gen.asfeature.service.FeatureCRUDServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** FeatureCRUDServiceImpl.java                                              ***
 *** The implementation of the FeatureCRUDServiceImpl.                        ***
 *** 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.asfeature.service;

import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.asfeature.data.Feature;
import net.anotheria.asg.exception.ASGRuntimeException;


public class FeatureCRUDServiceImpl implements CRUDService{

	// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService

	IASFeatureService service;

	public FeatureCRUDServiceImpl(){
		this(ASFeatureServiceFactory.getDefaultInstance());
	}

	public FeatureCRUDServiceImpl(IASFeatureService aService){
		service = aService;
	}

	public Feature create(Feature feature)  throws ASGRuntimeException {
		return service.createFeature(feature);
	}

	public void delete(Feature feature) throws ASGRuntimeException {
		service.deleteFeature(feature);
	}

	public Feature get(String id) throws ASGRuntimeException {
		return service.getFeature(id);
	}

	public Feature update(Feature feature) throws ASGRuntimeException {
		return service.updateFeature(feature);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy