FileDocCategorySizeDatePackage
JDBCException.javaAPI DocHibernate 3.2.51267Mon Sep 27 10:24:38 BST 2004org.hibernate

JDBCException

public class JDBCException extends HibernateException
Wraps an SQLException. Indicates that an exception occurred during a JDBC call.
see
java.sql.SQLException
author
Gavin King

Fields Summary
private SQLException
sqle
private String
sql
Constructors Summary
public JDBCException(String string, SQLException root)

		super(string, root);
		sqle=root;
	
public JDBCException(String string, SQLException root, String sql)

		this(string, root);
		this.sql = sql;
	
Methods Summary
public intgetErrorCode()
Get the errorCode of the underlying SQLException.

see
java.sql.SQLException
return
int the error code

		return sqle.getErrorCode();
	
public java.lang.StringgetSQL()
Get the actual SQL statement that caused the exception (may be null)

		return sql;
	
public java.sql.SQLExceptiongetSQLException()
Get the underlying SQLException.

return
SQLException

		return sqle;
	
public java.lang.StringgetSQLState()
Get the SQLState of the underlying SQLException.

see
java.sql.SQLException
return
String

		return sqle.getSQLState();