/** * Creates an entity-key from a map of names and values. * * @param values the map of names and values * @return a newly-created entity-key */ public static OEntityKey create(Map<String, Object> values) { return create(NamedValues.fromMap(values)); }
LiteralExpression literal = (LiteralExpression) expr; Object value = Expression.literalValue(literal); values.add(nv.length == 1 ? value : NamedValues.create(nv[0], value)); } catch (Exception e) { throw new IllegalArgumentException(String.format("bad valueString [%s] as part of keyString [%s]", valueString, keyString), e);
"Complex key values cannot be null"); assertSimple(nv.getValue()); v[i] = NamedValues.copy(nv);
LiteralExpression literal = (LiteralExpression) expr; Object value = Expression.literalValue(literal); values.add(nv.length == 1 ? value : NamedValues.create(nv[0], value)); } catch (Exception e) { throw new IllegalArgumentException(String.format("bad valueString [%s] as part of keyString [%s]", valueString, keyString), e);
"Complex key values cannot be null"); assertSimple(nv.getValue()); v[i] = NamedValues.copy(nv);
/** * Creates an entity-key from a map of names and values. * * @param values the map of names and values * @return a newly-created entity-key */ public static OEntityKey create(Map<String, Object> values) { return create(NamedValues.fromMap(values)); }
"Complex key values cannot be null"); assertSimple(nv.getValue()); v[i] = NamedValues.copy(nv);
/** * Creates an entity-key from a map of names and values. * * @param values the map of names and values * @return a newly-created entity-key */ public static OEntityKey create(Map<String, Object> values) { return create(NamedValues.fromMap(values)); }