KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > golfShop > data > item > CategoryStore


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 package golfShop.data.item;
22
23 import golfShop.data.item.CategoryDO;
24
25
26 /**
27  * This abstract class defines the template for the tree kinds of category
28  * stores: memory, file and database.
29  * This object represents the physical medium that the list of all categories
30  * is stored in. Only the ItemDO class needs to access this class.
31  *
32  * @author Scott Pirie
33  * @version $Revision: 1.1 $
34  */

35 public abstract class CategoryStore
36 {
37     //If store option is memory
38
protected abstract void initializeCategoryStore();
39     //If store option is File we need directory
40
protected abstract void initializeCategoryStore(String JavaDoc dir);
41     protected abstract boolean isCategoryInStore(long objectId);
42     protected abstract CategoryDO findCategoryInStore(long objectId);
43 }
44
Popular Tags