public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFAccMssCFBindISOCurrencyId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), "expandBody", 1, "genContext"); } ICFLibAnyObj genDef = genContext.getGenDef(); if (genDef == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()"); } String ret; if (genDef instanceof ICFAccISOCurrencyObj) { short id = ((ICFAccISOCurrencyObj) genDef).getRequiredId(); ret = Short.toString(id); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFAccISOCurrencyObj"); } return (ret); }
public CFSecurityCursor openISOTimezoneCursorByOffsetIdx( CFSecurityAuthorization Authorization, short TZHourOffset, short TZMinOffset) { String sql = getSqlSelectISOTimezoneBuff() + " WHERE " + "itzn.tzhouroffset = " + Short.toString(TZHourOffset) + " " + "AND " + "itzn.tzminoffset = " + Short.toString(TZMinOffset) + " " + "ORDER BY " + "itzn.ISOTimezoneId ASC"; CFAccCursor cursor = new CFAccMSSqlCursor(Authorization, schema, sql); return (cursor); }