Package org.cxbox.core.util
Class SQLExceptions
- java.lang.Object
-
- org.cxbox.core.util.SQLExceptions
-
public class SQLExceptions extends Object
-
-
Constructor Summary
Constructors Constructor Description SQLExceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasErrorCode(SQLException ex, int code)static booleanisChildRecordsFound(Throwable ex)static booleanisNotNullViolation(Throwable ex)static booleanisOra(Throwable ex, int code)static booleanisParentRecordNotFound(Throwable ex)static booleanisUniqueConstraintViolation(Throwable ex)
-
-
-
Method Detail
-
isUniqueConstraintViolation
public static boolean isUniqueConstraintViolation(Throwable ex)
-
isNotNullViolation
public static boolean isNotNullViolation(Throwable ex)
-
isChildRecordsFound
public static boolean isChildRecordsFound(Throwable ex)
-
isParentRecordNotFound
public static boolean isParentRecordNotFound(Throwable ex)
-
isOra
public static boolean isOra(Throwable ex, int code)
-
hasErrorCode
public static boolean hasErrorCode(SQLException ex, int code)
-
-