Object[] arr = (val instanceof Object[]) ? (Object[]) val
: new Object[]{ val };
return ApplicationIds.fromPKValues(arr, meta);
default:
throw new UserException(_loc.get("meta-unknownid", cls));
}
} catch (OpenJPAException ke) {
throw ke;
} catch (ClassCastException cce) {
throw new UserException(_loc.get("bad-id-value", val,
val.getClass().getName(), cls)).setCause(cce);
} catch (RuntimeException re) {
throw new GeneralException(re);
} finally {
endOperation();