List of usage examples for java.lang Long toString
public String toString()
From source file:org.magnum.dataup.VideoSvcCtrl.java
/** * Helper method for getting the url of a video based * on the attainment of an id// ww w. ja va2 s.co m */ public String getDataUrl(Long videoId) { String dataUrl = getUrlBaseForLocalServer() + "/video/" + videoId.toString() + "/data"; return dataUrl; }
From source file:com.facebook.ads.sdk.ProductSet.java
public static ProductSet fetchById(Long id, APIContext context) throws APIException { return fetchById(id.toString(), context); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindClearTopDepNextId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindClearTopDepNextId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from www. j a v a 2 s . c o m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamClearTopDepObj) { Long nextId = ((ICFBamClearTopDepObj) genDef).getOptionalNextId(); if (nextId == null) { ret = null; } else { ret = nextId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamClearTopDepObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindClearTopDepPrevId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindClearTopDepPrevId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w .ja v a 2 s . c om*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamClearTopDepObj) { Long prevId = ((ICFBamClearTopDepObj) genDef).getOptionalPrevId(); if (prevId == null) { ret = null; } else { ret = prevId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamClearTopDepObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindRelationColNextId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindRelationColNextId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w. j a va 2 s .c o m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamRelationColObj) { Long nextId = ((ICFBamRelationColObj) genDef).getOptionalNextId(); if (nextId == null) { ret = null; } else { ret = nextId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamRelationColObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindRelationColPrevId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindRelationColPrevId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww. j a v a 2 s . c o m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamRelationColObj) { Long prevId = ((ICFBamRelationColObj) genDef).getOptionalPrevId(); if (prevId == null) { ret = null; } else { ret = prevId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamRelationColObj"); } return (ret); }
From source file:com.google.code.ssm.test.dao.TestDAOImpl.java
@Override @ReadThroughMultiCache(namespace = CacheConst.DELTA, expiration = 1000) public List<String> getRandomStrings(@ParameterValueKeyProvider final List<Long> keys) { try {//from ww w. ja v a 2s . c o m Thread.sleep(500); } catch (InterruptedException ex) { } final String series = RandomStringUtils.randomAlphabetic(6); final List<String> results = new ArrayList<String>(keys.size()); for (final Long key : keys) { results.add(series + "-" + key.toString() + "-" + RandomStringUtils.randomAlphanumeric(25 + RandomUtils.nextInt(30))); } return results; }
From source file:com.taobao.ad.easyschedule.action.schedule.ScheduleAction.java
private void controlRemoteInstance(String action) { try {//from ww w. jav a 2s . co m if (!checkInstance(instance)) { return; } Long currentTime = System.currentTimeMillis() / 1000; String token = TokenUtils.generateToken(currentTime.toString()); HttpClient client = new HttpClient(); int connTimeout = 1000; client.getHttpConnectionManager().getParams().setConnectionTimeout(connTimeout); GetMethod getMethod = null; String controlInterface = configBO.getStringValue(ConfigDO.CONFIG_KEY_INSTANCE_CONTROL_INTERFACE); controlInterface = controlInterface.replaceAll("#instance#", getInstanceName(instance)); StringBuilder url = new StringBuilder(controlInterface); url = url.append(action); url = url.append("?").append(Const.TOKEN).append("=").append(token); url = url.append("&").append(Const.SIGNTIME).append("=").append(currentTime.toString()); url = url.append("&").append("userName").append("=").append(getLogname()); getMethod = new GetMethod(url.toString()); getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler()); client.executeMethod(getMethod); } catch (Exception e) { } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindInt64DefMaxValue.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindInt64DefMaxValue.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w w w .ja va 2s .c o m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamInt64DefObj) { Long maxValue = ((ICFBamInt64DefObj) genDef).getOptionalMaxValue(); if (maxValue == null) { ret = null; } else { ret = maxValue.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamInt64DefObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindInt64DefMinValue.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindInt64DefMinValue.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//w ww .j a v a 2s . com ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamInt64DefObj) { Long minValue = ((ICFBamInt64DefObj) genDef).getOptionalMinValue(); if (minValue == null) { ret = null; } else { ret = minValue.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamInt64DefObj"); } return (ret); }