planetj.database.table
Class TableCollection

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byplanetj.database.table.TableCollection
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class TableCollection
extends java.util.ArrayList

Insert the type's description here. Creation date: (7/27/03 4:02:18 PM)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TableCollection()
          TableCollection constructor.
TableCollection(java.util.Collection tables)
          TableCollection constructor.
TableCollection(int size)
          TableCollection constructor.
 
Method Summary
 boolean add(java.lang.Object o)
          Adds a Table to this TableCollection
 boolean addTable(Table t)
          Adds a table to this TableCollection
 Table getTable(int index)
          Gets a table out of the collection by index
 boolean isAuthorized(int mode, ExecutingContext ec)
          Checks if the user is authorized to all tables in this collection
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, 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, remove, 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, remove, removeAll, retainAll, subList
 

Constructor Detail

TableCollection

public TableCollection()
TableCollection constructor.


TableCollection

public TableCollection(int size)
TableCollection constructor.


TableCollection

public TableCollection(java.util.Collection tables)
TableCollection constructor.

Method Detail

add

public boolean add(java.lang.Object o)
Adds a Table to this TableCollection


addTable

public boolean addTable(Table t)
Adds a table to this TableCollection


getTable

public Table getTable(int index)
Gets a table out of the collection by index


isAuthorized

public boolean isAuthorized(int mode,
                            ExecutingContext ec)
Checks if the user is authorized to all tables in this collection

Parameters:
mode - The type of authority being checked, such as Row.MODE_UPDATE
ec - The current executing context