6465666768697071
Connection conn = getConnection(); DatabaseMetaData mdm = conn.getMetaData(); log.info("Connected to " + mdm.getDatabaseProductName() + " " + mdm.getDatabaseProductVersion()); closeConnection(); } catch (Exception e) { throw new DBException(e); } }
2324252627282930
*/ public static Connection getConnection(){ try { return DBManager.getConnection(); } catch (SQLException e) { throw new DBException(e); } }
949596979899100101
_IsPrimitive(beanClass) ? _g_scaleHandler : new BeanHandler(beanClass), params); } catch (SQLException e) { throw new DBException(e); } }
131132133134135136137138
_IsPrimitive(beanClass) ? _g_columnListHandler : new BeanListHandler(beanClass), params); } catch (SQLException e) { throw new DBException(e); } }
235236237238239240241242
_g_scaleHandler, params); return (num != null) ? num.longValue() : -1; } catch (SQLException e) { throw new DBException(e); } }
275276277278279280281282
{ return _g_runner.update(getConnection(), sql, params); } catch (SQLException e) { throw new DBException(e); } }
294295296297298299300301
{ return _g_runner.batch(getConnection(), sql, params); } catch (SQLException e) { throw new DBException(e); } }
7879808182838485868788
rs = ps.getGeneratedKeys(); return rs.next() ? rs.getLong(1) : -1; } catch (SQLException e) { throw new DBException(e); } finally { DbUtils.closeQuietly(rs); DbUtils.closeQuietly(ps);