/** * returns the value for a named value in a complex key. * @param name key name * @return the value */ public Object getComplexKeyValue(String name) { assertComplex(); for (Object o : this.values) { NamedValue<?> nv = (NamedValue<?>) o; if (nv.getName().equals(name)) { return nv.getValue(); } } return null; }
/** * returns the value for a named value in a complex key. * @param name * @return the value */ public Object getComplexKeyValue(String name) { assertComplex(); for (Object o : this.values) { NamedValue<?> nv = (NamedValue<?>) o; if (nv.getName().equals(name)) { return nv.getValue(); } } return null; }
/** * returns the value for a named value in a complex key. * @param name * @return the value */ public Object getComplexKeyValue(String name) { assertComplex(); for (Object o : this.values) { NamedValue<?> nv = (NamedValue<?>) o; if (nv.getName().equals(name)) { return nv.getValue(); } } return null; }
/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }