List of usage examples for java.lang Long toString
public String toString()
From source file:com.gst.accounting.glaccount.domain.GLAccount.java
private String hierarchyOf(final Long id) { return this.hierarchy + id.toString() + "."; }
From source file:net.eledge.android.toolkit.db.abstracts.Dao.java
public void delete(Long id) { if (id != null) { db.delete(getTableName(), SQLBuilder.getWhereIdClause(clazz), new String[] { id.toString() }); }/* ww w .ja va2s.c o m*/ }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindParamNextId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindParamNextId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/* w w w . ja 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 ICFBamParamObj) { Long nextId = ((ICFBamParamObj) genDef).getOptionalNextId(); if (nextId == null) { ret = null; } else { ret = nextId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamParamObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindParamPrevId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindParamPrevId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }// w w w . j a va 2s . com ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamParamObj) { Long prevId = ((ICFBamParamObj) genDef).getOptionalPrevId(); if (prevId == null) { ret = null; } else { ret = prevId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamParamObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindParamTypeId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindParamTypeId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww.j a v a2 s .co m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamParamObj) { Long typeId = ((ICFBamParamObj) genDef).getOptionalTypeId(); if (typeId == null) { ret = null; } else { ret = typeId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamParamObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindValueNextId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindValueNextId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww . j av a 2s . co m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamValueObj) { Long nextId = ((ICFBamValueObj) genDef).getOptionalNextId(); if (nextId == null) { ret = null; } else { ret = nextId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamValueObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindValuePrevId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindValuePrevId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//w w w .j a va2 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 ICFBamValueObj) { Long prevId = ((ICFBamValueObj) genDef).getOptionalPrevId(); if (prevId == null) { ret = null; } else { ret = prevId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamValueObj"); } return (ret); }
From source file:com.brightcove.test.upload.MediaAPIParentClass.java
/** * Create query parameter for find video by id * @param videoId//from w w w. j a va 2s . c om * @param mediaDeliveryType * @return */ public List createListParamForFindVideoByIdCommand(Account accInfo, Long videoId, String mediaDeliveryType) { return createListParam(accInfo, "video_id", videoId.toString(), "find_video_by_id", mediaDeliveryType, ""); }
From source file:greensopinion.restexample.web.BlogServiceClient.java
@Override public Article createArticle(Long blogId, Article article) { Map<String, String> variables = new HashMap<String, String>(); variables.put("blogId", blogId.toString()); Result result = template.postForObject(computeUrl("blog/{blogId}/article"), article, Result.class, variables);//from www .j a va 2 s . c o m if (result.getArticle() != null) { return result.getArticle(); } throw new IllegalStateException("Unexpected result"); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindEnumTagNextId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindEnumTagNextId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w. ja va2 s . co m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamEnumTagObj) { Long nextId = ((ICFBamEnumTagObj) genDef).getOptionalNextId(); if (nextId == null) { ret = null; } else { ret = nextId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamEnumTagObj"); } return (ret); }