org.apache.derby.iapi.sql.depend
Class DependableList

java.lang.Object
  extended byorg.apache.derby.iapi.sql.depend.DependableList
All Implemented Interfaces:
java.io.Externalizable, Formatable, java.io.Serializable, TypedFormat

public class DependableList
extends java.lang.Object
implements Formatable

A serializable list of Dependables.

Author:
Rick
See Also:
Serialized Form

Field Summary
(package private)  java.util.Vector dependableFinders
           
private  boolean ignoreAdds
          This class implements Formatable.
(package private)  java.util.Vector uuids
           
 
Constructor Summary
DependableList()
          Public niladic constructor.
 
Method Summary
 void addDependable(Dependable dependable)
          Add another Dependable to the list.
 Dependable dependableAt(int index)
          Get the Dependable at this index.
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 void ignoreAdds(boolean newState)
          Toggle whether new elements can be added to this list.
 boolean ignoringAdds()
          Report whether we're ignoring adds
 void readExternal(java.io.ObjectInput in)
           
 int size()
          Gets the number of Dependables in this list.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreAdds

private transient boolean ignoreAdds
This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.


uuids

java.util.Vector uuids

dependableFinders

java.util.Vector dependableFinders
Constructor Detail

DependableList

public DependableList()
Public niladic constructor. Needed for Formatable interface to work.

Method Detail

ignoreAdds

public void ignoreAdds(boolean newState)
Toggle whether new elements can be added to this list.

Parameters:
newState - true if adds are to be ignored false if adds are to be honored

ignoringAdds

public boolean ignoringAdds()
Report whether we're ignoring adds

Returns:
true if we're ignoring adds

addDependable

public void addDependable(Dependable dependable)
Add another Dependable to the list.

Parameters:
dependable - the next dependable to put on the list

size

public int size()
Gets the number of Dependables in this list.

Returns:
the number of Dependables in this list.

dependableAt

public Dependable dependableAt(int index)
                        throws StandardException
Get the Dependable at this index.

Parameters:
index - 0-based index into this list
Returns:
the Dependable at this index
Throws:
StandardException - thrown if something goes wrong

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Specified by:
getTypeFormatId in interface TypedFormat
Returns:
the formatID of this class

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error
See Also:
Externalizable.readExternal(java.io.ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException - thrown on error


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.