01: /*
02: * Enhydra Java Application Server
03: * The Initial Developer of the Original Code is Lutris Technologies Inc.
04: * Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies
05: * Inc.
06: * All Rights Reserved.
07: *
08: * The contents of this file are subject to the Enhydra Public License Version
09: * 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: * This abstract class defines the template for the tree kinds of category
27: * stores: memory, file and database.
28: * This object represents the physical medium that the list of all categories
29: * is stored in. Only the ItemDO class needs to access this class.
30: *
31: * @author Scott Pirie
32: * @version $Revision: 1.1 $
33: */
34: public abstract class CategoryStore {
35: //If store option is memory
36: protected abstract void initializeCategoryStore();
37:
38: //If store option is File we need directory
39: protected abstract void initializeCategoryStore(String dir);
40:
41: protected abstract boolean isCategoryInStore(long objectId);
42:
43: protected abstract CategoryDO findCategoryInStore(long objectId);
44: }
|