wt.pds
Class ObjectVectorOidArray

java.lang.Object
  extended bywt.pds.ObjectVectorOidArray
All Implemented Interfaces:
OidArray, Serializable

public class ObjectVectorOidArray
extends Object
implements OidArray, Serializable

This class implements an OidArray using an ObjectSetVector. The elements of the ObjectSetVector are assumed to be an Object[] with length two times the column count. Raw OID values are stored in adjacent columns with the class name as the first entry and the id as the second entry.

 Object[0]          1st OID class name
 Object[1]          1st OID id
 ..
 Object[n* 2]      nth OID class name
 Object[(n*2+1]  nth OID id
 


Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  int columnCount
           
private static String RESOURCE
           
private  ObjectSetVector vector
           
 
Fields inherited from interface wt.pds.OidArray
COLUMN_COUNT, LENGTH
 
Constructor Summary
ObjectVectorOidArray(ObjectSetVector a_vector, int a_columnCount)
          

Supported API: false
 
Method Summary
 String getClassName(int a_rowIndex, int a_columnIndex)
          Return the OID class name at the specified index.
 int getColumnCount()
          Gets the value of the attribute: columnCount; Number of columns (OID values) per row.
 Object getId(int a_rowIndex, int a_columnIndex)
          Return the OID ID value at the specified index.
 int getLength()
          Gets the value of the attribute: length; Length of the array.
 boolean isValidIndex(int a_rowIndex)
          Indicates if the specified index refers to a valid entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

columnCount

private int columnCount

vector

private ObjectSetVector vector
Constructor Detail

ObjectVectorOidArray

public ObjectVectorOidArray(ObjectSetVector a_vector,
                            int a_columnCount)


Supported API: false

Parameters:
a_vector - Vector of OIDs
a_columnCount - Number of OIDs per row
Method Detail

getColumnCount

public int getColumnCount()
Gets the value of the attribute: columnCount; Number of columns (OID values) per row.

Supported API: false

Specified by:
getColumnCount in interface OidArray
Returns:
int

getLength

public int getLength()
Gets the value of the attribute: length; Length of the array.

Supported API: false

Specified by:
getLength in interface OidArray
Returns:
int

getClassName

public String getClassName(int a_rowIndex,
                           int a_columnIndex)
Return the OID class name at the specified index.

Supported API: false

Specified by:
getClassName in interface OidArray
Parameters:
a_rowIndex - Index of row in array
a_columnIndex - Index of column (OID) in a row
Returns:
String

getId

public Object getId(int a_rowIndex,
                    int a_columnIndex)
Return the OID ID value at the specified index.

Supported API: false

Specified by:
getId in interface OidArray
Parameters:
a_rowIndex - Index of row in array
a_columnIndex - Index of column (OID) in a row
Returns:
Object

isValidIndex

public boolean isValidIndex(int a_rowIndex)
Indicates if the specified index refers to a valid entry.

Supported API: false

Specified by:
isValidIndex in interface OidArray
Parameters:
a_rowIndex - Index of row in array
Returns:
boolean