* Helper method to retrieve a particular client property. If the property has not
* been found in the map, then a NULL_OBJECT symbol is returned. The type of this
* object is not determined here. It is handled syntactically in the parser.
*/
private Symbol symbolFromProperty(String propertyName) {
ClientProperty clientProperty = null;
if (properties != null) clientProperty = (ClientProperty)properties.get(propertyName);
if (clientProperty == null) {
return symbol(Sql92Symbols.NULL_OBJECT, null);
}
String str = clientProperty.getStringValue();
if (log.isLoggable(Level.FINE)) this.logBuffer.append(propertyName).append("(").append(str).append(")");
if (clientProperty.isStringType()) {
return symbol(Sql92Symbols.STRING, str);
}
return symbol(Sql92Symbols.NUMBER, new Double(str));
}