Example usage for org.springframework.dao DataAccessException printStackTrace

List of usage examples for org.springframework.dao DataAccessException printStackTrace

Introduction

In this page you can find the example usage for org.springframework.dao DataAccessException printStackTrace.

Prototype

public void printStackTrace(PrintStream s) 

Source Link

Document

Prints this throwable and its backtrace to the specified print stream.

Usage

From source file:com.bt.aloha.sipstone.MaintenanceDao.java

private void truncateTable(String tablename) {
    try {/* w w  w  . ja va2  s.  co  m*/
        this.jdbcTemplate.execute("truncate " + tablename + ";");
    } catch (DataAccessException e) {
        e.printStackTrace(System.err);
    }
}