|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.softtech.jdbc.DatabaseException
com.softtech.jdbc.OracleException
public class OracleException
Subclass of DatabaseException with specific knowledge of various Oracle sql error codes.
| Field Summary |
|---|
| Fields inherited from class com.softtech.jdbc.DatabaseException |
|---|
sqlErrorCode, SQLState |
| Constructor Summary | |
|---|---|
OracleException(java.lang.String msg)
Constructor for OracleException. |
|
OracleException(java.lang.String msg,
java.sql.SQLException e)
Constructor for OracleException. |
|
| Method Summary | |
|---|---|
boolean |
isBadSQLGrammar()
Was db exception caused by bad sql grammer (a typo) return true or false |
boolean |
isDatabaseUnavailable()
Was db exception caused by database being unavailable |
boolean |
isDataIntegrityViolation()
Was db exception caused by a data integrity violation |
boolean |
isInvalidBindVariableName()
Was db exception caused by referencing a invalid bind parameter name |
boolean |
isNonExistentTableOrViewOrCol()
Was db exception caused by referencing a non existent table or view |
boolean |
isRowlockOrTimedOut()
Was db exception caused by a row lock error or some other sql querty timeout |
boolean |
isUniqueConstraintViolation()
Was db exception caused by a duplicate record (unique constraint) violation |
boolean |
isVarParameterUnbound()
was db exception caused by a an unbound variable (parameter) |
| Methods inherited from class com.softtech.jdbc.DatabaseException |
|---|
getSQLErrorCode, getSQLState |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OracleException(java.lang.String msg,
java.sql.SQLException e)
s - e - public OracleException(java.lang.String msg)
s - | Method Detail |
|---|
public boolean isDataIntegrityViolation()
isDataIntegrityViolation in class DatabaseExceptionpublic boolean isUniqueConstraintViolation()
isUniqueConstraintViolation in class DatabaseExceptionpublic boolean isBadSQLGrammar()
isBadSQLGrammar in class DatabaseExceptionpublic boolean isNonExistentTableOrViewOrCol()
isNonExistentTableOrViewOrCol in class DatabaseExceptionpublic boolean isInvalidBindVariableName()
isInvalidBindVariableName in class DatabaseExceptionpublic boolean isDatabaseUnavailable()
isDatabaseUnavailable in class DatabaseExceptionpublic boolean isRowlockOrTimedOut()
isRowlockOrTimedOut in class DatabaseExceptionpublic boolean isVarParameterUnbound()
isVarParameterUnbound in class DatabaseException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||