import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException;
/**
* A remote-call interface for the shop
@Remote
public interface CategorySessionBeanRemote extends Serializable {
- /**
- * Returns a category instance (entity) for given primary key. If not found,
- * a proper exception is thrown.
- * <p>
- * @param categoryId Category id (primary key)
- * <p>
- * @return Category entity matching to primary key
- * <p>
- * @throws CategoryNotFoundException If a category with given primary key
- * could not be found
- */
- Category findCategoryById (final Long categoryId) throws CategoryNotFoundException;
-
/**
* Some "getter" for a linked list of all categories
* <p>
import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jproduct.exceptions.product.ProductNotFoundException;
/**
* An interface for non-administrative purposes
@Remote
public interface ProductSessionBeanRemote extends Serializable {
- /**
- * Returns a product instance (entity) for given primary key. If not found,
- * a proper exception is thrown.
- * <p>
- * @param productId Product id (primary key)
- * <p>
- * @return Product entity matching to primary key
- * <p>
- * @throws ProductNotFoundException If a product with given primary key
- * could not be found
- */
- Product findProductById (final Long productId) throws ProductNotFoundException;
-
/**
* Returns a list of all products
* <p>