Object getValue(int fieldNum)
    {
        String attributeName = getAttributeName(fieldNum);
        ClassDescriptor cld = broker.getClassDescriptor(pc.getClass());
        
        // field could be a primitive typed attribute...
        AttributeDescriptorBase fld = cld.getFieldDescriptorByName(attributeName);
        // field could be a reference attribute...
        if (fld == null) 
        {
			fld = cld.getObjectReferenceDescriptorByName(attributeName);
		}
		// or it could be a collection attribute:
        if (fld == null) 
        {
			fld = cld.getCollectionDescriptorByName(attributeName);
		}        
        Object value = fld.getPersistentField().get(pc);
        return value;
    }
Object getValue ( int fieldNum ) { String attributeName = getAttributeName ( fieldNum ) ; ClassDescriptor cld = broker . getClassDescriptor ( pc . getClass ( ) ) ; AttributeDescriptorBase fld = cld . getFieldDescriptorByName ( attributeName ) ; if ( fld == null ) { fld = cld . getObjectReferenceDescriptorByName ( attributeName ) ; } if ( fld == null ) { fld = cld . getCollectionDescriptorByName ( attributeName ) ; } Object value = fld . getPersistentField ( ) . get ( pc ) ; return value ; }
retrieve the value of attribute[fieldNum] from the object.
@return Object the value of attribute[fieldNum]