KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > golfShop > business > cart > CartItemQuery


1 /*
2  * Enhydra Java Application Server
3  * The Initial Developer of the Original Code is Lutris Technologies Inc.
4  * Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies
5  * Inc.
6  * All Rights Reserved.
7  *
8  * The contents of this file are subject to the Enhydra Public License Version
9  * 1.0 (the "License"); you may not use this file except in compliance with the
10  * License. You may obtain a copy of the License at
11  * http://www.enhydra.org/software/license/epl.html
12  *
13  * Software distributed under the License is distributed on an "AS IS" basis,
14  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
15  * License for the specific language governing rights and limitations under the
16  * License.
17  *
18  *
19  */

20
21 /**
22     This interface defines the required functions of a cart item
23     query object. When items are added to the cart, they are added by ObjectId.
24     This object is what the cart uses to convert ObjectIds to actual items.
25     This interface exists so that the shopping cart may be reused in
26     other contexts, with other objects.
27 */

28 package golfShop.business.cart;
29
30 import golfShop.spec.cart.CartItem;
31
32 public interface CartItemQuery {
33
34     CartItem getItem(long ObjectId);
35
36 }
37
Popular Tags