4243444546474849
try { String url = getUrl(); LOG.trace("JDBC URL: " + url); return DriverManager.getConnection(url, getUser(), getPassword()); } catch (SQLException e) { throw new DaoException(e); } }
787980818283848586
RdbDataType type = column.getType(); data.mapping(column, MappingUtils.mapping(type, rs, index)); index++; } } catch (SQLException e) { throw new DaoException(e); } return this; }
1213141516171819
int index, InputStream in) throws DaoException { try { stmt.setBinaryStream(index, in); return stmt.executeUpdate(); } catch (SQLException e) { throw new DaoException(e); } }
166167168169170171172
@Override public void handleException(Throwable cause) { RdbDaoEvent event = createRdbDaoEvent(); getTransactionHandler().handleException(event, cause); throw new DaoException(cause); }
2930313233343536
@Override public Connection getConnection() { try { return getDataSource().getConnection(); } catch (SQLException e) { throw new DaoException(e); } }
65666768697071727374
try { ic = new InitialContext(); LOG.trace("DataSource: " + dataSourceName); ds = (DataSource) ic.lookup(dataSourceName); } catch (NamingException e) { throw new DaoException(e); } } return ds; }
535455565758596061
con.set(c); start(); } } } catch (SQLException e) { throw new DaoException(e); } return c; }
686970717273747576
if (s != null) { stmt.set(s); } } } catch (SQLException e) { throw new DaoException(e); } return s; }
7778798081828384
public Statement createStatement() { try { return getConnection().createStatement(); } catch (SQLException e) { throw new DaoException(e); } }
8586878889909192
public PreparedStatement preparedStatement(String sql) { try { return getConnection().prepareStatement(sql); } catch (SQLException e) { throw new DaoException(e); } }