⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqlexceptionconverter.java

📁 一个Java持久层类库
💻 JAVA
字号:
// $Id: SQLExceptionConverter.java 4782 2004-11-21 00:11:27Z pgmjsd $package org.hibernate.exception;import org.hibernate.JDBCException;import java.sql.SQLException;/** * Defines a contract for implementations that know how to convert a SQLException * into Hibernate's JDBCException hierarchy.  Inspired by Spring's * SQLExceptionTranslator. * <p/> * Implementations <b>must</b> have a constructor which takes a * {@link ViolatedConstraintNameExtracter} parameter. * <p/> * Implementations may implement {@link Configurable} if they need to perform * configuration steps prior to first use. * * @author Steve Ebersole * @see SQLExceptionConverterFactory */public interface SQLExceptionConverter {	/**	 * Convert the given SQLException into Hibernate's JDBCException hierarchy.	 *	 * @param sqlException The SQLException to be converted.	 * @param message      An optional error message.	 * @return The resulting JDBCException.	 * @see ConstraintViolationException, JDBCConnectionException, SQLGrammarException, LockAcquisitionException	 */	public JDBCException convert(SQLException sqlException, String message, String sql);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -