com.google.gdata.client.Query.setStringCustomParameter()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中com.google.gdata.client.Query.setStringCustomParameter方法的一些代码示例,展示了Query.setStringCustomParameter的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setStringCustomParameter方法的具体详情如下:
包路径:com.google.gdata.client.Query
类名称:Query
方法名:setStringCustomParameter

Query.setStringCustomParameter介绍

[英]Sets a string custom parameter, with null signifying to clear the parameter.
[中]设置字符串自定义参数,null表示清除参数。

代码示例

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/**
 * Sets an integer custom paramter, with null signifying to clear the
 * parameter.
 * 
 * @param name the parameter name
 * @param value the value to set it to
 */
public final void setIntegerCustomParameter(String name, Integer value) {
 if (value == null) {
  setStringCustomParameter(name, null);
 } else {
  setStringCustomParameter(name, value.toString());
 }
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets an integer custom paramter, with null signifying to clear the
 * parameter.
 * 
 * @param name the parameter name
 * @param value the value to set it to
 */
public final void setIntegerCustomParameter(String name, Integer value) {
 if (value == null) {
  setStringCustomParameter(name, null);
 } else {
  setStringCustomParameter(name, value.toString());
 }
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets an integer custom paramter, with null signifying to clear the
 * parameter.
 * 
 * @param name the parameter name
 * @param value the value to set it to
 */
public final void setIntegerCustomParameter(String name, Integer value) {
 if (value == null) {
  setStringCustomParameter(name, null);
 } else {
  setStringCustomParameter(name, value.toString());
 }
}

代码示例来源:origin: wso2-attic/esb-connectors

/**
 * This method assign custom query parameters for the contact query if query parameters are available.
 * 
 * @param contactQuery the constructed query object.
 * @param paramValues the query parameter values map.
 * @param paramKey the query parameter key map.
 * @param key the parameter key value.
 * @return the constructed query object with custom parameters.
 */

private Query setCustomParameters(final Query contactQuery, final Map<String, String> paramValues,
    final String paramKey, final String key) {

  if (!paramValues.get(key).isEmpty()) {
    contactQuery.setStringCustomParameter(paramKey, paramValues.get(key));
  }
  
  return contactQuery;
}

代码示例来源:origin: wso2-attic/esb-connectors

contactQuery.setStringCustomParameter(Constants.PARAM_ORDER_BY, orderBy);
contactQuery.setStringCustomParameter(Constants.PARAM_SHOW_DELETED, showDeleted);
contactQuery.setStringCustomParameter(Constants.PARAM_REQUIRE_ALL_DELETED, allDeleted);
contactQuery.setStringCustomParameter(Constants.PARAM_SORT_ORDER, sortOrder);
contactQuery.setStringCustomParameter(Constants.GROUP, group);

相关文章