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 DigitStore extends StoreCollection {
27: @org.myoodb.MyOodbIndex(value=-302)
28: @org.myoodb.MyOodbAccess(value="Write")
29: public DigitObject addDigitObject(DigitObject digitObject);
30:
31: @org.myoodb.MyOodbIndex(value=-303)
32: @org.myoodb.MyOodbAccess(value="Write")
33: public DigitObject removeDigitObject(long number);
34:
35: @org.myoodb.MyOodbIndex(value=-304)
36: @org.myoodb.MyOodbAccess(value="Write")
37: public DigitObject removeDigitObject(DigitObject digitObject);
38:
39: @org.myoodb.MyOodbIndex(value=-305)
40: public DigitObject getFirstDigitObject();
41:
42: @org.myoodb.MyOodbIndex(value=-306)
43: public DigitObject getLastDigitObject();
44:
45: @org.myoodb.MyOodbIndex(value=-307)
46: public DigitObject getDigitObject(long number);
47:
48: @org.myoodb.MyOodbIndex(value=-308)
49: public java.util.ArrayList<Long> getDigitKeys();
50:
51: @org.myoodb.MyOodbIndex(value=-309)
52: public java.util.ArrayList<Long> getDigitKeys(long start, long end);
53:
54: @org.myoodb.MyOodbIndex(value=-310)
55: public java.util.ArrayList<DigitObject> getDigitObjects();
56:
57: @org.myoodb.MyOodbIndex(value=-311)
58: public java.util.ArrayList<DigitObject> getDigitObjects(long start,
59: long end);
60:
61: @org.myoodb.MyOodbIndex(value=-312)
62: public java.util.ArrayList<DigitObject> getDigitObjects(long start,
63: long end, Class type);
64:
65: @org.myoodb.MyOodbIndex(value=-313)
66: public java.util.ArrayList<DigitObject> getDigitObjects(long start,
67: int number, Direction direction);
68:
69: @org.myoodb.MyOodbIndex(value=-314)
70: public java.util.ArrayList<DigitObject> getDigitObjects(long start,
71: int number, Direction direction, Class type);
72: }
|