public int getKeyFieldIndex ( Field [ ] fields ) { String keyField = getKeyFieldName ( ) ; return Field . getFieldIndex ( fields , keyField ) ; }
Returns the index of the key field within the array of fields provided for a given table .