count = results.getLongColumn("count");
if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { count = results.getIntColumn("count"); } else { count = results.getLongColumn("count"); }
    public static void updateIndexData(BrowseScope key)    {        Context context = null;        try        {            context = new Context();            TableRow results = countAndMax(context, key);            long count = -1;            int max = -1;            if (results != null)            {                count = results.getLongColumn("count");                max = results.getIntColumn("max");            }            context.complete();            setMaximum(key, max);            setCount(key, count);        }        catch (Exception e)        {            if (context != null)            {                context.abort();            }            e.printStackTrace();        }    }