01: ///////////////////////////////////////////////////////////////////////////////
02: //
03: // Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
04: //
05: // All Rights Reserved
06: //
07: // This program is free software; you can redistribute it and/or modify
08: // it under the terms of the GNU General Public License and GNU Library
09: // General Public License as published by the Free Software Foundation;
10: // either version 2, or (at your option) any later version.
11: //
12: // This program is distributed in the hope that it will be useful,
13: // but WITHOUT ANY WARRANTY; without even the implied warranty of
14: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: // GNU General Public License and GNU Library General Public License
16: // for more details.
17: //
18: // You should have received a copy of the GNU General Public License
19: // and GNU Library General Public License along with this program; if
20: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
21: // MA 02139, USA.
22: //
23: ///////////////////////////////////////////////////////////////////////////////
24: package org.myoodb.collectable;
25:
26: public class DigitStoreDbImpl extends StoreCollectionDbImpl implements
27: DigitStore {
28: public DigitStoreDbImpl() {
29: }
30:
31: protected Object getContainerIndex(Object start) {
32: Object retval = super .getContainerIndex(start);
33: return (retval != null) ? retval : (long) -1;
34: }
35:
36: public DigitObject addDigitObject(DigitObject digitObject) {
37: return (DigitObject) super .addStoreObject(digitObject);
38: }
39:
40: public DigitObject removeDigitObject(DigitObject digitObject) {
41: return (DigitObject) super .removeStoreObject(digitObject);
42: }
43:
44: public DigitObject removeDigitObject(long number) {
45: return (DigitObject) super .removeStoreObject(number);
46: }
47:
48: public DigitObject getFirstDigitObject() {
49: return (DigitObject) super .getFirstStoreObject();
50: }
51:
52: public DigitObject getLastDigitObject() {
53: return (DigitObject) super .getLastStoreObject();
54: }
55:
56: public DigitObject getDigitObject(long number) {
57: return (DigitObject) super .getStoreObject(number);
58: }
59:
60: public java.util.ArrayList getDigitKeys() {
61: return super .getStoreObjectKeys();
62: }
63:
64: public java.util.ArrayList getDigitKeys(long start, long end) {
65: return super .getStoreObjectKeys(start, end);
66: }
67:
68: public java.util.ArrayList getDigitObjects() {
69: return super .getStoreObjects();
70: }
71:
72: public java.util.ArrayList getDigitObjects(long start, long end) {
73: return super .getStoreObjects(start, end);
74: }
75:
76: public java.util.ArrayList getDigitObjects(long start, long end,
77: Class type) {
78: return super .getStoreObjects(start, end, type);
79: }
80:
81: public java.util.ArrayList getDigitObjects(long start, int number,
82: Direction direction) {
83: return super .getStoreObjects(start, number, direction);
84: }
85:
86: public java.util.ArrayList getDigitObjects(long start, int number,
87: Direction direction, Class type) {
88: return super .getStoreObjects(start, number, direction, type);
89: }
90:
91: public String toString() {
92: return "DigitStore: " + getStoreSize();
93: }
94: }
|