Package net.solarnetwork.node.dao.jdbc
Class ResetSQLExceptionHandler
java.lang.Object
net.solarnetwork.node.dao.jdbc.AbstractSQLExceptionHandler
net.solarnetwork.node.dao.jdbc.ResetSQLExceptionHandler
- All Implemented Interfaces:
net.solarnetwork.dao.jdbc.SQLExceptionHandler
Reset a database by deleting and exiting the application.
This class currently supports H2 databases only.
- Since:
- 2.5
- Version:
- 1.0
- Author:
- matt
-
Field Summary
Fields inherited from class net.solarnetwork.node.dao.jdbc.AbstractSQLExceptionHandler
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidhandleConnectionException(DataSource dataSource, Connection conn, SQLException e) voidvoidhandleGetConnectionException(DataSource dataSource, SQLException e) Methods inherited from class net.solarnetwork.node.dao.jdbc.AbstractSQLExceptionHandler
exceptionMatchingSqlStatePattern, getSqlStatePatterns, setSqlStatePatterns, setSqlStateRegex
-
Constructor Details
-
ResetSQLExceptionHandler
public ResetSQLExceptionHandler()
-
-
Method Details
-
handleGetConnectionException
-
handleConnectionException
-
handleConnectionException
-
handleGetConnectionException
-