|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.BasicObjectVector
This class implments a basic vector of objects and is used to hold query
results.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static long |
R51_FORMAT_VERSION_UID
|
protected static long |
R7_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
protected Vector |
typedVector
|
Constructor Summary | |
BasicObjectVector()
|
Method Summary | |
abstract void |
addElement(Object anObj)
Supported API: false |
void |
append(ObjectVectorIfc oV)
Append an object vector to this object vector. |
boolean |
contains(Object anObj)
Test if the specified object is a component of this object vector. |
Enumeration |
elements()
Return an Enumeration of the components of this object vector. |
Object |
firstElement()
Return the first object in the object vector. |
Vector |
getVector()
Supported API: false |
boolean |
isEmpty()
Test if the object vector has no object. |
Object |
lastElement()
Return the last object in the object vector. |
abstract void |
makeNonPersistent()
Supported API: false |
protected void |
prepareForExternalization()
Hook to allow object vectors to do any work prior to externalization. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BasicObjectVector thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removeAllElements()
Remove all objects from the object vector and set the size to zero. |
abstract void |
removeElement(Object anObj)
Supported API: false |
int |
size()
Return the number of objects in this Object Vector. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected Vector typedVector
protected static final long R51_FORMAT_VERSION_UID
protected static final long R7_FORMAT_VERSION_UID
Constructor Detail |
public BasicObjectVector()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BasicObjectVector thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public abstract void addElement(Object anObj)
addElement
in interface ResultProcessor
anObj
- public abstract void removeElement(Object anObj)
removeElement
in interface ObjectVectorIfc
anObj
- public abstract void makeNonPersistent()
makeNonPersistent
in interface ObjectVectorIfc
public final Vector getVector()
getVector
in interface ObjectVectorIfc
protected void prepareForExternalization() throws WTException
WTException
public int size()
size
in interface ResultProcessor
public void removeAllElements()
removeAllElements
in interface ObjectVectorIfc
public Object firstElement()
firstElement
in interface ObjectVectorIfc
public Object lastElement()
lastElement
in interface ObjectVectorIfc
public boolean isEmpty()
isEmpty
in interface ObjectVectorIfc
public boolean contains(Object anObj)
contains
in interface ObjectVectorIfc
anObj
-
public void append(ObjectVectorIfc oV)
append
in interface ObjectVectorIfc
oV
- public final Enumeration elements()
elements
in interface ObjectVectorIfc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |