{@inheritDoc}

@see jp.co.future.uroborosql.parser.TransformContext#getParam(java.lang.String)
340544
@Override
	public Parameter getParam(final String paramName) {
		Parameter param = getBindParameter(paramName);
		if (param == null) {
			Map<String, Parameter> constParams = getConstParameterMap();
			if (constParams != null) {
				param = constParams.get(paramName.toUpperCase());
			}
		}
		return param;
	}
858399
private String getParameter(Map<String, String> parameters, String paramName, boolean abortOnError,
            String defaultValue) throws TransformationOperationException {
        String value = parameters.get(paramName);
        if (value != null) {
            return value;
        }
        if (abortOnError) {
            String error = String.format("There is no parameter with the name %s present. The step will be ignored.",
                paramName);
            throw new TransformationOperationException(error);
        }
        logger.debug("There is no parameter with the name {} present. The value {} will be taken instead.", paramName,
            defaultValue);
        return defaultValue;
    }
502113
public String getParameter(String name) {
        String[] values = parameters.get(name);
        if (values == null) {
            return null;
        }

        if (values.length == 0) {
            return "";
        }
        return values[0];
    }
1291183
@Override
    public <T> Parameter<T> getParameter(int arg0, Class<T> arg1)
    {

        return query.getParameter(arg0, arg1);
    }
749514
public String getInitParameter(String param)
    {
        if (_initParams==null)
            return null;
        return (String)_initParams.get(param);
    }
584471
public String getParamString(String paramName) {
        Object paramValue = getParam(paramName);
        if (paramValue == null) {
            return null;
        }
        return paramValue.toString();
    }
1315365
public String getParameter( String name )
    {
        if (_parameters == null || !_parameters.hasParameters())
            return null;

        List parameters = _parameters.getParameterValues(name);
        if(parameters != null && parameters.size() > 0)
            return (String)parameters.get(0);
        else return null;
    }
704151
public static String getParam(HttpServletRequest req, String strParam, String strDefault)
    {
        String strParams[] = null;
        if (req == null)
            return null;
        strParams = req.getParameterValues(strParam);              // Menu page
        if (DBParams.URL.equals(strParam))
        {
            strParams = new String[1];
            strParams[0] = req.getRequestURL().toString();        // Special param (url).
        }
        if (DBParams.CODEBASE.equals(strParam))
        {
            strParams = new String[1];
            strParams[0] = req.getRequestURL().toString();        // Special param (url).
            if (strParams[0].endsWith(Constants.DEFAULT_SERVLET))
            	strParams[0] = strParams[0].substring(0, strParams[0].length() - Constants.DEFAULT_SERVLET.length());
            if (!strParams[0].endsWith("/"))
            	strParams[0] = strParams[0] + "/";	// Codebase should always end with this
        }
        if (DBParams.DOMAIN.equals(strParam))
        {
            strParams = new String[1];
            strParams[0] = req.getRequestURL().toString();        // Special param (url).
            return Utility.getDomainFromURL(strParams[0], null);
        }
        if (strParams == null)
            if (DBParams.DATATYPE.equals(strParam))
        {
            strParams = new String[1];
            strParams[0] = req.getRequestURL().toString();        // Special param (url).
            if ((strParams[0] != null)
                && (strParams[0].lastIndexOf('/') != -1))
            {
                strParams[0] = strParams[0].substring(strParams[0].lastIndexOf('/') + 1);
                if (strParams[0].indexOf('.') != -1)
                    strParams[0] = strParams[0].substring(0, strParams[0].indexOf('.'));
                if ((!DBParams.TABLE_PARAM.equalsIgnoreCase(strParams[0]))
                    && (!DBParams.WEBSTART_PARAM.equalsIgnoreCase(strParams[0]))
                    && (!DBParams.WEBSTART_APPLET_PARAM.equalsIgnoreCase(strParams[0]))
                    && (!DBParams.WSDL_PARAM.equalsIgnoreCase(strParams[0]))
                    && (!DBParams.IMAGE_PATH.equalsIgnoreCase(strParams[0])))
                        strParams = null;   // Must be one of these                 
            }
            else
                strParams = null;
        }

        if (strParams == null)
            return strDefault;
        if (strParams.length == 0)
            return Constants.BLANK;
        if (strParams[0] == null)
            return Constants.BLANK;
        return strParams[0];
    }
408183
protected String getDescription(Parameter parameter) {
        if (parameter.isAnnotationPresent(Desc.class)) {
            Desc annotation = parameter.getAnnotation(Desc.class);
            return translate(annotation.key(), annotation.value());
        }
        return null;
    }
592276
public ParameterValue getQueryParameter(String name) {
        if (!getQueryParameters().containsKey(name)) {
            return buildParameterValue();
        }

        return getQueryParameters().get(name);
    }
687538
private String getParameterValue(CmsObject cms, Map<String, String[]> parameterMap, String key) {

        String result = null;
        String[] params = parameterMap.get(key);
        if ((params != null) && (params.length > 0)) {
            result = params[0];
        }
        if (result == null) {
            return "";
        }
        return result;
    }
658511
private String getParam(final SqlContext ctx, final String key) {
		Parameter param = ctx.getParam(key);
		if (param == null) {
			return null;
		} else {
			return String.valueOf(param.getValue());
		}
	}
932873
@Override
    public Map<String, Object> getQueryParameters() {
        HashMap<String, Object> params = new HashMap<String, Object>();
        params.put("userId", this.userId.toString());
        params.put("itemId", this.itemId.toString());
        if (this.timestamp!=null) {
            params.put("timestamp", Double.toString(this.timestamp.getTime()/1000.0));
        }
        return params;
    }
694315
public static String getParam(String name) {
		String param = getServletRequest().getParameter(name);
		if(null == param){
			MultipartFormData multipart = getMultipart();
			if(null != multipart){
				param = multipart.getParam(param);
			}
		}
		return param;
	}
548281
@Override
	public SqlContext param(final String parameterName, final Object value, final int sqlType) {
		if (value instanceof Optional) {
			Optional<?> optionalValue = (Optional<?>) value;
			if (optionalValue.isPresent()) {
				param(new Parameter(parameterName, optionalValue.get(), sqlType));
			} else {
				param(new Parameter(parameterName, null));
			}
			return this;
		} else {
			return param(new Parameter(parameterName, value, sqlType));
		}
	}
751982
public String queryParam(String name) {
		List<String> values = queryParams.get(name);
		return (values == null) ? null : values.get(0);
	}
1192183
public String getParameterText() {
        if( parameters != null ) {
            StringBuilder builder = new StringBuilder();
            boolean first = true;
            for( String param : parameters ) {
                if( first ) {
                    first = false;
                } else {
                    builder.append( "," );
                }
                builder.append( param );
            }
            return builder.toString();
        }
        return null;
    }