Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

safejdbc
Class SQLExceptionHelper  view SQLExceptionHelper download SQLExceptionHelper.java

java.lang.Object
  extended bysafejdbc.SQLExceptionHelper

class SQLExceptionHelper
extends java.lang.Object

This class contains much of the logic used for handling various exceptions and Throwables correctly and handling ressources accordingly.


Field Summary
private  java.sql.SQLException _sqlException
           
private  boolean _sqlExceptionOccurred
           
 
Constructor Summary
(package private) SQLExceptionHelper()
           
 
Method Summary
(package private)  void close(java.sql.ResultSet rs, java.sql.Statement stmt)
           
(package private)  void close(java.sql.Statement stmt)
           
(package private)  boolean isSQLExceptionOccurred()
           
(package private)  void processSQLException()
           
(package private)  void rollback(java.sql.Connection con)
           
(package private)  void sqlExceptionOccurred(java.sql.SQLException x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sqlExceptionOccurred

private boolean _sqlExceptionOccurred

_sqlException

private java.sql.SQLException _sqlException
Constructor Detail

SQLExceptionHelper

SQLExceptionHelper()
Method Detail

isSQLExceptionOccurred

boolean isSQLExceptionOccurred()

sqlExceptionOccurred

void sqlExceptionOccurred(java.sql.SQLException x)

processSQLException

void processSQLException()
                   throws java.sql.SQLException

rollback

void rollback(java.sql.Connection con)

close

void close(java.sql.Statement stmt)

close

void close(java.sql.ResultSet rs,
           java.sql.Statement stmt)