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 interface StoreCollection extends AbstractCollection {
27: // TODO: make generic and move AbcStore, DigitStore, LogStore methods up
28: // TODO: create a StoreCollectionDbImpl with base methods for these objects
29:
30: public enum Container {
31: SIZE(100);
32:
33: private final int m_value;
34:
35: Container(int value) {
36: m_value = value;
37: }
38:
39: public int intValue() {
40: return m_value;
41: }
42: }
43:
44: public enum Direction {
45: BACKWARDS(0), FORWARDS(1);
46:
47: private final int m_value;
48:
49: Direction(int value) {
50: m_value = value;
51: }
52:
53: public int intValue() {
54: return m_value;
55: }
56: };
57:
58: @org.myoodb.MyOodbIndex(value=-300)
59: public long getStoreSize();
60:
61: @org.myoodb.MyOodbIndex(value=-301)
62: public String toString();
63: }
|