001: /* Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com
002:
003: This file is part of the db4o open source object database.
004:
005: db4o is free software; you can redistribute it and/or modify it under
006: the terms of version 2 of the GNU General Public License as published
007: by the Free Software Foundation and as clarified by db4objects' GPL
008: interpretation policy, available at
009: http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
010: Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
011: Suite 350, San Mateo, CA 94403, USA.
012:
013: db4o is distributed in the hope that it will be useful, but WITHOUT ANY
014: WARRANTY; without even the implied warranty of MERCHANTABILITY or
015: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
016: for more details.
017:
018: You should have received a copy of the GNU General Public License along
019: with this program; if not, write to the Free Software Foundation, Inc.,
020: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
021: package com.db4o.db4ounit.common.ta.collections;
022:
023: import java.util.*;
024:
025: import com.db4o.db4ounit.common.ta.*;
026:
027: /**
028: * Platform specific facade.
029: *
030: * @param
031: *
032: * @sharpen.ignore
033: */
034: public class PagedList extends /* TA BEGIN */ActivatableImpl
035: /* TA END */implements List {
036:
037: PagedBackingStore _store = new PagedBackingStore();
038:
039: public PagedList() {
040:
041: }
042:
043: public boolean add(Object item) {
044: // TA BEGIN
045: activate();
046: // TA END
047: return _store.add(item);
048: }
049:
050: public Object get(int index) {
051: // TA BEGIN
052: activate();
053: // TA END
054: return _store.get(index);
055: }
056:
057: public int size() {
058: // TA BEGIN
059: activate();
060: // TA END
061: return _store.size();
062: }
063:
064: public void add(int index, Object element) {
065: throw new com.db4o.foundation.NotImplementedException();
066: }
067:
068: public boolean addAll(Collection c) {
069: throw new com.db4o.foundation.NotImplementedException();
070: }
071:
072: public boolean addAll(int index, Collection c) {
073: throw new com.db4o.foundation.NotImplementedException();
074: }
075:
076: public void clear() {
077: throw new com.db4o.foundation.NotImplementedException();
078: }
079:
080: public boolean contains(Object o) {
081: throw new com.db4o.foundation.NotImplementedException();
082: }
083:
084: public boolean containsAll(Collection c) {
085: throw new com.db4o.foundation.NotImplementedException();
086: }
087:
088: public int indexOf(Object o) {
089: throw new com.db4o.foundation.NotImplementedException();
090: }
091:
092: public boolean isEmpty() {
093: throw new com.db4o.foundation.NotImplementedException();
094: }
095:
096: public Iterator iterator() {
097: // TA BEGIN
098: activate();
099: // TA END
100: return new SimpleListIterator(this );
101: }
102:
103: public int lastIndexOf(Object o) {
104: throw new com.db4o.foundation.NotImplementedException();
105: }
106:
107: public ListIterator listIterator() {
108: throw new com.db4o.foundation.NotImplementedException();
109: }
110:
111: public ListIterator listIterator(int index) {
112: throw new com.db4o.foundation.NotImplementedException();
113: }
114:
115: public boolean remove(Object o) {
116: throw new com.db4o.foundation.NotImplementedException();
117: }
118:
119: public Object remove(int index) {
120: throw new com.db4o.foundation.NotImplementedException();
121: }
122:
123: public boolean removeAll(Collection c) {
124: throw new com.db4o.foundation.NotImplementedException();
125: }
126:
127: public boolean retainAll(Collection c) {
128: throw new com.db4o.foundation.NotImplementedException();
129: }
130:
131: public Object set(int index, Object element) {
132: throw new com.db4o.foundation.NotImplementedException();
133: }
134:
135: public List subList(int fromIndex, int toIndex) {
136: throw new com.db4o.foundation.NotImplementedException();
137: }
138:
139: public Object[] toArray() {
140: throw new com.db4o.foundation.NotImplementedException();
141: }
142:
143: public Object[] toArray(Object[] a) {
144: throw new com.db4o.foundation.NotImplementedException();
145: }
146: }
|