return value;
}
if (m_valuesMap.hasValue(sKey) || m_defaultsMap.hasValue(sKey))
{
throw new LookupException("err.meta.persistence.sql.undefined",
new Object[]{sKey}); // no value available
}
// below here key is unsupported (build a list of valid keys for error reporting)
Set/*<String>*/ keySet = new HashHolder/*<String>*/(m_valuesMap.getValueCount());
for (PropertyIterator itr = m_defaultsMap.getIterator(); itr.hasNext();)
{
keySet.add(itr.next());
}
for (PropertyIterator itr = m_valuesMap.getIterator(); itr.hasNext();)
{
keySet.add(itr.next());
}
Object[] keyArray = keySet.toArray(new String[keySet.size()]);
Arrays.sort(keyArray); // sort keys for readability
throw new LookupException("err.meta.persistence.sql.variable",
new Object[]{sKey, keyArray}); // unknown key
}