public boolean doDrop() { String finalSQL = sql.toString(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } sqlTemplate.update(sql.toString()); } catch (Exception e) { throw new JdbcException("Drop Table Error:" + SQLFormatter.format(finalSQL), e); } return true; }
public boolean doDrop() { String finalSQL = sql.toString(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } sqlTemplate.update(sql.toString()); } catch (Exception e) { throw new JdbcException("Drop Table Error:" + SQLFormatter.format(finalSQL), e); } return true; }
public int doUpdate() { String finalSQL = getSQL(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } return sqlTemplate.update(finalSQL, params.toArray()); } catch (SQLException e) { throw new JdbcException("Update SQL Error:" + SQLFormatter.format(finalSQL), e); } }
public int doUpdate() { String finalSQL = getSQL(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } return sqlTemplate.update(finalSQL, params.toArray()); } catch (SQLException e) { throw new JdbcException("Update SQL Error:" + SQLFormatter.format(finalSQL), e); } }
public boolean doDrop() { String finalSQL = sql.toString(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } sqlTemplate.update(sql.toString()); } catch (Exception e) { throw new JdbcException("Drop Table Error:" + SQLFormatter.format(finalSQL), e); } return true; }
public int doUpdate() { String finalSQL = getSQL(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug(SQLFormatter.format(finalSQL)); } return sqlTemplate.update(finalSQL, params.toArray()); } catch (SQLException e) { throw new JdbcException("Update SQL Error:" + SQLFormatter.format(finalSQL), e); } }