View Javadoc

1   package org.odmg;
2   
3   /* Copyright 2004-2005 The Apache Software Foundation
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  
19  /**
20   * The interface that defines the operations of an ODMG array.
21   * Nearly all of its operations are defined by the JavaSoft <code>List</code> interface.
22   * All of the operations defined by the JavaSoft <code>List</code>
23   * interface are supported by an ODMG implementation of <code>DArray</code>,
24   * the exception <code>UnsupportedOperationException</code> is not thrown when a
25   * call is made to any of the <code>List</code> methods.
26   * An instance of a class implementing this interface can be obtained
27   * by calling the method <code>Implementation.newDArray</code>.
28   * @author	David Jordan (as Java Editor of the Object Data Management Group)
29   * @version ODMG 3.0
30   */
31  // @see java.lang.UnsupportedOperationException
32  
33  public interface DArray extends org.odmg.DCollection, java.util.List
34  {
35      /**
36       * Resize the array to have <code>newSize</code> elements.
37       * @param	newSize	The new size of the array.
38       */
39      public void resize(int newSize);
40  }