public ValueContainer [ ] getKeyValues ( ClassDescriptor cld , Object objectOrProxy , boolean convertToSql ) throws PersistenceBrokerException { IndirectionHandler handler = ProxyHelper . getIndirectionHandler ( objectOrProxy ) ; if ( handler != null ) { return getKeyValues ( cld , handler . getIdentity ( ) , convertToSql ) ; //BRJ: convert Identity } else { ClassDescriptor realCld = getRealClassDescriptor ( cld , objectOrProxy ) ; return getValuesForObject ( realCld . getPkFields ( ) , objectOrProxy , convertToSql ) ; } }
Returns an Array with an Objects PK VALUES if convertToSql is true any associated java - to - sql conversions are applied . If the Object is a Proxy or a VirtualProxy NO conversion is necessary .