KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > trading > db > simple > SimpleDatabaseMgr


1
2 // Copyright (C) 1998-1999
3
// Object Oriented Concepts, Inc.
4

5 // **********************************************************************
6
//
7
// Copyright (c) 1997
8
// Mark Spruiell (mark@intellisoft.com)
9
//
10
// See the COPYING file for more information
11
//
12
// **********************************************************************
13

14 package org.jacorb.trading.db.simple;
15
16 import org.jacorb.trading.db.DatabaseMgr;
17 import org.jacorb.trading.db.OfferDatabase;
18 import org.jacorb.trading.db.TypeDatabase;
19 import org.jacorb.trading.db.simple.offers.OfferDatabaseImpl;
20 import org.jacorb.trading.db.simple.types.TypeDatabaseImpl;
21
22
23 public class SimpleDatabaseMgr implements DatabaseMgr
24 {
25   private OfferDatabaseImpl m_offerDb;
26   private TypeDatabaseImpl m_typeDb;
27
28
29   protected SimpleDatabaseMgr()
30   {
31   }
32
33
34   public SimpleDatabaseMgr(String JavaDoc dirPath)
35   {
36     m_offerDb = new OfferDatabaseImpl(dirPath);
37     m_typeDb = new TypeDatabaseImpl(dirPath);
38   }
39
40
41   public OfferDatabase getOfferDatabase()
42   {
43     return m_offerDb;
44   }
45
46
47   public TypeDatabase getTypeDatabase()
48   {
49     return m_typeDb;
50   }
51
52
53   public void shutdown()
54   {
55   }
56 }
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Popular Tags