001 package org.odmg;
002
003 /* Copyright 2004-2005 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018
019 /**
020 * The interface that defines the operations of an ODMG array.
021 * Nearly all of its operations are defined by the JavaSoft <code>List</code> interface.
022 * All of the operations defined by the JavaSoft <code>List</code>
023 * interface are supported by an ODMG implementation of <code>DArray</code>,
024 * the exception <code>UnsupportedOperationException</code> is not thrown when a
025 * call is made to any of the <code>List</code> methods.
026 * An instance of a class implementing this interface can be obtained
027 * by calling the method <code>Implementation.newDArray</code>.
028 * @author David Jordan (as Java Editor of the Object Data Management Group)
029 * @version ODMG 3.0
030 */
031 // @see java.lang.UnsupportedOperationException
032
033 public interface DArray extends org.odmg.DCollection, java.util.List
034 {
035 /**
036 * Resize the array to have <code>newSize</code> elements.
037 * @param newSize The new size of the array.
038 */
039 public void resize(int newSize);
040 }