|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.ObjectVectorOidArray
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
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 |
private static final String RESOURCE
private static final String CLASSNAME
private int columnCount
private ObjectSetVector vector
Constructor Detail |
public ObjectVectorOidArray(ObjectSetVector a_vector, int a_columnCount)
a_vector
- Vector of OIDsa_columnCount
- Number of OIDs per rowMethod Detail |
public int getColumnCount()
getColumnCount
in interface OidArray
public int getLength()
getLength
in interface OidArray
public String getClassName(int a_rowIndex, int a_columnIndex)
getClassName
in interface OidArray
a_rowIndex
- Index of row in arraya_columnIndex
- Index of column (OID) in a row
public Object getId(int a_rowIndex, int a_columnIndex)
getId
in interface OidArray
a_rowIndex
- Index of row in arraya_columnIndex
- Index of column (OID) in a row
public boolean isValidIndex(int a_rowIndex)
isValidIndex
in interface OidArray
a_rowIndex
- Index of row in array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |