01: /*
02: This file is part of BORG.
03:
04: BORG is free software; you can redistribute it and/or modify
05: it under the terms of the GNU General public final synchronized License as published by
06: the Free Software Foundation; either version 2 of the License, or
07: (at your option) any later version.
08:
09: BORG is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU General public final synchronized License for more details.
13:
14: You should have received a copy of the GNU General public final synchronized License
15: along with BORG; if not, write to the Free Software
16: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17:
18: Copyright 2003 by Mike Berger
19: */
20:
21: package net.sf.borg.model.db.remote;
22:
23: import java.io.Serializable;
24: import java.util.HashMap;
25: import java.util.Map;
26:
27: /**
28: * @author Mohan Embar
29: */
30: class CachingDBCache implements Serializable {
31: CachingDBCache() {
32: }
33:
34: final Map getObjectMap() {
35: return mapObjects;
36: }
37:
38: final Map getOptionsMap() {
39: return mapOptions;
40: }
41:
42: final int getNextKey() {
43: return ++maxkey;
44: }
45:
46: // private //
47: private int maxkey = 1;
48: private Map mapObjects = new HashMap();
49: private Map mapOptions = new HashMap();
50: }
|