List of usage examples for java.lang Long toString
public String toString()
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindRelationDefSchemaId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindRelationDefSchemaId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w . j a v a2s. c o m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamRelationObj) { Long defSchemaId = ((ICFBamRelationObj) genDef).getOptionalDefSchemaId(); if (defSchemaId == null) { ret = null; } else { ret = defSchemaId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamRelationObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindValueNextTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindValueNextTenantId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w . j av 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 ICFBamValueObj) { Long nextTenantId = ((ICFBamValueObj) genDef).getOptionalNextTenantId(); if (nextTenantId == null) { ret = null; } else { ret = nextTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamValueObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindValuePrevTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindValuePrevTenantId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from ww w . jav a2 s.c om*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamValueObj) { Long prevTenantId = ((ICFBamValueObj) genDef).getOptionalPrevTenantId(); if (prevTenantId == null) { ret = null; } else { ret = prevTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamValueObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindSchemaRefRefSchemaId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindSchemaRefRefSchemaId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w ww . j ava2 s .c om*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamSchemaRefObj) { Long refSchemaId = ((ICFBamSchemaRefObj) genDef).getOptionalRefSchemaId(); if (refSchemaId == null) { ret = null; } else { ret = refSchemaId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamSchemaRefObj"); } return (ret); }
From source file:org.dawnsci.marketplace.services.FileService.java
public File saveSolutionFile(Long solution, MultipartFile file) { String fileName = file.getOriginalFilename(); byte[] buffer = new byte[1000]; File outputFile = getFile(solution.toString(), fileName); outputFile.getParentFile().mkdirs(); try (InputStream reader = file.getInputStream(); FileOutputStream writer = new FileOutputStream(outputFile)) { outputFile.createNewFile();//from w ww.jav a 2 s. co m while ((reader.read(buffer)) != -1) { writer.write(buffer); } return outputFile; } catch (IOException e) { e.printStackTrace(); } return null; }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindEnumTagNextTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindEnumTagNextTenantId.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 ICFBamEnumTagObj) { Long nextTenantId = ((ICFBamEnumTagObj) genDef).getOptionalNextTenantId(); if (nextTenantId == null) { ret = null; } else { ret = nextTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamEnumTagObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindEnumTagPrevTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindEnumTagPrevTenantId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w w w. j ava 2s .com*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamEnumTagObj) { Long prevTenantId = ((ICFBamEnumTagObj) genDef).getOptionalPrevTenantId(); if (prevTenantId == null) { ret = null; } else { ret = prevTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamEnumTagObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindServerObjFuncRetTableId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindServerObjFuncRetTableId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from ww w .jav a 2 s .co m*/ ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamServerObjFuncObj) { Long retTableId = ((ICFBamServerObjFuncObj) genDef).getOptionalRetTableId(); if (retTableId == null) { ret = null; } else { ret = retTableId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamServerObjFuncObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindIndexColNextTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindIndexColNextTenantId.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 ICFBamIndexColObj) { Long nextTenantId = ((ICFBamIndexColObj) genDef).getOptionalNextTenantId(); if (nextTenantId == null) { ret = null; } else { ret = nextTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamIndexColObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindIndexColPrevTenantId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFBamMssCFBindIndexColPrevTenantId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from ww w . j a v a 2 s. co m ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFBamIndexColObj) { Long prevTenantId = ((ICFBamIndexColObj) genDef).getOptionalPrevTenantId(); if (prevTenantId == null) { ret = null; } else { ret = prevTenantId.toString(); } } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamIndexColObj"); } return (ret); }