{
if (pfe != null)
{
int index = pfe.getFieldNumber();
if (index < 0)
throw new JDOFatalInternalException(I18NHelper.getMessage(
messages, "query.util.type.fieldinfo.getfieldnumber.invalidfieldno", //NO18N
String.valueOf(index), name));
return index;
}
else
{
throw new JDOFatalInternalException(I18NHelper.getMessage(
messages, "query.util.type.fieldinfo.getfieldnumber.missingfieldelement", //NO18N
name));
}
}