/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package beans.artikelManager; import entities.Artikel; import exceptions.IdBereitsVergebenException; import exceptions.UnbekanntesEntityException; import java.util.List; import javax.ejb.Remote; /** * * @author Jan */ @Remote public interface ArtikelManagerRemote { public long createArtikel(Artikel artikel) throws IdBereitsVergebenException; public Artikel readArtikel(long artikelId) throws UnbekanntesEntityException; public List readAllArtikel(); public void updateArtikel(Artikel artikel); public void deleteArtikel(long artikelId); public void deleteAllArtikel(); public boolean existsArtikel(long artikelId); }