org.apache.derby.iapi.sql.dictionary
Class ColumnDescriptorList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.apache.derby.iapi.sql.dictionary.ColumnDescriptorList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class ColumnDescriptorList
extends java.util.ArrayList

This represents a list of column descriptors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ColumnDescriptorList()
           
 
Method Summary
 void add(UUID tableID, ColumnDescriptor column)
          Add the column.
 ColumnDescriptor elementAt(int n)
          Return the nth (0-based) element in the list.
 ColumnDescriptor getColumnDescriptor(UUID tableID, int columnID)
          Get the column descriptor
 ColumnDescriptor getColumnDescriptor(UUID tableID, java.lang.String columnName)
          Get the column descriptor
 java.lang.String[] getColumnNames()
          Get an array of strings for all the columns in this CDL.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ColumnDescriptorList

public ColumnDescriptorList()
Method Detail

add

public void add(UUID tableID,
                ColumnDescriptor column)
Add the column. Currently, the table id is ignored.

Parameters:
tableID - the table id (ignored)
column - the column to add

getColumnDescriptor

public ColumnDescriptor getColumnDescriptor(UUID tableID,
                                            java.lang.String columnName)
Get the column descriptor

Parameters:
tableID - the table id (ignored)
columnName - the column get
Returns:
the column descriptor if found

getColumnDescriptor

public ColumnDescriptor getColumnDescriptor(UUID tableID,
                                            int columnID)
Get the column descriptor

Parameters:
tableID - the table id (ignored)
columnID - the column id
Returns:
the column descriptor if found

elementAt

public ColumnDescriptor elementAt(int n)
Return the nth (0-based) element in the list.

Parameters:
n - Which element to return.
Returns:
The nth element in the list.

getColumnNames

public java.lang.String[] getColumnNames()
Get an array of strings for all the columns in this CDL.

Returns:
the array of strings

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.